Skip to content

Commit 7c0a072

Browse files
docs: add spec schema link to migration guide
Reference the MCP specification schema to prove that Resource URI change from AnyUrl to str is spec-compliant.
1 parent 3f0394d commit 7c0a072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The `headers`, `timeout`, `sse_read_timeout`, and `auth` parameters have been re
5454

5555
### Resource URI type changed from `AnyUrl` to `str`
5656

57-
The `uri` field on resource-related types now uses `str` instead of Pydantic's `AnyUrl`. This aligns with the MCP specification which defines URIs as plain strings without validation. This change allows relative paths like `users/me` that were previously rejected.
57+
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.
5858

5959
**Before (v1):**
6060

0 commit comments

Comments
 (0)