Documentation menu
Documentation

Model Context Protocol

Connect agents to MCP servers or expose an agent as one without losing the co-located UI.

MCP clients

Cloudflare Agent includes a durable MCP client manager for registering servers, OAuth callbacks, discovery, and namespaced tools. Use native addMcpServer(), removeMcpServer(), and the manager on this.mcp.

Treat tool descriptions and remote content as untrusted. Gate sensitive tools and keep authorization tied to the person and agent instance.

MCP agents

An MCP agent can live in the same file-routed project and still have app.tsx. Ayjnt detects the agent type and generates the correct handler while preserving the browser interface.