@modelcontextprotocol/inspector 2.10.1 → 2.12.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 +2 -0
- package/clients/cli/build/index.js +9763 -8488
- package/clients/launcher/build/index.js +4 -1
- package/clients/mcpdo/build/{chunk-2E5EZYNU.js → chunk-LBQDT5VV.js} +1070 -161
- package/clients/mcpdo/build/mcp-bin.js +20 -21
- package/clients/mcpdo/build/mcpdod.js +1 -1
- package/clients/tui/build/index.js +1137 -207
- package/clients/web/build/index.js +871 -117
- package/clients/web/dist/assets/index-qtX15-Bz.js +1587 -0
- package/clients/web/dist/assets/{markdown-CZCm46w1.js → markdown-BlYcOtJg.js} +1 -1
- package/clients/web/dist/assets/{prism-light-B0A727v7.js → prism-light-DfUe_Xlh.js} +2 -2
- package/clients/web/dist/index.html +1 -1
- package/package.json +15 -10
- package/scripts/install-clients.mjs +68 -28
- package/clients/web/dist/assets/index-DgDEc2gL.js +0 -1589
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
CliExitCodeError,
|
|
6
6
|
DAEMON_DIR_ENV,
|
|
7
7
|
DAEMON_TOKEN_ENV,
|
|
8
|
+
DEFAULT_CONNECT_TIMEOUT_MS,
|
|
8
9
|
DEFAULT_MAX_FETCH_REQUESTS,
|
|
9
10
|
DEFAULT_TASK_TTL_MS,
|
|
10
11
|
EXIT_CODES,
|
|
@@ -61,9 +62,10 @@ import {
|
|
|
61
62
|
setSecretStorageWarningsQuiet,
|
|
62
63
|
styleFromOpts,
|
|
63
64
|
warnAboutSecretStorage,
|
|
65
|
+
withConnectTimeout,
|
|
64
66
|
withDefaultCatalogPath,
|
|
65
67
|
writePendingAuthMarker
|
|
66
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-LBQDT5VV.js";
|
|
67
69
|
|
|
68
70
|
// src/mcp-bin.ts
|
|
69
71
|
import { realpathSync } from "fs";
|
|
@@ -684,25 +686,6 @@ function isSensitiveHeader(key) {
|
|
|
684
686
|
return k.includes("auth") || k.includes("cookie") || k.includes("secret") || k.includes("token") || k.includes("password") || k.includes("api-key") || k.includes("apikey");
|
|
685
687
|
}
|
|
686
688
|
|
|
687
|
-
// ../../core/cli/handlers/connect-timeout.ts
|
|
688
|
-
var DEFAULT_CONNECT_TIMEOUT_MS = 15e3;
|
|
689
|
-
function withConnectTimeout(settings, connectionTimeout) {
|
|
690
|
-
if (connectionTimeout === void 0) return settings;
|
|
691
|
-
if (settings) return { ...settings, connectionTimeout };
|
|
692
|
-
return {
|
|
693
|
-
headers: [],
|
|
694
|
-
metadata: {},
|
|
695
|
-
env: [],
|
|
696
|
-
connectionTimeout,
|
|
697
|
-
requestTimeout: 0,
|
|
698
|
-
taskTtl: DEFAULT_TASK_TTL_MS,
|
|
699
|
-
maxFetchRequests: DEFAULT_MAX_FETCH_REQUESTS,
|
|
700
|
-
autoRefreshOnListChanged: false,
|
|
701
|
-
paginatedLists: false,
|
|
702
|
-
roots: []
|
|
703
|
-
};
|
|
704
|
-
}
|
|
705
|
-
|
|
706
689
|
// ../../core/cli/handlers/method-types.ts
|
|
707
690
|
var CONNECTION_RPC_METHODS = [
|
|
708
691
|
"tools/list",
|
|
@@ -3676,7 +3659,10 @@ function registerRpcCommands(program) {
|
|
|
3676
3659
|
"Tool-specific metadata",
|
|
3677
3660
|
parseKeyValue,
|
|
3678
3661
|
{}
|
|
3679
|
-
).option(
|
|
3662
|
+
).option(
|
|
3663
|
+
"--task",
|
|
3664
|
+
"Request a task-augmented tool call (legacy servers; on modern the server decides)"
|
|
3665
|
+
).option("--app-info", "Probe MCP App metadata only");
|
|
3680
3666
|
cmd.action(
|
|
3681
3667
|
async (toolNamePos, toolArgsPos, o) => {
|
|
3682
3668
|
const { toolName, toolArg } = resolveToolCallArgs({
|
|
@@ -3708,6 +3694,19 @@ function registerRpcCommands(program) {
|
|
|
3708
3694
|
});
|
|
3709
3695
|
});
|
|
3710
3696
|
break;
|
|
3697
|
+
case "resources/directory/read":
|
|
3698
|
+
cmd.argument("[uri]", "Directory resource URI").option("--uri <uri>", "Directory resource URI").option(
|
|
3699
|
+
"--cursor <cursor>",
|
|
3700
|
+
"Opaque pagination cursor (pass back the nextCursor from the previous page)"
|
|
3701
|
+
);
|
|
3702
|
+
cmd.action(async (uriPos, o) => {
|
|
3703
|
+
await runRpc(program, method, {
|
|
3704
|
+
uri: o.uri ?? uriPos,
|
|
3705
|
+
cursor: o.cursor,
|
|
3706
|
+
metadata: o.metadata
|
|
3707
|
+
});
|
|
3708
|
+
});
|
|
3709
|
+
break;
|
|
3711
3710
|
case "skills/list":
|
|
3712
3711
|
cmd.option(
|
|
3713
3712
|
"--verify",
|