You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove examples superseded by stories/; update dangling references
- Delete examples/clients/* and examples/servers/simple-*, sse-polling-demo
(each has an equivalent under examples/stories/)
- examples/mcpserver/*.py: add TODO pointers to the corresponding story
- README.v2.md, examples/snippets/clients/oauth_client.py: update paths that
pointed at the removed examples
- src/mcp/server/auth/middleware/bearer_auth.py: drop pragma now that the
bearer_auth story exercises this path
For a complete example with separate Authorization Server and Resource Server implementations, see [`examples/servers/simple-auth/`](https://github.com/modelcontextprotocol/python-sdk/tree/main/examples/servers/simple-auth/).
1059
+
For a complete example with separate Authorization Server and Resource Server implementations, see [`examples/stories/oauth/`](https://github.com/modelcontextprotocol/python-sdk/tree/main/examples/stories/oauth/) (and [`examples/stories/bearer_auth/`](https://github.com/modelcontextprotocol/python-sdk/tree/main/examples/stories/bearer_auth/) for static-token auth).
For low level server with Streamable HTTP implementations, see [`examples/stories/stateless_legacy/`](https://github.com/modelcontextprotocol/python-sdk/tree/main/examples/stories/stateless_legacy/).
-**Backward compatible** - clients that don't support pagination will still work (they'll just get the first page)
2093
2090
-**Flexible page sizes** - Each endpoint can define its own page size based on data characteristics
2094
2091
2095
-
See the [simple-pagination example](https://github.com/modelcontextprotocol/python-sdk/tree/main/examples/servers/simple-pagination) for a complete implementation.
2092
+
See the [pagination example](https://github.com/modelcontextprotocol/python-sdk/tree/main/examples/stories/pagination) for a complete implementation.
2096
2093
2097
2094
### Writing MCP Clients
2098
2095
@@ -2310,7 +2307,7 @@ The SDK includes [authorization support](https://modelcontextprotocol.io/specifi
2310
2307
```python
2311
2308
"""Before running, specify running MCP RS server URL.
For a complete working example, see [`examples/clients/simple-auth-client/`](https://github.com/modelcontextprotocol/python-sdk/tree/main/examples/clients/simple-auth-client/).
2405
+
For a complete working example, see [`examples/stories/oauth/`](https://github.com/modelcontextprotocol/python-sdk/tree/main/examples/stories/oauth/).
0 commit comments