ea4484cc0467a8960d41c77319dcfc0e1a87cdc4
The roots state is capture at the initialization of the connectMcpServer. This causes roots/list to always return empty roots despite updates to the roots. We are now using a ref to reference it and avoid the closure issue. roots/list now returns correctly the roots.
MCP Inspector
The MCP inspector is a developer tool for testing and debugging MCP servers.
Getting started
This repository depends on the MCP TypeScript SDK. Until these repositories are made public and published to npm, the SDK has to be preinstalled manually:
- Download the latest release of the SDK (the file named something like
modelcontextprotocol-sdk-0.1.0.tgz). You don't need to extract it. - From within your checkout of this repository, run
npm install --save path/to/sdk.tgz. This will overwrite the expected location for the SDK to allow you to proceed.
Then, you should be able to install the rest of the dependencies normally:
npm install
You can run it in dev mode via:
npm run dev
This will start both the client and server.
To run in production mode:
npm run build
npm start
Description
Languages
TypeScript
85.7%
JavaScript
13.1%
CSS
0.9%
Dockerfile
0.2%