@mcpjam/inspector 0.9.23 → 0.9.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ VITE_CONVEX_URL=https://outstanding-fennec-304.convex.cloud
2
+ VITE_WORKOS_CLIENT_ID=client_01K4C1TVPBE7JTBFQJF9SDW9P9
3
+ VITE_WORKOS_REDIRECT_URI=mcpjam://oauth/callback
package/README.md CHANGED
@@ -14,6 +14,18 @@
14
14
  [![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=for-the-badge)](https://opensource.org/licenses/Apache-2.0)
15
15
  [![Discord](https://img.shields.io/badge/Discord-Join%20Server-5865F2.svg?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/JEnDtz8X6z)
16
16
 
17
+
18
+ <p align="center">
19
+ <a href="https://handbook.opencoreventures.com/catalyst-sponsorship-program/" target="_blank" rel="noopener noreferrer">
20
+ <img src="./client/public/catalyst.png" alt="Catalyst Project" width="150" hspace="20">
21
+ </a>
22
+ <a href="https://resources.github.com/github-secure-open-source-fund/" target="_blank" rel="noopener noreferrer">
23
+ <img src="./client/public/microsoft_sponsor.jpeg" alt="Microsoft" width="190" height=70 hspace="20">
24
+ </a>
25
+ </p>
26
+
27
+ <br/>
28
+ <br/>
17
29
  </div>
18
30
 
19
31
  A developer tool for testing, debugging Model Context Protocol (MCP) servers. Test whether or not you built your MCP server correctly. The project is open source and fully compliant to the MCP spec.
@@ -80,6 +92,14 @@ The application will be available at `http://localhost:3001`.
80
92
 
81
93
  ## Connecting to MCP servers
82
94
 
95
+ ### mcp.json
96
+
97
+ You can import your `mcp.json` MCP server configs from Claude Desktop and Cursor with the command:
98
+
99
+ ```
100
+ npx @mcpjam/inspector@latest --config mcp.json
101
+ ```
102
+
83
103
  ### STDIO
84
104
 
85
105
  Note: Always use global file paths
package/bin/start.js CHANGED
@@ -492,8 +492,8 @@ async function main() {
492
492
  // Apply parsed environment variables to process.env first
493
493
  Object.assign(process.env, envVars);
494
494
 
495
- // Port discovery and configuration
496
- const requestedPort = parseInt(process.env.PORT ?? "6274", 10);
495
+ // Port configuration (fixed default to 3000)
496
+ const requestedPort = parseInt(process.env.PORT ?? "3000", 10);
497
497
  let PORT;
498
498
 
499
499
  try {
@@ -513,18 +513,16 @@ async function main() {
513
513
  throw new Error(`Port ${requestedPort} is already in use`);
514
514
  }
515
515
  } else {
516
- // Dynamic port discovery
517
- logInfo("No specific port requested, using dynamic port discovery");
516
+ // Fixed port policy: use default port 3000 and fail fast if unavailable
517
+ logInfo("No specific port requested, using fixed default port 3000");
518
518
  if (await isPortAvailable(requestedPort)) {
519
519
  PORT = requestedPort.toString();
520
520
  logSuccess(`Default port ${requestedPort} is available`);
521
521
  } else {
522
- logWarning(
523
- `Default port ${requestedPort} is in use, searching for next available port...`,
522
+ logError(
523
+ `Default port ${requestedPort} is already in use. Please free the port`,
524
524
  );
525
- const availablePort = await findAvailablePort(requestedPort + 1);
526
- PORT = availablePort.toString();
527
- logSuccess(`Found available port: ${availablePort}`);
525
+ throw new Error(`Port ${requestedPort} is already in use`);
528
526
  }
529
527
  }
530
528