@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.
- package/.env.production +3 -0
- package/README.md +20 -0
- package/bin/start.js +7 -9
- package/dist/client/assets/index-D65VQjeC.js +1768 -0
- package/dist/client/assets/index-D65VQjeC.js.map +1 -0
- package/dist/client/assets/index-n_nZRL9H.css +1 -0
- package/dist/client/index.html +2 -2
- package/dist/client/microsoft_sponsor.jpeg +0 -0
- package/dist/server/index.js +67 -6
- package/dist/server/index.js.map +1 -1
- package/package.json +7 -1
- package/dist/client/assets/index-BlNP9RiD.css +0 -1
- package/dist/client/assets/index-QjBf0I70.js +0 -1736
- package/dist/client/assets/index-QjBf0I70.js.map +0 -1
package/.env.production
ADDED
package/README.md
CHANGED
|
@@ -14,6 +14,18 @@
|
|
|
14
14
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
15
15
|
[](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
|
|
496
|
-
const requestedPort = parseInt(process.env.PORT ?? "
|
|
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
|
-
//
|
|
517
|
-
logInfo("No specific port requested, using
|
|
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
|
-
|
|
523
|
-
`Default port ${requestedPort} is in use
|
|
522
|
+
logError(
|
|
523
|
+
`Default port ${requestedPort} is already in use. Please free the port`,
|
|
524
524
|
);
|
|
525
|
-
|
|
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
|
|