Skip to content

Commit cbfb9d8

Browse files
committed
docs: Update quickstart instructions for testing with inspector
Change from 'uv run mcp dev' to the simpler two-step approach: 1. Run server with 'uv run --with mcp server.py' 2. Open inspector with 'npx -y @modelcontextprotocol/inspector' and connect manually This avoids the complexity of mcp dev trying to manage stdio vs HTTP transport and gives users more control over the connection.
1 parent 2b4552f commit cbfb9d8

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,18 +177,26 @@ if __name__ == "__main__":
177177
_Full example: [examples/snippets/servers/fastmcp_quickstart.py](https://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/fastmcp_quickstart.py)_
178178
<!-- /snippet-source -->
179179

180-
You can install this server in [Claude Code](https://docs.claude.com/en/docs/claude-code/mcp) and interact with it right away by running:
180+
You can install this server in [Claude Code](https://docs.claude.com/en/docs/claude-code/mcp) and interact with it right away. First, run the server:
181+
182+
```bash
183+
uv run --with mcp examples/snippets/servers/fastmcp_quickstart.py
184+
```
185+
186+
Then add it to Claude Code:
181187

182188
```bash
183189
claude mcp add --transport http my-server http://localhost:8000/mcp
184190
```
185191

186-
Alternatively, you can test it with the MCP Inspector:
192+
Alternatively, you can test it with the MCP Inspector. Start the server as above, then in a separate terminal:
187193

188194
```bash
189-
uv run mcp dev server.py
195+
npx -y @modelcontextprotocol/inspector
190196
```
191197

198+
In the inspector UI, connect to `http://localhost:8000/mcp`.
199+
192200
## What is MCP?
193201

194202
The [Model Context Protocol (MCP)](https://modelcontextprotocol.io) lets you build servers that expose data and functionality to LLM applications in a secure, standardized way. Think of it like a web API, but specifically designed for LLM interactions. MCP servers can:

docs/index.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,16 @@ if __name__ == "__main__":
4242
mcp.run(transport="streamable-http")
4343
```
4444

45-
Test it with the [MCP Inspector](https://github.com/modelcontextprotocol/inspector):
45+
Run the server:
4646

4747
```bash
48-
uv run mcp dev server.py
48+
uv run --with mcp server.py
49+
```
50+
51+
Then open the [MCP Inspector](https://github.com/modelcontextprotocol/inspector) and connect to `http://localhost:8000/mcp`:
52+
53+
```bash
54+
npx -y @modelcontextprotocol/inspector
4955
```
5056

5157
## Getting Started

0 commit comments

Comments
 (0)