The big one to watch out for is differing permission models / access for what people can do "on the site" and via MCP. The ideal is the user can use something like oAuth and then are bound to the ceiling of what their account can do but can scope down as needed if delegating to an agent etc.
The biggest architectural concern with MCP servers in production is the trust boundary around tool arguments and process isolation over stdio.
Right now, most MCP servers accept tool input parameters directly from the LLM and pass them into shell commands, file system calls, or database adapters. Because LLMs are inherently susceptible to prompt injection (direct or indirect via retrieved web/document context), an unconstrained MCP tool effectively gives an untrusted prompt arbitrary execution capabilities within the server's permission scope. Specifically:
1. Argument injection and shell expansion: If an MCP tool accepts a filename or domain parameter and executes subshells without strict regex whitelisting, parameter injection is trivial.
2. Tool hallucination and drift: When an agent negotiates available tools, small differences in JSON schema descriptions lead models to call tools with fabricated arguments that pass loose validation.
3. Lack of scoped access: Many developers run local stdio MCP servers with full read/write access to the user environment rather than constraining the server to an isolated sandbox or container. Treating every tool invocation as an untrusted RPC payload with strict schema pinning and immutable scopes is essential before connecting autonomous agents to production environments.
Comments (3) 7 threads
Right now, most MCP servers accept tool input parameters directly from the LLM and pass them into shell commands, file system calls, or database adapters. Because LLMs are inherently susceptible to prompt injection (direct or indirect via retrieved web/document context), an unconstrained MCP tool effectively gives an untrusted prompt arbitrary execution capabilities within the server's permission scope.
Specifically: 1. Argument injection and shell expansion: If an MCP tool accepts a filename or domain parameter and executes subshells without strict regex whitelisting, parameter injection is trivial. 2. Tool hallucination and drift: When an agent negotiates available tools, small differences in JSON schema descriptions lead models to call tools with fabricated arguments that pass loose validation. 3. Lack of scoped access: Many developers run local stdio MCP servers with full read/write access to the user environment rather than constraining the server to an isolated sandbox or container.
Treating every tool invocation as an untrusted RPC payload with strict schema pinning and immutable scopes is essential before connecting autonomous agents to production environments.
All comments shown.
Couldn't load more comments. Check your connection and try again.