Skip to content

Commit 8690d52

Browse files
committed
fix: correct relative links in docs after README restructure
Links moved from README.md to docs/ need ../ prefix to resolve correctly from the docs/ directory. Also fix icons_demo.py GitHub link to point to v1.x branch where the file exists.
1 parent 2a1e7b9 commit 8690d52

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ if __name__ == "__main__":
315315
_Full example: [examples/snippets/clients/oauth_client.py](https://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/clients/oauth_client.py)_
316316
<!-- /snippet-source -->
317317

318-
For a complete working example, see [`examples/clients/simple-auth-client/`](examples/clients/simple-auth-client/).
318+
For a complete working example, see [`examples/clients/simple-auth-client/`](../examples/clients/simple-auth-client/).
319319

320320
## Parsing Tool Results
321321

docs/server.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def my_resource():
411411
return "content"
412412
```
413413

414-
_Full example: [examples/fastmcp/icons_demo.py](https://github.com/modelcontextprotocol/python-sdk/blob/main/examples/fastmcp/icons_demo.py)_
414+
_Full example: [examples/fastmcp/icons_demo.py](https://github.com/modelcontextprotocol/python-sdk/blob/v1.x/examples/fastmcp/icons_demo.py)_
415415

416416
### Images
417417

@@ -843,15 +843,15 @@ if __name__ == "__main__":
843843
_Full example: [examples/snippets/servers/oauth_server.py](https://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/oauth_server.py)_
844844
<!-- /snippet-source -->
845845

846-
For a complete example with separate Authorization Server and Resource Server implementations, see [`examples/servers/simple-auth/`](examples/servers/simple-auth/).
846+
For a complete example with separate Authorization Server and Resource Server implementations, see [`examples/servers/simple-auth/`](../examples/servers/simple-auth/).
847847

848848
**Architecture:**
849849

850850
- **Authorization Server (AS)**: Handles OAuth flows, user authentication, and token issuance
851851
- **Resource Server (RS)**: Your MCP server that validates tokens and serves protected resources
852852
- **Client**: Discovers AS through RFC 9728, obtains tokens, and uses them with the MCP server
853853

854-
See [TokenVerifier](src/mcp/server/auth/provider.py) for more details on implementing token validation.
854+
See [TokenVerifier](../src/mcp/server/auth/provider.py) for more details on implementing token validation.
855855

856856
### FastMCP Properties
857857

@@ -1131,8 +1131,8 @@ _Full example: [examples/snippets/servers/streamable_starlette_mount.py](https:/
11311131

11321132
For low level server with Streamable HTTP implementations, see:
11331133

1134-
- Stateful server: [`examples/servers/simple-streamablehttp/`](examples/servers/simple-streamablehttp/)
1135-
- Stateless server: [`examples/servers/simple-streamablehttp-stateless/`](examples/servers/simple-streamablehttp-stateless/)
1134+
- Stateful server: [`examples/servers/simple-streamablehttp/`](../examples/servers/simple-streamablehttp/)
1135+
- Stateless server: [`examples/servers/simple-streamablehttp-stateless/`](../examples/servers/simple-streamablehttp-stateless/)
11361136

11371137
The streamable HTTP transport supports:
11381138

@@ -1927,4 +1927,4 @@ _Full example: [examples/snippets/clients/pagination_client.py](https://github.c
19271927
- **Backward compatible** - clients that don't support pagination will still work (they'll just get the first page)
19281928
- **Flexible page sizes** - Each endpoint can define its own page size based on data characteristics
19291929

1930-
See the [simple-pagination example](examples/servers/simple-pagination) for a complete implementation.
1930+
See the [simple-pagination example](../examples/servers/simple-pagination) for a complete implementation.

0 commit comments

Comments
 (0)