Merge branch 'main' into main
This commit is contained in:
commit
1f197bf906
2 changed files with 10 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
# Build stage
|
# Build stage
|
||||||
FROM node:24-slim AS builder
|
FROM node:current-alpine3.22 AS builder
|
||||||
|
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
@ -49,4 +49,4 @@ ENV SERVER_PORT=6277
|
||||||
EXPOSE ${CLIENT_PORT} ${SERVER_PORT}
|
EXPOSE ${CLIENT_PORT} ${SERVER_PORT}
|
||||||
|
|
||||||
# Use ENTRYPOINT with CMD for arguments
|
# Use ENTRYPOINT with CMD for arguments
|
||||||
ENTRYPOINT ["npm", "start"]
|
ENTRYPOINT ["npm", "start"]
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,14 @@ npx @modelcontextprotocol/inspector
|
||||||
|
|
||||||
The server will start up and the UI will be accessible at `http://localhost:6274`.
|
The server will start up and the UI will be accessible at `http://localhost:6274`.
|
||||||
|
|
||||||
|
### Docker Container
|
||||||
|
|
||||||
|
You can also start it in a Docker container with the following command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run --rm --network host -p 6274:6274 -p 6277:6277 ghcr.io/modelcontextprotocol/inspector:latest
|
||||||
|
```
|
||||||
|
|
||||||
### From an MCP server repository
|
### From an MCP server repository
|
||||||
|
|
||||||
To inspect an MCP server implementation, there's no need to clone this repo. Instead, use `npx`. For example, if your server is built at `build/index.js`:
|
To inspect an MCP server implementation, there's no need to clone this repo. Instead, use `npx`. For example, if your server is built at `build/index.js`:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue