@modelcontextprotocol/inspector 2.10.0 → 2.11.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 +7 -5
- package/clients/cli/build/index.js +3087 -2771
- package/clients/launcher/build/index.js +4 -1
- package/clients/mcpdo/build/{chunk-2E5EZYNU.js → chunk-O6RN6WMD.js} +362 -78
- package/clients/mcpdo/build/mcp-bin.js +7 -21
- package/clients/mcpdo/build/mcpdod.js +1 -1
- package/clients/tui/build/index.js +421 -119
- package/clients/web/build/index.js +148 -43
- package/clients/web/dist/assets/index-B79AqubU.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-J_CKjs7N.js} +2 -2
- package/clients/web/dist/index.html +1 -1
- package/package.json +15 -9
- 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-O6RN6WMD.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({
|