Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/content/docs/agents/model-context-protocol/tools.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ For example, the following code from [this example MCP server](https://github.co
<TypeScriptExample>
```ts title="src/index.ts"
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp";
import { DurableMCP } from "@cloudflare/model-context-protocol";
import { McpAgent } from "agents/mcp";

export class MyMCP extends DurableMCP {
export class MyMCP extends McpAgent {
server = new McpServer({ name: "Demo", version: "1.0.0" });
async init() {
this.server.tool(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The Model Context Protocol (MCP) specification defines [two standard transport m
1. **stdio, communication over standard in and standard out** — designed for local MCP connections
2. **HTTP with Server-Sent Events (SSE)** — designed for remote MCP connections

MCP Servers deployed to Cloudflare support remote MCP connections, using HTTP with Server-Sent Events (SSE) as transport. SSE requires a persistent HTTP connection, which is supported by Cloudflare [Durable Objects](/durable-objects/). Transport is configured and handled automatically. You don't need to configure anything — it just works.
MCP Servers deployed to Cloudflare support remote MCP connections, using HTTP with Server-Sent Events (SSE) as transport. SSE requires a persistent HTTP connection, which is supported by Cloudflare [Durable Objects](/durable-objects/) and the [Agents SDK](/agents). Transport is configured and handled automatically by the [`McpAgent` class](https://github.com/cloudflare/agents/blob/2f82f51784f4e27292249747b5fbeeef94305552/packages/agents/src/mcp.ts). You don't need to configure anything — it just works.

:::note
Even if the MCP client you are using only supports local MCP connections, you can still connect it to a remote MCP server.
Expand Down