@mcpjam/cli 3.3.2 → 3.3.3
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 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Command, CommanderError } from 'commander';
|
|
3
3
|
import { realpathSync, readFileSync, existsSync, closeSync, mkdirSync, writeFileSync, renameSync, statSync, openSync } from 'fs';
|
|
4
4
|
import { pathToFileURL, fileURLToPath } from 'url';
|
|
5
|
-
import { probeMcpServer, runServerDoctor, collectServerSnapshot, serializeStableServerSnapshot, serializeServerSnapshot, buildServerDiffReport, validateToolCallResult, isCallToolResultError, buildToolCallValidationReport, listResources, readResource, listPrompts, getPrompt, MCPAppsConformanceTest, MCPAppsConformanceSuite, runOAuthLogin, OAuthConformanceTest, OAuthConformanceSuite, MCPConformanceTest, MCPConformanceSuite,
|
|
5
|
+
import { probeMcpServer, redactSensitiveValue, runServerDoctor, collectServerSnapshot, serializeStableServerSnapshot, serializeServerSnapshot, buildServerDiffReport, validateToolCallResult, isCallToolResultError, buildToolCallValidationReport, listResources, readResource, listPrompts, getPrompt, MCPAppsConformanceTest, MCPAppsConformanceSuite, runOAuthLogin, OAuthConformanceTest, OAuthConformanceSuite, MCPConformanceTest, MCPConformanceSuite, withEphemeralClient, diffServerSnapshots, ServerSnapshotFormatError, renderStructuredRunJUnitXml, renderStructuredRunJson, toConformanceReport, renderConformanceReportJUnitXml, renderConformanceReportJson, formatOAuthConformanceHuman, formatOAuthConformanceSuiteHuman, fetchOAuthMetadata, executeOAuthProxy, executeDebugOAuthProxy, MCP_APPS_CHECK_CATEGORIES, MCP_APPS_CHECK_IDS, OAuthProxyError, 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, { join, dirname } from 'path';
|
|
8
8
|
import { randomUUID } from 'crypto';
|
|
@@ -12,7 +12,7 @@ import os, { homedir } from 'os';
|
|
|
12
12
|
|
|
13
13
|
// package.json
|
|
14
14
|
var package_default = {
|
|
15
|
-
version: "3.3.
|
|
15
|
+
version: "3.3.3"};
|
|
16
16
|
|
|
17
17
|
// src/lib/output.ts
|
|
18
18
|
var DEFAULT_OUTPUT_FORMAT = "json";
|
|
@@ -2572,7 +2572,10 @@ function registerServerCommands(program) {
|
|
|
2572
2572
|
if (!result) {
|
|
2573
2573
|
throw operationalError("Probe did not return a result.");
|
|
2574
2574
|
}
|
|
2575
|
-
writeResult(
|
|
2575
|
+
writeResult(
|
|
2576
|
+
redactSensitiveValue(result),
|
|
2577
|
+
globalOptions.format
|
|
2578
|
+
);
|
|
2576
2579
|
if (result.status === "error") {
|
|
2577
2580
|
setProcessExitCode(1);
|
|
2578
2581
|
}
|
|
@@ -2598,11 +2601,12 @@ function registerServerCommands(program) {
|
|
|
2598
2601
|
rpcLogger: collector?.rpcLogger,
|
|
2599
2602
|
retryPolicy
|
|
2600
2603
|
});
|
|
2601
|
-
const
|
|
2604
|
+
const rawPayload = globalOptions.rpc ? attachCliRpcLogs(result, collector) : result;
|
|
2605
|
+
const jsonPayload = redactSensitiveValue(rawPayload);
|
|
2602
2606
|
const artifactPath = options.out ? await writeDebugArtifact(options.out, jsonPayload) : void 0;
|
|
2603
2607
|
if (globalOptions.format === "human") {
|
|
2604
2608
|
process.stdout.write(
|
|
2605
|
-
`${formatServerDoctorHuman(
|
|
2609
|
+
`${formatServerDoctorHuman(jsonPayload, { artifactPath })}
|
|
2606
2610
|
`
|
|
2607
2611
|
);
|
|
2608
2612
|
} else {
|