Lion Cipher Lab

Review an MCP server's tools before you connect it, and write a default-deny allow-list

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

Steps in this lab

  1. A tool list is a menu of actions
  2. Learn the annotation defaults
  3. Make a sample tool list
  4. Write the reviewer
  5. Test the allow-list with a refusal
  6. Do it for a real server (optional)
  7. What this review does not cover
  8. Clean up

Open the full interactive lab →

Keep learning