Mirror of https://github.com/modelcontextprotocol/inspector — Visual testing tool for MCP servers
  • TypeScript 90.8%
  • JavaScript 8.8%
  • CSS 0.2%
  • HTML 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Justin Spahr-Summers 148e84388a
Merge pull request #46 from modelcontextprotocol/justin/oss-prep
Add license and package metadata
2024-11-11 12:22:32 +00:00
.github/workflows Work around npm CLI issue 2024-10-28 10:55:15 +00:00
bin Make root package installable/executable 2024-11-11 11:10:42 +00:00
client Remove client prepare script 2024-11-11 12:19:14 +00:00
server Make nested packages private, just install root package 2024-11-11 11:20:53 +00:00
.gitattributes Switch to npm 2024-10-28 10:48:41 +00:00
.gitignore fix type errors 2024-10-16 16:22:14 -07:00
.npmrc Add .npmrc 2024-10-31 21:53:01 +00:00
.prettierignore init root 2024-10-07 16:28:11 -07:00
.prettierrc init root 2024-10-07 16:28:11 -07:00
LICENSE Add license and more package metadata 2024-11-11 10:37:09 +00:00
package-lock.json Make nested packages private, just install root package 2024-11-11 11:20:53 +00:00
package.json Disallow publishing root package for now 2024-11-11 12:15:52 +00:00
README.md README instructions for preinstalling the SDK 2024-10-29 14:22:19 +00:00

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:

  1. 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.
  2. 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