### Example Server Configuration File Source: https://github.com/sint-ai/inspector/blob/main/README.md An example JSON file demonstrating how to configure MCP servers, including command, arguments, and environment variables for each server. ```json { "mcpServers": { "everything": { "command": "npx", "args": ["@modelcontextprotocol/server-everything"], "env": { "hello": "Hello MCP!" } }, "my-server": { "command": "node", "args": ["build/index.js", "arg1", "arg2"], "env": { "key": "value", "key2": "value2" } } } } ``` -------------------------------- ### Run MCP Inspector Source: https://github.com/sint-ai/inspector/blob/main/README.md Quick start command to run the MCP Inspector in UI mode. The server starts, and the UI is accessible at http://localhost:6274. ```bash npx @modelcontextprotocol/inspector ``` -------------------------------- ### Start Inspector with Configuration File Source: https://github.com/sint-ai/inspector/blob/main/README.md Launches the MCP Inspector using a specified configuration file. This allows for managing settings for multiple MCP servers or complex configurations. ```bash npx @modelcontextprotocol/inspector --config path/to/config.json --server everything ``` -------------------------------- ### Build Commands for MCP Inspector Source: https://github.com/sint-ai/inspector/blob/main/CLAUDE.md Provides essential npm commands for building, developing, and formatting the MCP Inspector project. Includes commands for full build, client/server specific builds, development mode, and code formatting. ```bash npm run build npm run build-client npm run build-server npm run dev npm run dev:windows npm run prettier-fix cd client && npm run lint ``` -------------------------------- ### Run Inspector in Production Mode Source: https://github.com/sint-ai/inspector/blob/main/README.md Builds and starts the MCP Inspector in production mode. This involves compiling the project and then running the production build. ```bash npm run build npm start ``` -------------------------------- ### Integrate eslint-plugin-react for React Linting Source: https://github.com/sint-ai/inspector/blob/main/client/README.md This code demonstrates how to integrate the eslint-plugin-react into your ESLint configuration for a React project. It includes setting the React version, adding the plugin, and enabling its recommended rules for both standard JSX and jsx-runtime. ```javascript // eslint.config.js import react from "eslint-plugin-react"; export default tseslint.config({ // Set the react version settings: { react: { version: "18.3" } }, plugins: { // Add the react plugin react, }, rules: { // other rules... // Enable its recommended rules ...react.configs.recommended.rules, ...react.configs["jsx-runtime"].rules, }, }); ``` -------------------------------- ### Run Inspector in Development Mode Source: https://github.com/sint-ai/inspector/blob/main/README.md Starts the MCP Inspector in development mode for active development. A specific command is provided for Windows users. ```bash npm run dev # For Windows users: npm run dev:windows ``` -------------------------------- ### Configure ESLint for Type-Aware Linting Source: https://github.com/sint-ai/inspector/blob/main/client/README.md This snippet shows how to configure ESLint to enable type-aware linting rules in a React and TypeScript project using Vite. It involves setting parserOptions with project and tsconfigRootDir, and replacing recommended configs with type-checked versions. ```javascript export default tseslint.config({ languageOptions: { // other options... parserOptions: { project: ["./tsconfig.node.json", "./tsconfig.app.json"], tsconfigRootDir: import.meta.dirname, }, }, }); ``` -------------------------------- ### Update Monorepo Version Source: https://github.com/sint-ai/inspector/blob/main/scripts/README.md Updates the version across all package.json files in the monorepo and synchronizes package-lock.json. It handles root, client, server, and cli packages, updates workspace dependencies, and runs npm install. ```bash npm run update-version # Example: npm run update-version 0.14.3 ``` -------------------------------- ### Run MCP Inspector with MCP Server Source: https://github.com/sint-ai/inspector/blob/main/README.md Inspect an MCP server implementation by passing the server's entry point. Arguments and environment variables can be passed to the server. ```bash # Inspect a server built at build/index.js npx @modelcontextprotocol/inspector node build/index.js # Pass arguments only npx @modelcontextprotocol/inspector node build/index.js arg1 arg2 # Pass environment variables only npx @modelcontextprotocol/inspector -e key=value -e key2=$VALUE2 node build/index.js # Pass both environment variables and arguments npx @modelcontextprotocol/inspector -e key=value -e key2=$VALUE2 node build/index.js arg1 arg2 # Use -- to separate inspector flags from server arguments npx @modelcontextprotocol/inspector -e key=$VALUE -- node build/index.js -e server-flag ``` -------------------------------- ### Sint AI Inspector CLI: Resource and Prompt Listing Source: https://github.com/sint-ai/inspector/blob/main/README.md Commands to list available resources and prompts using the Sint AI Inspector CLI. These commands interact with the MCP server to retrieve metadata. ```bash npx @modelcontextprotocol/inspector --cli node build/index.js --method resources/list ``` ```bash npx @modelcontextprotocol/inspector --cli node build/index.js --method prompts/list ``` -------------------------------- ### Configure Inspector via URL Query Parameters Source: https://github.com/sint-ai/inspector/blob/main/README.md Sets initial transport type, server URL, server command, and server arguments using URL query parameters. Query parameters take precedence over localStorage settings. ```javascript http://localhost:6274/?transport=sse&serverUrl=http://localhost:8787/sse http://localhost:6274/?transport=streamable-http&serverUrl=http://localhost:8787/mcp http://localhost:6274/?transport=stdio&serverCommand=npx&serverArgs=arg1%20arg2 ``` -------------------------------- ### CLI Mode to List Available Tools Source: https://github.com/sint-ai/inspector/blob/main/README.md Uses the MCP Inspector's CLI mode to list all available tools for a given MCP server. ```bash npx @modelcontextprotocol/inspector --cli node build/index.js --method tools/list ``` -------------------------------- ### Sint AI Inspector: UI Mode vs CLI Mode Usage Source: https://github.com/sint-ai/inspector/blob/main/README.md Comparison of use cases for the UI Mode and CLI Mode of the Sint AI Inspector, highlighting suitability for development, automation, and learning. ```APIDOC UI Mode vs CLI Mode: Use Case | UI Mode | CLI Mode | ------------------------- | ------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | Server Development | Visual interface for interactive testing and debugging during development | Scriptable commands for quick testing and continuous integration; creates feedback loops with AI coding assistants like Cursor for rapid development | Resource Exploration | Interactive browser with hierarchical navigation and JSON visualization | Programmatic listing and reading for automation and scripting | Tool Testing | Form-based parameter input with real-time response visualization | Command-line tool execution with JSON output for scripting | Prompt Engineering | Interactive sampling with streaming responses and visual comparison | Batch processing of prompts with machine-readable output | Debugging | Request history, visualized errors, and real-time notifications | Direct JSON output for log analysis and integration with other tools | Automation | N/A | Ideal for CI/CD pipelines, batch processing, and integration with coding assistants | Learning MCP | Rich visual interface helps new users understand server capabilities | Simplified commands for focused learning of specific endpoints | ``` -------------------------------- ### Export Servers File Configuration (STDIO) Source: https://github.com/sint-ai/inspector/blob/main/README.md Copies a complete MCP configuration file structure for STDIO transport to the clipboard, including the default-server entry. ```json { "mcpServers": { "default-server": { "command": "node", "args": ["build/index.js", "--debug"], "env": { "API_KEY": "your-api-key", "DEBUG": "true" } } } } ``` -------------------------------- ### Release Workflow: Bumping Version Source: https://github.com/sint-ai/inspector/blob/main/scripts/README.md A common workflow for releasing new versions, involving updating the version using `update-version.js`, verifying consistency with `check-version`, committing changes, creating a Git tag, and pushing both commits and tags. ```bash # Update to new version npm run update-version 0.15.0 # Verify everything is correct npm run check-version # Commit the changes git add -A git commit -m "chore: bump version to 0.15.0" # Create a tag git tag 0.15.0 # Push changes and tag git push && git push --tags ``` -------------------------------- ### Configure Inspector Settings via URL Query Parameters Source: https://github.com/sint-ai/inspector/blob/main/README.md Sets initial configuration settings for the MCP Inspector using URL query parameters. These settings override existing localStorage configurations. ```javascript http://localhost:6274/?MCP_SERVER_REQUEST_TIMEOUT=10000&MCP_REQUEST_TIMEOUT_RESET_ON_PROGRESS=false&MCP_PROXY_FULL_ADDRESS=http://10.1.1.22:5577 ``` -------------------------------- ### Export Servers File Configuration (SSE) Source: https://github.com/sint-ai/inspector/blob/main/README.md Copies a complete MCP configuration file structure for SSE transport to the clipboard, including the default-server entry with an SSE URL. ```json { "mcpServers": { "default-server": { "type": "sse", "url": "http://localhost:3000/events", "note": "For SSE connections, add this URL directly in Client" } } } ``` -------------------------------- ### Sint AI Inspector CLI: Remote Server Interaction Source: https://github.com/sint-ai/inspector/blob/main/README.md Commands for connecting to a remote MCP server and executing methods like listing resources or calling tools. Requires the server's URL. ```bash npx @modelcontextprotocol/inspector --cli https://my-mcp-server.example.com ``` ```bash npx @modelcontextprotocol/inspector --cli https://my-mcp-server.example.com --method resources/list ``` ```bash npx @modelcontextprotocol/inspector --cli https://my-mcp-server.example.com --method tools/call --tool-name remotetool --tool-arg param=value ``` -------------------------------- ### Export Server Entry Configuration (STDIO) Source: https://github.com/sint-ai/inspector/blob/main/README.md Copies a single server configuration entry for STDIO transport to the clipboard. This JSON object can be added to your mcp.json file. ```json { "command": "node", "args": ["build/index.js", "--debug"], "env": { "API_KEY": "your-api-key", "DEBUG": "true" } } ``` -------------------------------- ### Bind Proxy Server to All Interfaces Source: https://github.com/sint-ai/inspector/blob/main/README.md Sets the HOST environment variable to 0.0.0.0 to bind the MCP Inspector proxy server to all network interfaces, allowing access from other devices. ```bash HOST=0.0.0.0 npm start ``` -------------------------------- ### CLI Mode with Configuration and Server Source: https://github.com/sint-ai/inspector/blob/main/README.md Utilizes the MCP Inspector's CLI mode with a specified configuration file and targets a particular MCP server. ```bash npx @modelcontextprotocol/inspector --cli --config path/to/config.json --server myserver ``` -------------------------------- ### Export Server Entry Configuration (SSE) Source: https://github.com/sint-ai/inspector/blob/main/README.md Copies a single server configuration entry for SSE transport to the clipboard. This JSON object contains the SSE URL for client configuration. ```json { "type": "sse", "url": "http://localhost:3000/events", "note": "For SSE connections, add this URL directly in Client" } ``` -------------------------------- ### Configure Allowed Origins Source: https://github.com/sint-ai/inspector/blob/main/README.md Sets additional allowed origins for DNS rebinding protection by specifying a comma-separated list of origins in the ALLOWED_ORIGINS environment variable. This is crucial for preventing DNS rebinding attacks. ```bash ALLOWED_ORIGINS=http://localhost:6274,http://127.0.0.1:6274,http://localhost:8000 npm start ``` -------------------------------- ### Run Inspector in CLI Mode Source: https://github.com/sint-ai/inspector/blob/main/README.md Enables programmatic interaction with MCP servers from the command line using the inspector's CLI mode. This is useful for scripting and automation. ```bash npx @modelcontextprotocol/inspector --cli node build/index.js ``` -------------------------------- ### Customize MCP Inspector Ports Source: https://github.com/sint-ai/inspector/blob/main/README.md Customize the default ports for the MCP Inspector client UI and the MCP Proxy server using environment variables. ```bash CLIENT_PORT=8080 SERVER_PORT=9000 npx @modelcontextprotocol/inspector node build/index.js ``` -------------------------------- ### Check Version Consistency Source: https://github.com/sint-ai/inspector/blob/main/scripts/README.md Verifies that all packages within the monorepo have consistent versions, that workspace dependencies are correctly updated, and that package-lock.json is in sync with package.json files. This check is automated in CI. ```bash npm run check-version ``` -------------------------------- ### CLI Mode to Call a Specific Tool Source: https://github.com/sint-ai/inspector/blob/main/README.md Executes a specific tool within the MCP Inspector's CLI mode, passing key-value arguments to the tool. ```bash npx @modelcontextprotocol/inspector --cli node build/index.js --method tools/call --tool-name mytool --tool-arg key=value --tool-arg another=value2 ``` -------------------------------- ### Disable Authentication Environment Variable Source: https://github.com/sint-ai/inspector/blob/main/README.md Sets the DANGEROUSLY_OMIT_AUTH environment variable to true to disable authentication for the MCP Inspector proxy server. ```bash DANGEROUSLY_OMIT_AUTH=true npm start ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.