@mcpjam/cli 3.15.0 → 3.15.2
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/dist/index.js +9 -11
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Command, CommanderError } from 'commander';
|
|
3
3
|
import { realpathSync, mkdirSync, writeFileSync, readFileSync, existsSync, statSync, closeSync, renameSync, openSync } from 'fs';
|
|
4
4
|
import { pathToFileURL } from 'url';
|
|
5
|
-
import { probeMcpServer, redactSensitiveValue, runServerDoctor, collectServerSnapshot, serializeStableServerSnapshot, serializeServerSnapshot, buildServerDiffReport, validateToolCallResult, isCallToolResultError, buildToolCallValidationReport, listResources, readResource, listTools, listPrompts, getPrompt, MCPAppsConformanceTest, MCPAppsConformanceSuite, runOAuthLogin, OAuthConformanceTest, OAuthConformanceSuite, runXaaFlow, MCPConformanceTest, MCPConformanceSuite, withEphemeralClient, diffServerSnapshots, ServerSnapshotFormatError, renderStructuredRunJUnitXml, renderStructuredRunJson, toConformanceReport, renderConformanceReportJUnitXml, renderConformanceReportJson, formatOAuthConformanceHuman, formatOAuthConformanceSuiteHuman, fetchOAuthMetadata, executeOAuthProxy, executeDebugOAuthProxy, normalizeRegistrationStrategy, normalizeIdentityAssertionFormat, IDENTITY_ASSERTION_FORMATS, XAA_CONFIDENTIAL_CIMD_ORIGIN,
|
|
5
|
+
import { probeMcpServer, redactSensitiveValue, runServerDoctor, collectServerSnapshot, serializeStableServerSnapshot, serializeServerSnapshot, buildServerDiffReport, validateToolCallResult, isCallToolResultError, buildToolCallValidationReport, listResources, readResource, listTools, listPrompts, getPrompt, MCPAppsConformanceTest, MCPAppsConformanceSuite, runOAuthLogin, OAuthConformanceTest, OAuthConformanceSuite, runXaaFlow, MCPConformanceTest, MCPConformanceSuite, withEphemeralClient, diffServerSnapshots, ServerSnapshotFormatError, renderStructuredRunJUnitXml, renderStructuredRunJson, toConformanceReport, renderConformanceReportJUnitXml, renderConformanceReportJson, formatOAuthConformanceHuman, formatOAuthConformanceSuiteHuman, fetchOAuthMetadata, executeOAuthProxy, executeDebugOAuthProxy, normalizeRegistrationStrategy, normalizeXaaClientAuth, normalizeIdentityAssertionFormat, IDENTITY_ASSERTION_FORMATS, XAA_CONFIDENTIAL_CIMD_ORIGIN, getLocalConfidentialCimdProvider, generateRandomString, generateCodeChallenge, createInteractiveAuthorizationSession, openUrlInBrowser, MCPClientManager, MCP_APPS_CHECK_CATEGORIES, MCP_APPS_CHECK_IDS, OAuthProxyError, isLoopbackHost, MCP_CHECK_CATEGORIES, MCP_CHECK_IDS } from '@mcpjam/sdk';
|
|
6
6
|
import { mkdir, writeFile, readFile, chmod, rename, rm } from 'fs/promises';
|
|
7
7
|
import path2, { dirname, join, basename } from 'path';
|
|
8
8
|
import { randomUUID } from 'crypto';
|
|
@@ -13,7 +13,8 @@ import { cancelEvalRunOperation, listEvalRunIterationsOperation, getEvalIteratio
|
|
|
13
13
|
import { buildHostProfilesFromCatalog, buildMarketHostProfiles, scanWidgetUsage, evaluateMarketHosts, fetchHostCompatCatalog } from '@mcpjam/sdk/host-compat';
|
|
14
14
|
import { HOST_TEMPLATES as HOST_TEMPLATES$1, HOST_TEMPLATE_IDS, seedHostTemplate } from '@mcpjam/sdk/host-config/templates';
|
|
15
15
|
import { applyVisibilityPolicyAndCountSignals, isAppOnlyTool, extractHostExecutionPolicy, hostConnectionProfile } from '@mcpjam/sdk/host-config/internal';
|
|
16
|
-
import { StdioServerTransport
|
|
16
|
+
import { StdioServerTransport } from '@modelcontextprotocol/server/stdio';
|
|
17
|
+
import { McpServer } from '@modelcontextprotocol/server';
|
|
17
18
|
import { z } from 'zod';
|
|
18
19
|
import { PostHog } from 'posthog-node';
|
|
19
20
|
import http from 'http';
|
|
@@ -23,7 +24,7 @@ import { WebSocket } from 'ws';
|
|
|
23
24
|
|
|
24
25
|
// package.json
|
|
25
26
|
var package_default = {
|
|
26
|
-
version: "3.15.
|
|
27
|
+
version: "3.15.2"};
|
|
27
28
|
|
|
28
29
|
// src/lib/output.ts
|
|
29
30
|
var DEFAULT_OUTPUT_FORMAT = "json";
|
|
@@ -6803,11 +6804,7 @@ function resolveConfidentialCimd(config, quiet) {
|
|
|
6803
6804
|
"--cimd-metadata-origin is an http loopback URL, but --https-only is set. Use an HTTPS origin, or drop --https-only for local dev."
|
|
6804
6805
|
);
|
|
6805
6806
|
}
|
|
6806
|
-
|
|
6807
|
-
config.clientIdMetadataUrl = buildConfidentialCimdUrl(
|
|
6808
|
-
getXaaClientJwks().keys[0],
|
|
6809
|
-
origin
|
|
6810
|
-
);
|
|
6807
|
+
config.clientIdMetadataUrl = getLocalConfidentialCimdProvider().getClientIdMetadataUrl(origin);
|
|
6811
6808
|
if (loopback) {
|
|
6812
6809
|
config.allowLoopbackClientMetadata = true;
|
|
6813
6810
|
if (!quiet) {
|
|
@@ -6819,9 +6816,10 @@ function resolveConfidentialCimd(config, quiet) {
|
|
|
6819
6816
|
}
|
|
6820
6817
|
}
|
|
6821
6818
|
function parseClientAuth(value) {
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6819
|
+
const normalized = normalizeXaaClientAuth(
|
|
6820
|
+
value === "private-key-jwt" ? "private_key_jwt" : value
|
|
6821
|
+
);
|
|
6822
|
+
if (normalized) return normalized;
|
|
6825
6823
|
throw usageError("--client-auth must be none or private-key-jwt.");
|
|
6826
6824
|
}
|
|
6827
6825
|
function parseTokenEndpointAuthMethod(value) {
|