> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Demo

> Expose AgentOS agents and custom tools through MCP with OAuth, dynamic headers, and managed MCPTools lifespans.

Current v3.0.4 examples:

| Example | Description |
| - | - |
| [Dynamic Headers](https://agno-v2.mintlify.site/examples/tools/mcp/dynamic-headers/overview.md) | Send request-specific values to an MCP server through HTTP headers. |
| [MCP Tools](https://agno-v2.mintlify.site/examples/tools/mcp-tools.md) | Connect MCPTools to the filesystem MCP server over a stdio session and summarize a file. |
| [Serve AgentOS over MCP](https://agno-v2.mintlify.site/examples/agent-os/mcp/basic.md) | Expose one agent through the eight built-in AgentOS MCP tools at `/mcp`. |
| [Expose one custom MCP tool](https://agno-v2.mintlify.site/examples/agent-os/mcp/custom-tools.md) | Replace the eight built-in AgentOS MCP tools with one purpose-built tool. |
| [Drive the AgentOS MCP run lifecycle](https://agno-v2.mintlify.site/examples/agent-os/mcp/mcp-client.md) | Use a protocol-level FastMCP client to discover the eight built-in tools, pause and continue one agent run, cancel a second paused run, and read the continued session back. |
| [Use WorkOS AuthKit for MCP OAuth](https://agno-v2.mintlify.site/examples/agent-os/mcp/oauth-authkit.md) | Keep AgentOS as the MCP resource server while WorkOS AuthKit owns login, consent, and token issuance. |
| [Use the built-in MCP authorization server](https://agno-v2.mintlify.site/examples/agent-os/mcp/oauth-builtin.md) | Make AgentOS its own OAuth 2.1 authorization server for MCP connector clients. |
| [Secure and scope an AgentOS MCP server](https://agno-v2.mintlify.site/examples/agent-os/mcp/secure-mcp.md) | Protect `/mcp` with an OS security key plus a database-backed `agno_pat_` service account. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.