mcp.md

Created about 12 hours ago

attributes
source_pathreferences/mcp.md
source_sha256fdc0cb2e434da4750e892bfee9fd325a25d6bf113578892b0b4a3eaa4aded394
source_urlhttps://github.com/cloudflare/skills/blob/47dfc2ce969bf62acf8bc231198ade4bb02712e0/skills/agents-sdk/references/mcp.md
supporting_skill_id40176
upstream_revision47dfc2ce969bf62acf8bc231198ade4bb02712e0

MCP Integration

For new servers, prefer createMcpHandler over the deprecated McpAgent. For existing servers, check the installed SDK version and state/session requirements before choosing a migration path.

Read the relevant current documentation for implementation details and supported dependency versions:

Task Documentation
Build a server Handler API — server factories, Worker entrypoint, dependencies, and examples
Migrate an existing server MCP SDK v2 migration — stateless migration and temporary legacy paths
Connect to servers and use their tools Client API — connections, OAuth, tools, resources, and retries
Choose a transport Transports — remote HTTP and existing RPC integrations
Secure a server Securing MCP servers — OAuth and proxy security

Children

No children yet.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.