Skip to main content
Beta Feature - This API is in active development. We’d love your feedback!Share feedback on Discord or open a GitHub issue
Launch MCPJam Inspector programmatically from your code. This is useful for:
  • MCP server developers - Auto-launch the inspector when running your dev server
  • Framework integrations - Embed inspector into your Vite dev workflow

CLI Flags

Configure the inspector via CLI flags when running npx @mcpjam/inspector@latest:

Available Flags

Example: OAuth Server

Programmatic API

Use launchInspector() to spawn the inspector from any Node.js script:

LaunchOptions

InspectorInstance

The returned instance provides:

Example: Auto-launch with your MCP server

Vite Plugin

For Vite-based projects, use the plugin to auto-launch the inspector alongside your dev server:
When you run npm run dev, the inspector automatically launches and connects to your server.

Plugin Options

Feedback Wanted

This is a beta feature and we’re actively iterating on the API. We’d love to hear:
  • What use cases are you building?
  • What’s missing from the API?
  • Any bugs or rough edges?

Share Feedback

Join our Discord to share feedback and connect with other MCP developers