docs: add code fences to Example: docstring blocks (#2104)
This commit is contained in:
parent
c0328540c9
commit
cb07adeca3
1 changed files with 83 additions and 18 deletions
|
|
@ -4,8 +4,8 @@ This module provides functionality for creating an stdio-based transport layer
|
|||
that can be used to communicate with an MCP client through standard input/output
|
||||
streams.
|
||||
|
||||
Example usage:
|
||||
```
|
||||
Example:
|
||||
```python
|
||||
async def run_server():
|
||||
async with stdio_server() as (read_stream, write_stream):
|
||||
# read_stream contains incoming JSONRPCMessages from stdin
|
||||
|
|
@ -14,7 +14,7 @@ Example usage:
|
|||
await server.run(read_stream, write_stream, init_options)
|
||||
|
||||
anyio.run(run_server)
|
||||
```
|
||||
```
|
||||
"""
|
||||
|
||||
import sys
|
||||
|
|
|
|||
Loading…
Reference in a new issue