Skip to content

Commit a8ed6e1

Browse files
committed
update docs
1 parent 5399bdc commit a8ed6e1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/mcp/client.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,16 @@ Examples of both are shown below; [mcp-run-python](run-python.md) is used as the
2525

2626
### SSE Client
2727

28-
[`MCPServerHTTP`][pydantic_ai.mcp.MCPServerHTTP] connects over HTTP using the [HTTP + Server Sent Events transport](https://spec.modelcontextprotocol.io/specification/2024-11-05/basic/transports/#http-with-sse) to a server.
28+
[`MCPServerHTTP`][pydantic_ai.mcp.MCPServerHTTP] connects over HTTP using the [Streamable HTTP transport](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports) to a server.
2929

3030
!!! note
3131
[`MCPServerHTTP`][pydantic_ai.mcp.MCPServerHTTP] requires an MCP server to be running and accepting HTTP connections before calling [`agent.run_mcp_servers()`][pydantic_ai.Agent.run_mcp_servers]. Running the server is not managed by PydanticAI.
3232

33-
The name "HTTP" is used since this implemented will be adapted in future to use the new
34-
[Streamable HTTP](https://github.com/modelcontextprotocol/specification/pull/206) currently in development.
33+
The StreamableHTTP Transport is able to connect to both stateless http and sse servers.
3534

36-
Before creating the SSE client, we need to run the server (docs [here](run-python.md)):
35+
Before creating the HTTP client, we need to run the server (docs [here](run-python.md)):
3736

38-
```bash {title="terminal (run sse server)"}
37+
```bash {title="terminal (run http server)"}
3938
deno run \
4039
-N -R=node_modules -W=node_modules --node-modules-dir=auto \
4140
jsr:@pydantic/mcp-run-python sse

0 commit comments

Comments
 (0)