AI Agent Infrastructure
MCP security boundaries
Explain the security boundaries of MCP servers, including startup commands, token audience and passthrough, and the listening address of a local server, and the consent a user should give before a server runs.
What you will be able to do
- Explain why a local MCP server's startup command runs with the client's privileges.
- Check an MCP server's startup command, environment and listening address before you allow it.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in AI Agent Infrastructure
- Agent runtime loopBeginner · 4 min
Explain the agent runtime loop, where tool_use stop reasons lead to tool_result messages, and why a run needs an explicit end and a budget for steps, tokens and time.
- Tool interface schemasIntermediate · 4 min
Explain how a tool's JSON Schema constrains its arguments, what additionalProperties controls, and why the runtime should validate each call before the handler runs, so…
- Sandboxed code executionIntermediate · 4 min
Explain how namespaces, control groups and capabilities combine into a sandbox for generated code, and which inputs a sandbox should never receive, and why each one…
- Tool retriesIntermediate · 4 min
Explain how retries with exponential backoff and jitter work, why nested retries multiply load, and why a retry is safe only for calls that can be repeated.
- Idempotency keysIntermediate · 4 min
Explain how an idempotency key lets a server recognize a repeated request, why a key must name the operation, and how keys are pruned and compared.
- Durable checkpointsIntermediate · 4 min
Explain how durable checkpoints let a long agent job resume after a crash, why the order of writes matters, and how replay differs from snapshots.