Files
blogflare/.agents/plugins/cloudflare/skills/agents-sdk/references/mcp.md
T
2026-09-25 12:11:51 +08:00

1.8 KiB

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