Lion Cipher Lab
Review an MCP server's tools before you connect it, and write a default-deny allow-list
- AI Security
- Intermediate
- ~50 min
- Free · no account required
Why it matters
An MCP server is a menu of actions you hand to an AI agent. Before you connect one, the question is not only whether the server is honest but what each tool could do if the agent were fooled into calling it. The MCP specification says there should always be a human able to deny tool invocations, and that a client must treat tool annotations as untrusted unless they come from a trusted server. Reviewing the tool list first, and turning the result into a default-deny allow-list, is the cheapest permission control you can add, and it works whichever client you use.
What you'll learn
- reading a tools/list response: names, descriptions, input schemas and annotations
- knowing the spec's defaults for missing annotations, and why they matter
- sorting tools into allow, ask and deny, and spotting a tool whose hint contradicts its name
- writing a default-deny allow-list and testing it with a deny
- listing a real server's tools with the MCP Inspector command-line client
Steps in this lab
- A tool list is a menu of actions
- Learn the annotation defaults
- Make a sample tool list
- Write the reviewer
- Test the allow-list with a refusal
- Do it for a real server (optional)
- What this review does not cover
- Clean up
Open the full interactive lab →