Skip to content

Commit a53c853

Browse files
committed
add note in migration.md
1 parent 81d9a09 commit a53c853

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/migration.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ result = await session.list_resources(params=PaginatedRequestParams(cursor="next
116116
result = await session.list_tools(params=PaginatedRequestParams(cursor="next_page_token"))
117117
```
118118

119+
### `mount_path` parameter removed from FastMCP
120+
121+
The `mount_path` parameter has been removed from `FastMCP.__init__()`, `FastMCP.run()`, `FastMCP.run_sse_async()`, and `FastMCP.sse_app()`. It was also removed from the `Settings` class.
122+
123+
This parameter was redundant because the SSE transport already handles sub-path mounting via ASGI's standard `root_path` mechanism. When using Starlette's `Mount("/path", app=mcp.sse_app())`, Starlette automatically sets `root_path` in the ASGI scope, and the `SseServerTransport` uses this to construct the correct message endpoint path.
124+
119125
### Resource URI type changed from `AnyUrl` to `str`
120126

121127
The `uri` field on resource-related types now uses `str` instead of Pydantic's `AnyUrl`. This aligns with the [MCP specification schema](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/schema/draft/schema.ts) which defines URIs as plain strings (`uri: string`) without strict URL validation. This change allows relative paths like `users/me` that were previously rejected.

0 commit comments

Comments
 (0)