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/).
1061
+
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)
2101
2098
-**Flexible page sizes** - Each endpoint can define its own page size based on data characteristics
2102
2099
2103
-
See the [simple-pagination example](https://github.com/modelcontextprotocol/python-sdk/tree/main/examples/servers/simple-pagination) for a complete implementation.
2100
+
See the [pagination example](https://github.com/modelcontextprotocol/python-sdk/tree/main/examples/stories/pagination) for a complete implementation.
2104
2101
2105
2102
### Writing MCP Clients
2106
2103
@@ -2320,7 +2317,7 @@ The SDK includes [authorization support](https://modelcontextprotocol.io/specifi
2320
2317
```python
2321
2318
"""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/).
2415
+
For a complete working example, see [`examples/stories/oauth/`](https://github.com/modelcontextprotocol/python-sdk/tree/main/examples/stories/oauth/).
0 commit comments