Skip to content

docs(example): show command to run MCP Inspector #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions examples/hello-world-mcp-server-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ cargo build -p hello-world-mcp-server-core --release
3. After building the project, the binary will be located at `target/release/hello-world-mcp-server-core`
You can test it with [MCP Inspector](https://modelcontextprotocol.io/docs/tools/inspector), or alternatively, use it with any MCP client you prefer.

```bash
npx -y @modelcontextprotocol/inspector ./target/release/hello-world-mcp-server-core
```

```
Starting MCP inspector...
⚙ Proxy server listening on port 6277
🔍 MCP Inspector is up and running at http://127.0.0.1:6274 🚀
```

Here you can see it in action :

![hello-world-mcp-server-core]![hello-world-mcp-server](../../assets/examples/hello-world-mcp-server.gif)
10 changes: 10 additions & 0 deletions examples/hello-world-mcp-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ cargo build -p hello-world-mcp-server --release
3. After building the project, the binary will be located at `target/release/hello-world-mcp-server`
You can test it with [MCP Inspector](https://modelcontextprotocol.io/docs/tools/inspector), or alternatively, use it with any MCP client you prefer.

```bash
npx -y @modelcontextprotocol/inspector ./target/release/hello-world-mcp-server
```

```
Starting MCP inspector...
⚙ Proxy server listening on port 6277
🔍 MCP Inspector is up and running at http://127.0.0.1:6274 🚀
```

Here you can see it in action :

![hello-world-mcp-server](../../assets/examples/hello-world-mcp-server.gif)
6 changes: 6 additions & 0 deletions examples/hello-world-server-core-sse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ cargo run -p hello-world-server-sse --release
By default, the SSE endpoint is accessible at `http://127.0.0.1:8080/sse`.
You can test it with [MCP Inspector](https://modelcontextprotocol.io/docs/tools/inspector), or alternatively, use it with any MCP client you prefer.

```bash
npx -y @modelcontextprotocol/inspector
```

Then visit: http://localhost:6274/?transport=sse&serverUrl=http://localhost:8080/sse

Here you can see it in action :

![hello-world-mcp-server-sse-core](../../assets/examples/hello-world-server-sse.gif)
6 changes: 6 additions & 0 deletions examples/hello-world-server-sse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ cargo run -p hello-world-server-sse --release
By default, the SSE endpoint is accessible at `http://127.0.0.1:8080/sse`.
You can test it with [MCP Inspector](https://modelcontextprotocol.io/docs/tools/inspector), or alternatively, use it with any MCP client you prefer.

```bash
npx -y @modelcontextprotocol/inspector
```

Then visit: http://localhost:6274/?transport=sse&serverUrl=http://localhost:8080/sse

Here you can see it in action :

![hello-world-mcp-server](../../assets/examples/hello-world-server-sse.gif)