@@ -133,12 +133,12 @@ def get_greeting(name: str) -> str:
133
133
134
134
You can install this server in [ Claude Desktop] ( https://claude.ai/download ) and interact with it right away by running:
135
135
``` bash
136
- mcp install server.py
136
+ uv run mcp install server.py
137
137
```
138
138
139
139
Alternatively, you can test it with the MCP Inspector:
140
140
``` bash
141
- mcp dev server.py
141
+ uv run mcp dev server.py
142
142
```
143
143
144
144
## What is MCP?
@@ -589,28 +589,28 @@ See [TokenVerifier](src/mcp/server/auth/provider.py) for more details on impleme
589
589
The fastest way to test and debug your server is with the MCP Inspector:
590
590
591
591
``` bash
592
- mcp dev server.py
592
+ uv run mcp dev server.py
593
593
594
594
# Add dependencies
595
- mcp dev server.py --with pandas --with numpy
595
+ uv run mcp dev server.py --with pandas --with numpy
596
596
597
597
# Mount local code
598
- mcp dev server.py --with-editable .
598
+ uv run mcp dev server.py --with-editable .
599
599
```
600
600
601
601
### Claude Desktop Integration
602
602
603
603
Once your server is ready, install it in Claude Desktop:
604
604
605
605
``` bash
606
- mcp install server.py
606
+ uv run mcp install server.py
607
607
608
608
# Custom name
609
- mcp install server.py --name " My Analytics Server"
609
+ uv run mcp install server.py --name " My Analytics Server"
610
610
611
611
# Environment variables
612
- mcp install server.py -v API_KEY=abc123 -v DB_URL=postgres://...
613
- mcp install server.py -f .env
612
+ uv run mcp install server.py -v API_KEY=abc123 -v DB_URL=postgres://...
613
+ uv run mcp install server.py -f .env
614
614
```
615
615
616
616
### Direct Execution
@@ -630,10 +630,10 @@ Run it with:
630
630
``` bash
631
631
python server.py
632
632
# or
633
- mcp run server.py
633
+ uv run mcp run server.py
634
634
```
635
635
636
- Note that ` mcp run ` or ` mcp dev ` only supports server using FastMCP and not the low-level server variant.
636
+ Note that ` uv run mcp run` or ` uv run mcp dev` only supports server using FastMCP and not the low-level server variant.
637
637
638
638
### Streamable HTTP Transport
639
639
@@ -949,7 +949,7 @@ if __name__ == "__main__":
949
949
asyncio.run(run())
950
950
```
951
951
952
- Caution: The ` mcp run ` and ` mcp dev ` tool doesn't support low-level server.
952
+ Caution: The ` uv run mcp run` and ` uv run mcp dev` tool doesn't support low-level server.
953
953
954
954
#### Structured Output Support
955
955
0 commit comments