You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test-mcp/README.md
+28-9Lines changed: 28 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,33 +71,40 @@ uv sync
71
71
72
72
### FastMCP Library Server (HTTP)
73
73
```bash
74
-
# Using the script
74
+
# Using the script (automatically starts MCP inspector)
75
75
./run_fastmcp.sh
76
76
77
-
# Or directly
77
+
# Or directly (just the server, no inspector)
78
78
uv run python main_fastmcp.py
79
79
```
80
80
81
-
This starts an HTTP server on `http://127.0.0.1:8000` that you can interact with via HTTP requests.
81
+
This starts an HTTP server on `http://127.0.0.1:8000` that you can interact with via HTTP requests. The `run_fastmcp.sh` script automatically starts the MCP inspector tool for testing.
82
82
83
83
### MCP Built-in FastMCP Server (STDIO)
84
84
```bash
85
-
# Using the script
85
+
# Using the script (automatically starts MCP inspector)
86
86
./run.sh
87
87
88
-
# Or directly
88
+
# Or directly (just the server, no inspector)
89
89
uv run python main.py
90
90
```
91
91
92
+
The `run.sh` script automatically starts the MCP inspector tool for testing.
93
+
92
94
### Low-Level Server (STDIO)
93
95
```bash
94
-
# Using the script
96
+
# Using the script (server only)
95
97
./run_lowlevel.sh
96
98
97
99
# Or directly
98
100
uv run python main_lowlevel.py
99
101
```
100
102
103
+
**Note:** The `run_lowlevel.sh` script does NOT automatically start the MCP inspector. To test this server, you need to manually start the inspector:
104
+
```bash
105
+
npx @modelcontextprotocol/inspector
106
+
```
107
+
101
108
## Using with MCP Clients
102
109
103
110
The STDIO-based servers (`main.py` and `main_lowlevel.py`) can be used with any MCP-compatible client like [Claude Desktop](https://claude.ai/download).
@@ -144,15 +151,27 @@ The FastMCP Library server runs as an HTTP server and requires a different clien
144
151
145
152
The [MCP Inspector](https://github.com/modelcontextprotocol/inspector) is a developer tool for testing and debugging MCP servers. It provides an interactive web interface to test your server's tools, resources, and prompts.
146
153
147
-
### Installation & Usage
154
+
### Automatic Inspector Startup
155
+
156
+
The following run scripts **automatically start the MCP inspector** for you:
157
+
-`./run.sh` (MCP Built-in FastMCP server)
158
+
-`./run_fastmcp.sh` (FastMCP Library server)
159
+
160
+
### Manual Inspector Startup
148
161
149
-
The MCP Inspector can be run directly using `npx` without installation:
162
+
For the **low-level server** (`run_lowlevel.sh`), the inspector is NOT started automatically. You need to manually start it:
150
163
151
164
```bash
165
+
# First, start the server
166
+
./run_lowlevel.sh
167
+
168
+
# Then, in a separate terminal, start the inspector
152
169
npx @modelcontextprotocol/inspector
153
170
```
154
171
155
-
### Testing Each Server Implementation
172
+
### Testing Each Server Implementation Manually
173
+
174
+
If you prefer to run the inspector manually for any server:
0 commit comments