Skip to content

Commit d87f26d

Browse files
committed
remove docstring
1 parent e3ebab9 commit d87f26d

File tree

7 files changed

+12
-52
lines changed

7 files changed

+12
-52
lines changed

README.md

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,7 @@ Client usage:
532532

533533
<!-- snippet-source examples/snippets/clients/completion_client.py -->
534534
```python
535-
"""MCP client example showing completion usage.
536-
537-
This example demonstrates how to use the completion feature in MCP clients.
535+
"""
538536
cd to the `examples/snippets` directory and run:
539537
uv run completion-client
540538
"""
@@ -865,11 +863,7 @@ Note that `uv run mcp run` or `uv run mcp dev` only supports server using FastMC
865863
866864
<!-- snippet-source examples/snippets/servers/streamable_config.py -->
867865
```python
868-
"""Streamable HTTP server configuration examples.
869-
870-
This example shows different configuration options for
871-
streamable HTTP servers.
872-
866+
"""
873867
Run from the repository root:
874868
uv run examples/snippets/servers/streamable_config.py
875869
"""
@@ -906,11 +900,7 @@ You can mount multiple FastMCP servers in a Starlette application:
906900

907901
<!-- snippet-source examples/snippets/servers/streamable_starlette_mount.py -->
908902
```python
909-
"""Example of mounting multiple FastMCP servers in a Starlette application.
910-
911-
This example shows how to create multiple MCP servers and mount them
912-
at different endpoints in a single Starlette application.
913-
903+
"""
914904
Run from the repository root:
915905
uvicorn examples.snippets.servers.streamable_starlette_mount:app --reload
916906
"""
@@ -1351,9 +1341,7 @@ The SDK provides a high-level client interface for connecting to MCP servers usi
13511341

13521342
<!-- snippet-source examples/snippets/clients/stdio_client.py -->
13531343
```python
1354-
"""MCP client example using stdio transport.
1355-
1356-
This is a documentation example showing how to write an MCP client.
1344+
"""
13571345
cd to the `examples/snippets/clients` directory and run:
13581346
uv run client
13591347
"""
@@ -1445,11 +1433,7 @@ Clients can also connect using [Streamable HTTP transport](https://modelcontextp
14451433

14461434
<!-- snippet-source examples/snippets/clients/streamable_basic.py -->
14471435
```python
1448-
"""Basic streamable HTTP client example.
1449-
1450-
This example shows the minimal code needed to connect to
1451-
a streamable HTTP server and call a tool.
1452-
1436+
"""
14531437
Run from the repository root:
14541438
uv run examples/snippets/clients/streamable_basic.py
14551439
"""
@@ -1489,11 +1473,7 @@ When building MCP clients, the SDK provides utilities to help display human-read
14891473

14901474
<!-- snippet-source examples/snippets/clients/display_utilities.py -->
14911475
```python
1492-
"""Client display utilities example.
1493-
1494-
This example shows how to use the SDK's display utilities to show
1495-
human-readable names for tools, resources, and prompts.
1496-
1476+
"""
14971477
cd to the `examples/snippets` directory and run:
14981478
uv run display-utilities-client
14991479
"""

examples/snippets/clients/completion_client.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""MCP client example showing completion usage.
2-
3-
This example demonstrates how to use the completion feature in MCP clients.
1+
"""
42
cd to the `examples/snippets` directory and run:
53
uv run completion-client
64
"""

examples/snippets/clients/display_utilities.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
"""Client display utilities example.
2-
3-
This example shows how to use the SDK's display utilities to show
4-
human-readable names for tools, resources, and prompts.
5-
1+
"""
62
cd to the `examples/snippets` directory and run:
73
uv run display-utilities-client
84
"""

examples/snippets/clients/stdio_client.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""MCP client example using stdio transport.
2-
3-
This is a documentation example showing how to write an MCP client.
1+
"""
42
cd to the `examples/snippets/clients` directory and run:
53
uv run client
64
"""

examples/snippets/clients/streamable_basic.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
"""Basic streamable HTTP client example.
2-
3-
This example shows the minimal code needed to connect to
4-
a streamable HTTP server and call a tool.
5-
1+
"""
62
Run from the repository root:
73
uv run examples/snippets/clients/streamable_basic.py
84
"""

examples/snippets/servers/streamable_config.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
"""Streamable HTTP server configuration examples.
2-
3-
This example shows different configuration options for
4-
streamable HTTP servers.
5-
1+
"""
62
Run from the repository root:
73
uv run examples/snippets/servers/streamable_config.py
84
"""

examples/snippets/servers/streamable_starlette_mount.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
"""Example of mounting multiple FastMCP servers in a Starlette application.
2-
3-
This example shows how to create multiple MCP servers and mount them
4-
at different endpoints in a single Starlette application.
5-
1+
"""
62
Run from the repository root:
73
uvicorn examples.snippets.servers.streamable_starlette_mount:app --reload
84
"""

0 commit comments

Comments
 (0)