Skip to content

Commit f13b194

Browse files
committed
docs: split two semicolon-joined sentences on the transports page
No-Verification-Needed: doc and docstring wording only
1 parent f781f0e commit f13b194

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/client/transports.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Describe the process with `StdioServerParameters` and hand it to `Client`:
8888
--8<-- "docs_src/client_transports/tutorial004.py"
8989
```
9090

91-
Entering the block spawns the process; leaving it shuts the subprocess down: close stdin, wait, kill if it lingers. You never clean it up yourself.
91+
Entering the block spawns the process. Leaving it shuts the subprocess down: close stdin, wait, kill if it lingers. You never clean it up yourself.
9292

9393
The child's stderr goes to yours. To send it somewhere else, build the transport yourself with `stdio_client` (from `mcp`) and pass that instead: `Client(stdio_client(server, errlog=log_file))`.
9494

@@ -115,7 +115,7 @@ A **transport** is any async context manager that yields a `(read, write)` pair
115115
* `Client(mcp)` (the server object) connects in memory. Use it for tests and for embedding.
116116
* `Client("http://.../mcp")` (a URL) connects over Streamable HTTP, the production transport.
117117
* Headers, auth, proxies and timeouts belong on an `httpx2.AsyncClient` you pass to `streamable_http_client(url, http_client=...)`. There is no `headers=` keyword.
118-
* stdio is `Client(StdioServerParameters(...))`; wrap it in `stdio_client(...)` yourself only to redirect the child's stderr.
118+
* stdio is `Client(StdioServerParameters(...))`. Wrap it in `stdio_client(...)` yourself only to redirect the child's stderr.
119119
* The subprocess gets an allow-listed environment, not yours; `env=` adds to it.
120120
* A transport is anything you can `async with x as (read, write)`. `Client` hands anything that isn't a server object, a URL or `StdioServerParameters` straight to that protocol.
121121
* Constructing a `Client` picks the transport. `async with` opens it.

tests/docs_src/test_client_transports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async def test_streamable_http_configuration_lives_on_the_httpx_client() -> None
4242

4343

4444
async def test_stdio_parameters_go_straight_to_client() -> None:
45-
"""tutorial004: `Client` takes the `StdioServerParameters` directly; nothing is spawned until you enter it."""
45+
"""tutorial004: `Client` takes the `StdioServerParameters` directly, and nothing is spawned until you enter it."""
4646
client = Client(tutorial004.server)
4747
with pytest.raises(RuntimeError, match="Client must be used within an async context manager"):
4848
client.session

0 commit comments

Comments
 (0)