Documentation menu
Start here
IntroductionGetting startedWrite an agentProject anatomyUnderstand Ayjnt
Harness engineeringTwo runtimesHuman interfacesHow agents workHost bridgeAgent capabilities
Callable methodsState & SQLiteSessions & memorySchedulingWorkflowsDurable executionInter-agent RPCSub-agentsToolsWebAssembly modulesInterfaces & integrations
Browser clientRouting & middlewareVoiceBrowser toolsMCPEmailObservabilityCLI
Command overviewnewdevrunbuildcompilemigratedeployAPI reference
AgentAgentClientWorkflow classesLocal & cloudMigrationsExamplesModel 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.