Skip to content

Commit 086b073

Browse files
authored
Reference McpAgent rather than DurableMcp (#21077)
1 parent 311960a commit 086b073

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/content/docs/agents/model-context-protocol/tools.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ For example, the following code from [this example MCP server](https://github.co
1616
<TypeScriptExample>
1717
```ts title="src/index.ts"
1818
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp";
19-
import { DurableMCP } from "@cloudflare/model-context-protocol";
19+
import { McpAgent } from "agents/mcp";
2020

21-
export class MyMCP extends DurableMCP {
21+
export class MyMCP extends McpAgent {
2222
server = new McpServer({ name: "Demo", version: "1.0.0" });
2323
async init() {
2424
this.server.tool(

src/content/docs/agents/model-context-protocol/transport.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The Model Context Protocol (MCP) specification defines [two standard transport m
1212
1. **stdio, communication over standard in and standard out** — designed for local MCP connections
1313
2. **HTTP with Server-Sent Events (SSE)** — designed for remote MCP connections
1414

15-
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.
15+
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.
1616

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

0 commit comments

Comments
 (0)