convex-mcp-security
Installation
SKILL.md
Audit an app's MCP server
An MCP server lets an agent act as the user with whatever tools you gave it. What makes this different from auditing the app's UI:
- Arguments come from a model, not your UI. Anything the UI never sends (another user's ID, a huge limit, an unexpected enum) will be sent.
- The agent can be steered by what it reads. Text returned by your tools — especially text other people wrote — can carry instructions. A server that returns untrusted content and can send data somewhere is an exfiltration path even when every call is individually authorized. Annotations and neat result fields do not prevent this; only server-side policy does.
- Tool handlers have no
ctx.auth. Identity is onlyuser.userId, passed by the component. Any identity derived another way is a bug.