@modelcontextprotocol/inspector 0.5.1 → 0.7.0
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/README.md +4 -0
- package/bin/cli.js +8 -2
- package/client/dist/assets/{OAuthCallback-DmuQ-LZN.js → OAuthCallback-C5xCfXlk.js} +1 -1
- package/client/dist/assets/{index-mKSHihrk.js → index-D7o7JmLV.js} +1117 -780
- package/client/dist/assets/{index-BC_1zPdU.css → index-Dt6l7sEy.css} +9 -67
- package/client/dist/index.html +2 -2
- package/package.json +4 -3
- package/server/build/index.js +3 -1
package/README.md
CHANGED
|
@@ -38,6 +38,10 @@ CLIENT_PORT=8080 SERVER_PORT=9000 npx @modelcontextprotocol/inspector node build
|
|
|
38
38
|
|
|
39
39
|
For more details on ways to use the inspector, see the [Inspector section of the MCP docs site](https://modelcontextprotocol.io/docs/tools/inspector). For help with debugging, see the [Debugging guide](https://modelcontextprotocol.io/docs/tools/debugging).
|
|
40
40
|
|
|
41
|
+
### Authentication
|
|
42
|
+
|
|
43
|
+
The inspector supports bearer token authentication for SSE connections. Enter your token in the UI when connecting to an MCP server, and it will be sent in the Authorization header.
|
|
44
|
+
|
|
41
45
|
### From this repository
|
|
42
46
|
|
|
43
47
|
If you're working on the inspector itself:
|
package/bin/cli.js
CHANGED
|
@@ -27,9 +27,15 @@ async function main() {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
if (parsingFlags && arg === "-e" && i + 1 < args.length) {
|
|
30
|
-
const
|
|
31
|
-
|
|
30
|
+
const envVar = args[++i];
|
|
31
|
+
const equalsIndex = envVar.indexOf("=");
|
|
32
|
+
|
|
33
|
+
if (equalsIndex !== -1) {
|
|
34
|
+
const key = envVar.substring(0, equalsIndex);
|
|
35
|
+
const value = envVar.substring(equalsIndex + 1);
|
|
32
36
|
envVars[key] = value;
|
|
37
|
+
} else {
|
|
38
|
+
envVars[envVar] = "";
|
|
33
39
|
}
|
|
34
40
|
} else if (!command) {
|
|
35
41
|
command = arg;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactExports, j as jsxRuntimeExports, S as SESSION_KEYS, a as auth, b as authProvider } from "./index-
|
|
1
|
+
import { r as reactExports, j as jsxRuntimeExports, S as SESSION_KEYS, a as auth, b as authProvider } from "./index-D7o7JmLV.js";
|
|
2
2
|
const OAuthCallback = () => {
|
|
3
3
|
const hasProcessedRef = reactExports.useRef(false);
|
|
4
4
|
reactExports.useEffect(() => {
|