From 7f7306fc41dfff339b03bd162872a28f64f0356c Mon Sep 17 00:00:00 2001 From: Stephen Walsh Date: Wed, 28 Oct 2026 14:00:57 +0000 Subject: [PATCH] Run the MCP Inspector in Docker Compose, pointed at the server docker compose up now also starts the official MCP Inspector on localhost:6274, already configured for the server over Streamable HTTP, so the tools, their descriptions and input schemas can be browsed and run without installing anything. --- README.md | 2 +- docker-compose.yml | 9 +++++++++ docs/RUN.md | 5 +++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f4fc306..8798de2 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ dotnet new cleanmodelcontextprotocol --name {YOUR_SOLUTION_NAMESPACE} --author " docker compose up -d ``` -Then open the MCP endpoint (connect with an MCP client such as the [MCP Inspector](https://github.com/modelcontextprotocol/inspector)) at . See [docs/RUN.md](docs/RUN.md) for every way to run it. +Then open the [MCP Inspector](https://github.com/modelcontextprotocol/inspector) at . It's already pointed at the MCP endpoint (), so connect and open **Tools** to browse and run them. See [docs/RUN.md](docs/RUN.md) for every way to run it. The `Dockerfile` has stages for testing, publishing and running, so you can build just the part you need. You can also stamp a version into the assembly. diff --git a/docker-compose.yml b/docker-compose.yml index 14946d5..ca1bb02 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,6 +14,15 @@ services: - cleanmodelcontextprotocol_network depends_on: - seq + inspector: + image: ghcr.io/modelcontextprotocol/inspector:2.12.0 + command: ["--web", "--transport", "http", "--server-url", "http://api:8080"] + ports: + - "127.0.0.1:6274:6274" + networks: + - cleanmodelcontextprotocol_network + depends_on: + - api seq: image: datalust/seq:latest ports: diff --git a/docs/RUN.md b/docs/RUN.md index bece1f6..69edcad 100644 --- a/docs/RUN.md +++ b/docs/RUN.md @@ -12,13 +12,14 @@ dotnet run --project ./src/Presentation ## Docker Compose -`docker-compose.yml` starts the app and a Seq container for logs. +`docker-compose.yml` starts the app, the [MCP Inspector](https://github.com/modelcontextprotocol/inspector) already pointed at it, and a Seq container for logs. ``` bash docker compose up -d --build ``` -- App: (MCP endpoint (connect with an MCP client such as the [MCP Inspector](https://github.com/modelcontextprotocol/inspector))) +- App: (MCP endpoint, Streamable HTTP) +- MCP Inspector: . Flip the switch on the server card to connect, then open **Tools** to see every tool with its description and input schema and run it. - Seq: To shut the containers down: