Commit 7d3ea3b
committed
docs: say out loud that mcp.run() is a stdio server, on the host page
"Connect to a real host" showed a server file ending in mcp.run() and
never said what that call does, which is the one fact the whole page
stands on: with no arguments it is a STDIO server -- it blocks, reads
protocol messages on stdin, writes them on stdout, and never opens a
port. That is why every host on the page is configured with a command
rather than an address. Running your server explains this, but a
reader lands on this page from the Get started sequence (or a search)
without having read that one.
The same page now also answers the two questions a reader has next, in
one note: this is the LOCAL story (to serve people who don't have your
file, you hand out a URL -- Running your server, then Deploy & scale),
and a host is just an application with an MCP client inside, so your
own Python can play that part (Client transports launches the same
file with stdio_client). Client transports points back the other way.1 parent 01128d6 commit 7d3ea3b
2 files changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
42 | 56 | | |
43 | 57 | | |
44 | 58 | | |
| |||
0 commit comments