Prerequisites
Make sure you have the following installed:
- Node.js (LTS version recommended)
- npm (comes with Node.js)
Quick Setup
-
Fork and clone the repository:
git clone https://github.com/YOUR_USERNAME/inspector.git
cd inspector
-
Install dependencies:
-
Start development server:
For Windows users:
-
Open your browser to
http://localhost:3000
Development Commands
- Run tests:
npm test
- Format code:
npm run prettier-fix
- Build project:
npm run build
Testing with Config Files
When developing, you can test your changes with configuration files:
# Build first, then run with config
npm run build
npm start -- --config ../config.json --server everything
# Or run the CLI script directly
node bin/start.js --config ../config.json --server everything
Remember to use -- when passing arguments through npm scripts: npm start -- --config file.json
This is useful for:
- Testing changes on a specific branch
- Validating configuration file handling
- Development workflow with multiple MCP servers
Next Steps