@mcpjam/cli 3.15.0 → 3.15.1
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 +7 -10
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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';
|
|
@@ -23,7 +23,7 @@ import { WebSocket } from 'ws';
|
|
|
23
23
|
|
|
24
24
|
// package.json
|
|
25
25
|
var package_default = {
|
|
26
|
-
version: "3.15.
|
|
26
|
+
version: "3.15.1"};
|
|
27
27
|
|
|
28
28
|
// src/lib/output.ts
|
|
29
29
|
var DEFAULT_OUTPUT_FORMAT = "json";
|
|
@@ -6803,11 +6803,7 @@ function resolveConfidentialCimd(config, quiet) {
|
|
|
6803
6803
|
"--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
6804
|
);
|
|
6805
6805
|
}
|
|
6806
|
-
|
|
6807
|
-
config.clientIdMetadataUrl = buildConfidentialCimdUrl(
|
|
6808
|
-
getXaaClientJwks().keys[0],
|
|
6809
|
-
origin
|
|
6810
|
-
);
|
|
6806
|
+
config.clientIdMetadataUrl = getLocalConfidentialCimdProvider().getClientIdMetadataUrl(origin);
|
|
6811
6807
|
if (loopback) {
|
|
6812
6808
|
config.allowLoopbackClientMetadata = true;
|
|
6813
6809
|
if (!quiet) {
|
|
@@ -6819,9 +6815,10 @@ function resolveConfidentialCimd(config, quiet) {
|
|
|
6819
6815
|
}
|
|
6820
6816
|
}
|
|
6821
6817
|
function parseClientAuth(value) {
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6818
|
+
const normalized = normalizeXaaClientAuth(
|
|
6819
|
+
value === "private-key-jwt" ? "private_key_jwt" : value
|
|
6820
|
+
);
|
|
6821
|
+
if (normalized) return normalized;
|
|
6825
6822
|
throw usageError("--client-auth must be none or private-key-jwt.");
|
|
6826
6823
|
}
|
|
6827
6824
|
function parseTokenEndpointAuthMethod(value) {
|