Skip to content

Commit 9d8fc87

Browse files
cliffhallclaude
andcommitted
docs: move the Transports section after Using an MCP Client
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
1 parent 8303e32 commit 9d8fc87

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

‎README.md‎

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -76,30 +76,6 @@ python -m mcp_server_git
7676

7777
Follow [these](https://docs.astral.sh/uv/getting-started/installation/) instructions to install `uv` / `uvx` and [these](https://pip.pypa.io/en/stable/installation/) to install `pip`.
7878

79-
### Transports: stdio and Streamable HTTP
80-
81-
An MCP server talks to its client over a **transport**. The protocol defines two standard ones, and they run very differently:
82-
83-
| Transport | How the server runs | How a client reaches it |
84-
|---|---|---|
85-
| **stdio** | The client launches the server as a subprocess and talks to it over the process's stdin and stdout. The server opens no port. | A `command` and `args` in the client's configuration, as in the examples below |
86-
| **Streamable HTTP** | The server runs on its own as an HTTP service, and can serve many clients | A URL, such as `http://localhost:3001/mcp` |
87-
88-
**Every server in this repository serves stdio, and only [Everything](src/everything) also serves Streamable HTTP** (its README shows how to start it that way, and covers its deprecated HTTP+SSE transport too). So when you run `uvx mcp-server-git` or `npx -y @modelcontextprotocol/server-memory` in a terminal, it opens no port, prints at most a one-line startup notice, and then appears to hang. That is expected: it is waiting for a client to send it messages on stdin. You do not normally start a stdio server yourself; your MCP client starts it from its configuration and stops it when it is done.
89-
90-
To try a server without setting up a client, use the [MCP Inspector](https://github.com/modelcontextprotocol/inspector). Given a stdio server's command, it launches the server for you and lets you browse and call its tools; given a URL, it connects to a running Streamable HTTP server:
91-
92-
```sh
93-
# A stdio server: the Inspector launches it
94-
npx @modelcontextprotocol/inspector uvx mcp-server-git
95-
96-
# A Streamable HTTP server: start it first, then connect to its URL
97-
npx @modelcontextprotocol/server-everything streamableHttp
98-
npx @modelcontextprotocol/inspector --transport http --server-url http://localhost:3001/mcp
99-
```
100-
101-
For more, see the [transport layer](https://modelcontextprotocol.io/docs/learn/architecture#transport-layer) in the MCP architecture overview, and [Transports](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports) in the specification.
102-
10379
### Using an MCP Client
10480
However, running a server on its own isn't very useful, and should instead be configured into an MCP client. For example, here's the Claude Desktop configuration to use the above server:
10581

@@ -157,6 +133,30 @@ Additional examples of using the Claude Desktop as an MCP client might look like
157133

158134
On Windows, apply the same wrapper to each `npx`-based entry above by changing `"command"` to `"cmd"` and prepending `"/c", "npx"` to the existing `args`. Leave `uvx` entries unchanged.
159135

136+
### Transports: stdio and Streamable HTTP
137+
138+
An MCP server talks to its client over a **transport**. The protocol defines two standard ones, and they run very differently:
139+
140+
| Transport | How the server runs | How a client reaches it |
141+
|---|---|---|
142+
| **stdio** | The client launches the server as a subprocess and talks to it over the process's stdin and stdout. The server opens no port. | A `command` and `args` in the client's configuration, as in the examples above |
143+
| **Streamable HTTP** | The server runs on its own as an HTTP service, and can serve many clients | A URL, such as `http://localhost:3001/mcp` |
144+
145+
**Every server in this repository serves stdio, and only [Everything](src/everything) also serves Streamable HTTP** (its README shows how to start it that way, and covers its deprecated HTTP+SSE transport too). So when you run `uvx mcp-server-git` or `npx -y @modelcontextprotocol/server-memory` in a terminal, it opens no port, prints at most a one-line startup notice, and then appears to hang. That is expected: it is waiting for a client to send it messages on stdin. You do not normally start a stdio server yourself; your MCP client starts it from its configuration and stops it when it is done.
146+
147+
To try a server without setting up a client, use the [MCP Inspector](https://github.com/modelcontextprotocol/inspector). Given a stdio server's command, it launches the server for you and lets you browse and call its tools; given a URL, it connects to a running Streamable HTTP server:
148+
149+
```sh
150+
# A stdio server: the Inspector launches it
151+
npx @modelcontextprotocol/inspector uvx mcp-server-git
152+
153+
# A Streamable HTTP server: start it first, then connect to its URL
154+
npx @modelcontextprotocol/server-everything streamableHttp
155+
npx @modelcontextprotocol/inspector --transport http --server-url http://localhost:3001/mcp
156+
```
157+
158+
For more, see the [transport layer](https://modelcontextprotocol.io/docs/learn/architecture#transport-layer) in the MCP architecture overview, and [Transports](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports) in the specification.
159+
160160
## 🛠️ Creating Your Own Server
161161

162162
Interested in creating your own MCP server? Visit the official documentation at [modelcontextprotocol.io](https://modelcontextprotocol.io/introduction) for comprehensive guides, best practices, and technical details on implementing MCP servers.

0 commit comments

Comments
 (0)