We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2932236 commit d18a2fdCopy full SHA for d18a2fd
docs/concepts.md
@@ -37,13 +37,13 @@ mcp = MCPServer("Demo")
37
38
39
@mcp.resource("config://app")
40
-def get_config() -> dict:
+def get_config() -> dict[str, str]:
41
"""Expose application configuration."""
42
return {"theme": "dark", "version": "2.0"}
43
44
45
@mcp.resource("users://{user_id}/profile")
46
-def get_profile(user_id: str) -> dict:
+def get_profile(user_id: str) -> dict[str, str]:
47
"""Get a user profile by ID."""
48
return {"user_id": user_id, "name": "Alice"}
49
```
0 commit comments