@introspection-ai/recipes 0.13.0 → 0.14.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 +45 -58
- package/dist/{agent-tool.d.ts → agents.d.ts} +4 -1
- package/dist/agents.d.ts.map +1 -0
- package/dist/{agent-tool.js → agents.js} +1 -1
- package/dist/agents.js.map +1 -0
- package/dist/api/extensions.d.ts +3 -0
- package/dist/api/extensions.d.ts.map +1 -0
- package/dist/api/extensions.js +2 -0
- package/dist/api/extensions.js.map +1 -0
- package/dist/api/mcp.d.ts +4 -0
- package/dist/api/mcp.d.ts.map +1 -0
- package/dist/api/mcp.js +2 -0
- package/dist/api/mcp.js.map +1 -0
- package/dist/api/session.d.ts +3 -0
- package/dist/api/session.d.ts.map +1 -0
- package/dist/api/session.js +2 -0
- package/dist/api/session.js.map +1 -0
- package/dist/child-agent.d.ts +5 -4
- package/dist/child-agent.d.ts.map +1 -1
- package/dist/child-agent.js +26 -117
- package/dist/child-agent.js.map +1 -1
- package/dist/child-session.d.ts +23 -0
- package/dist/child-session.d.ts.map +1 -0
- package/dist/child-session.js +48 -0
- package/dist/child-session.js.map +1 -0
- package/dist/extensions.d.ts +29 -0
- package/dist/extensions.d.ts.map +1 -0
- package/dist/extensions.js +119 -0
- package/dist/extensions.js.map +1 -0
- package/dist/index.d.ts +4 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -13
- package/dist/index.js.map +1 -1
- package/dist/inspect.d.ts +38 -5
- package/dist/inspect.d.ts.map +1 -1
- package/dist/inspect.js +92 -41
- package/dist/inspect.js.map +1 -1
- package/dist/interactions.d.ts +18 -2
- package/dist/interactions.d.ts.map +1 -1
- package/dist/interactions.js +41 -10
- package/dist/interactions.js.map +1 -1
- package/dist/mcp-catalog.d.ts +1 -0
- package/dist/mcp-catalog.d.ts.map +1 -1
- package/dist/mcp-catalog.js +14 -6
- package/dist/mcp-catalog.js.map +1 -1
- package/dist/mcp-chunks/auth-command-ZLGYIEUY.js +273 -0
- package/dist/mcp-chunks/call-arguments-LU3W6D3K.js +13 -0
- package/dist/mcp-chunks/call-command-LKTKSYTH.js +612 -0
- package/dist/mcp-chunks/chunk-2U4BSDC4.js +3951 -0
- package/dist/mcp-chunks/chunk-2XL7MG7R.js +272 -0
- package/dist/mcp-chunks/chunk-3BJA27PY.js +2321 -0
- package/dist/mcp-chunks/chunk-4SQKWYFF.js +15 -0
- package/dist/mcp-chunks/chunk-5QOSCSQB.js +290 -0
- package/dist/mcp-chunks/chunk-6W5QFASN.js +77 -0
- package/dist/mcp-chunks/chunk-6XCZGU3G.js +1004 -0
- package/dist/mcp-chunks/chunk-7FHEBT5G.js +149 -0
- package/dist/mcp-chunks/chunk-7KA2VJVZ.js +114 -0
- package/dist/mcp-chunks/chunk-7UDVSOOF.js +138 -0
- package/dist/mcp-chunks/chunk-BNV3TPE4.js +66 -0
- package/dist/mcp-chunks/chunk-BTLAWHTA.js +129 -0
- package/dist/mcp-chunks/chunk-BV56DXPW.js +13 -0
- package/dist/mcp-chunks/chunk-BWHIA4PC.js +90 -0
- package/dist/mcp-chunks/chunk-BZIQOWE6.js +267 -0
- package/dist/mcp-chunks/chunk-D3MRAZ6H.js +16140 -0
- package/dist/mcp-chunks/chunk-DHBE7UBH.js +750 -0
- package/dist/mcp-chunks/chunk-E22DYOW5.js +251 -0
- package/dist/mcp-chunks/chunk-ECIVB7P4.js +139 -0
- package/dist/mcp-chunks/chunk-HKRJ6O36.js +1076 -0
- package/dist/mcp-chunks/chunk-IABRYROW.js +44 -0
- package/dist/mcp-chunks/chunk-J6LYIZXN.js +45 -0
- package/dist/mcp-chunks/chunk-L7NTQVYN.js +161 -0
- package/dist/mcp-chunks/chunk-LEZSACDE.js +141 -0
- package/dist/mcp-chunks/chunk-LKIBAYKU.js +208 -0
- package/dist/mcp-chunks/chunk-LNH5LAJD.js +152 -0
- package/dist/mcp-chunks/chunk-LQQEYD76.js +124 -0
- package/dist/mcp-chunks/chunk-LRKZP7DJ.js +47 -0
- package/dist/mcp-chunks/chunk-LS7PMWSR.js +109 -0
- package/dist/mcp-chunks/chunk-M3TPODXI.js +95 -0
- package/dist/mcp-chunks/chunk-MZ2NARG7.js +400 -0
- package/dist/mcp-chunks/chunk-N46NEFAF.js +45 -0
- package/dist/mcp-chunks/chunk-NNOEGEUZ.js +17273 -0
- package/dist/mcp-chunks/chunk-NRAJX5E4.js +69 -0
- package/dist/mcp-chunks/chunk-P3PSC54P.js +869 -0
- package/dist/mcp-chunks/chunk-PIIYJR44.js +6341 -0
- package/dist/mcp-chunks/chunk-PWYFKGKG.js +385 -0
- package/dist/mcp-chunks/chunk-SJCCBNZ4.js +45 -0
- package/dist/mcp-chunks/chunk-TATVT5IT.js +194 -0
- package/dist/mcp-chunks/chunk-TEUKFFQL.js +29 -0
- package/dist/mcp-chunks/chunk-UKYNQGNE.js +150 -0
- package/dist/mcp-chunks/chunk-UNKB4SBV.js +37 -0
- package/dist/mcp-chunks/chunk-WD6BOD24.js +138 -0
- package/dist/mcp-chunks/chunk-WQJZMCJN.js +73 -0
- package/dist/mcp-chunks/chunk-XANPGTLI.js +364 -0
- package/dist/mcp-chunks/chunk-XQK2JSW4.js +35 -0
- package/dist/mcp-chunks/chunk-YHQUTU6L.js +571 -0
- package/dist/mcp-chunks/chunk-YVZKMV5H.js +57 -0
- package/dist/mcp-chunks/cli-UV4QJZZM.js +929 -0
- package/dist/mcp-chunks/client-S7RQUG5U.js +13 -0
- package/dist/mcp-chunks/config-command-NLAGKID5.js +1101 -0
- package/dist/mcp-chunks/daemon-command-U242Z6VY.js +26 -0
- package/dist/mcp-chunks/dist-LK3SHAMX.js +6478 -0
- package/dist/mcp-chunks/emit-ts-command-VBXVXO6V.js +386 -0
- package/dist/mcp-chunks/generate-cli-runner-6CAZZA3P.js +1426 -0
- package/dist/mcp-chunks/inspect-cli-command-3ZORTOR7.js +111 -0
- package/dist/mcp-chunks/launch-YKRXHXJI.js +10 -0
- package/dist/mcp-chunks/lifecycle-XVKRHPH3.js +16 -0
- package/dist/mcp-chunks/list-command-2MEGGNFQ.js +4190 -0
- package/dist/mcp-chunks/output-utils-NKESLAJ6.js +12 -0
- package/dist/mcp-chunks/prompt-B1Yc1NPt-VGOTWJMN.js +918 -0
- package/dist/mcp-chunks/record-command-YXHTTTT5.js +17 -0
- package/dist/mcp-chunks/replay-command-25HJ6AQU.js +85 -0
- package/dist/mcp-chunks/resource-command-OO4NYF5C.js +97 -0
- package/dist/mcp-chunks/result-utils-MOHHLNM7.js +15 -0
- package/dist/mcp-chunks/runtime-5WJ3G25Y.js +33 -0
- package/dist/mcp-chunks/runtime-wrapper-RPWDIDBF.js +10 -0
- package/dist/mcp-chunks/serve-command-DHXJZMMN.js +3302 -0
- package/dist/mcp-chunks/timeouts-W2XWCCXR.js +18 -0
- package/dist/mcp-chunks/vault-command-PIYIUEZL.js +154 -0
- package/dist/mcp-daemon-client.d.ts +6 -1
- package/dist/mcp-daemon-client.d.ts.map +1 -1
- package/dist/mcp-daemon-client.js +119 -2
- package/dist/mcp-daemon-client.js.map +1 -1
- package/dist/mcp-daemon-protocol.d.ts +18 -1
- package/dist/mcp-daemon-protocol.d.ts.map +1 -1
- package/dist/mcp-daemon-protocol.js +31 -0
- package/dist/mcp-daemon-protocol.js.map +1 -1
- package/dist/mcp-daemon.js +169 -76602
- package/dist/mcp-daemon.js.map +1 -1
- package/dist/mcp-policy.d.ts +11 -0
- package/dist/mcp-policy.d.ts.map +1 -0
- package/dist/mcp-policy.js +27 -0
- package/dist/mcp-policy.js.map +1 -0
- package/dist/mcp-run-worker.js +38 -76540
- package/dist/mcp-tools.d.ts +39 -0
- package/dist/mcp-tools.d.ts.map +1 -0
- package/dist/mcp-tools.js +493 -0
- package/dist/mcp-tools.js.map +1 -0
- package/dist/mcp.d.ts +21 -9
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +101 -31
- package/dist/mcp.js.map +1 -1
- package/dist/model-binding.d.ts +39 -0
- package/dist/model-binding.d.ts.map +1 -0
- package/dist/model-binding.js +103 -0
- package/dist/model-binding.js.map +1 -0
- package/dist/pi-extension.d.ts +2 -22
- package/dist/pi-extension.d.ts.map +1 -1
- package/dist/pi-extension.js +296 -71
- package/dist/pi-extension.js.map +1 -1
- package/dist/recipe/resolve.d.ts +43 -20
- package/dist/recipe/resolve.d.ts.map +1 -1
- package/dist/recipe/resolve.js +215 -70
- package/dist/recipe/resolve.js.map +1 -1
- package/dist/recipe-agent.d.ts +24 -27
- package/dist/recipe-agent.d.ts.map +1 -1
- package/dist/recipe-agent.js +278 -230
- package/dist/recipe-agent.js.map +1 -1
- package/dist/recipe-check.d.ts +17 -0
- package/dist/recipe-check.d.ts.map +1 -0
- package/dist/recipe-check.js +258 -0
- package/dist/recipe-check.js.map +1 -0
- package/dist/recipe-extensions.d.ts.map +1 -1
- package/dist/recipe-extensions.js +0 -3
- package/dist/recipe-extensions.js.map +1 -1
- package/dist/recipe-model.d.ts +3 -1
- package/dist/recipe-model.d.ts.map +1 -1
- package/dist/recipe-model.js +15 -12
- package/dist/recipe-model.js.map +1 -1
- package/dist/recipe-package.d.ts +6 -28
- package/dist/recipe-package.d.ts.map +1 -1
- package/dist/recipe-package.js +248 -191
- package/dist/recipe-package.js.map +1 -1
- package/dist/recipe-skills.d.ts.map +1 -1
- package/dist/recipe-skills.js +42 -29
- package/dist/recipe-skills.js.map +1 -1
- package/dist/run-controller.d.ts +10 -9
- package/dist/run-controller.d.ts.map +1 -1
- package/dist/run-controller.js +28 -21
- package/dist/run-controller.js.map +1 -1
- package/dist/session.d.ts +40 -53
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +312 -173
- package/dist/session.js.map +1 -1
- package/dist/test-utils.d.ts +7 -7
- package/dist/test-utils.d.ts.map +1 -1
- package/dist/test-utils.js +32 -15
- package/dist/test-utils.js.map +1 -1
- package/docs/agent-composition.md +41 -35
- package/docs/host-api.md +201 -0
- package/docs/index.md +8 -14
- package/docs/interactions.md +12 -11
- package/docs/mcp-auth.md +6 -6
- package/docs/mcp-configuration.md +72 -24
- package/docs/pi-extension.md +39 -11
- package/docs/recipe-flow.md +9 -9
- package/docs/recipe-format.md +90 -41
- package/package.json +23 -17
- package/vendor/mcp-client/darwin-arm64/mcp-client +0 -0
- package/vendor/mcp-client/darwin-x64/mcp-client +0 -0
- package/vendor/mcp-client/linux-arm64/mcp-client +0 -0
- package/vendor/recipe-check/darwin-arm64/recipe-check +0 -0
- package/vendor/recipe-check/darwin-x64/recipe-check +0 -0
- package/vendor/recipe-check/linux-arm64/recipe-check +0 -0
- package/vendor/recipe-check/linux-x64/recipe-check +0 -0
- package/vendor/recipe-check/linux-x64-musl/recipe-check +0 -0
- package/vendor/recipe-check/win32-x64/recipe-check.exe +0 -0
- package/dist/agent-tool.d.ts.map +0 -1
- package/dist/agent-tool.js.map +0 -1
- package/dist/run.d.ts +0 -28
- package/dist/run.d.ts.map +0 -1
- package/dist/run.js +0 -84
- package/dist/run.js.map +0 -1
- package/dist/testing.d.ts +0 -25
- package/dist/testing.d.ts.map +0 -1
- package/dist/testing.js +0 -96
- package/dist/testing.js.map +0 -1
- package/docs/deployment-configuration.md +0 -65
- package/docs/migration.md +0 -70
- package/docs/python-bindings-release.md +0 -47
- package/docs/recipe-evals.md +0 -70
- package/docs/recipe-judges.md +0 -152
- package/docs/runtime-library.md +0 -171
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
handleRecordCli,
|
|
4
|
+
parseRecordArgs,
|
|
5
|
+
parseReplayArgs,
|
|
6
|
+
printRecordHelp
|
|
7
|
+
} from "./chunk-7UDVSOOF.js";
|
|
8
|
+
import "./chunk-J6LYIZXN.js";
|
|
9
|
+
import "./chunk-7FHEBT5G.js";
|
|
10
|
+
import "./chunk-ECIVB7P4.js";
|
|
11
|
+
import "./chunk-LRKZP7DJ.js";
|
|
12
|
+
export {
|
|
13
|
+
handleRecordCli,
|
|
14
|
+
parseRecordArgs,
|
|
15
|
+
parseReplayArgs,
|
|
16
|
+
printRecordHelp
|
|
17
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
parseReplayArgs
|
|
4
|
+
} from "./chunk-7UDVSOOF.js";
|
|
5
|
+
import {
|
|
6
|
+
buildReplayCommandEnv
|
|
7
|
+
} from "./chunk-J6LYIZXN.js";
|
|
8
|
+
import {
|
|
9
|
+
PRIVATE_RECORDING_FILE_MODE,
|
|
10
|
+
ensurePrivateRecordingDir,
|
|
11
|
+
resolveRecordingConfigPath,
|
|
12
|
+
resolveRecordingPath
|
|
13
|
+
} from "./chunk-7FHEBT5G.js";
|
|
14
|
+
import "./chunk-ECIVB7P4.js";
|
|
15
|
+
import "./chunk-LRKZP7DJ.js";
|
|
16
|
+
|
|
17
|
+
// node_modules/.pnpm/mcporter@0.12.3/node_modules/mcporter/dist/cli/replay-command.js
|
|
18
|
+
import { spawn } from "node:child_process";
|
|
19
|
+
import fs from "node:fs/promises";
|
|
20
|
+
async function handleReplayCli(args) {
|
|
21
|
+
const parsed = parseReplayArgs(args);
|
|
22
|
+
const replayPath = resolveRecordingPath(parsed.sessionName);
|
|
23
|
+
if (parsed.command.length > 0) {
|
|
24
|
+
await runWithReplayEnv(parsed.command, buildReplayCommandEnv(parsed.sessionName, parsed.server));
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const configPath = resolveRecordingConfigPath(parsed.sessionName);
|
|
28
|
+
await ensurePrivateRecordingDir(configPath);
|
|
29
|
+
await fs.writeFile(configPath, `${JSON.stringify({
|
|
30
|
+
session: parsed.sessionName,
|
|
31
|
+
server: parsed.server,
|
|
32
|
+
mode: "replay",
|
|
33
|
+
replayPath,
|
|
34
|
+
env: {
|
|
35
|
+
MCPORTER_REPLAY: parsed.sessionName,
|
|
36
|
+
...parsed.server ? { MCPORTER_REPLAY_SERVER: parsed.server } : {},
|
|
37
|
+
MCPORTER_DISABLE_KEEPALIVE: "*"
|
|
38
|
+
}
|
|
39
|
+
}, null, 2)}
|
|
40
|
+
`, {
|
|
41
|
+
encoding: "utf8",
|
|
42
|
+
mode: PRIVATE_RECORDING_FILE_MODE
|
|
43
|
+
});
|
|
44
|
+
await fs.chmod(configPath, PRIVATE_RECORDING_FILE_MODE);
|
|
45
|
+
console.log(`Replay configuration written to ${configPath}`);
|
|
46
|
+
const envInstructions = [
|
|
47
|
+
`MCPORTER_REPLAY=${parsed.sessionName}`,
|
|
48
|
+
...parsed.server ? [`MCPORTER_REPLAY_SERVER=${parsed.server}`] : [],
|
|
49
|
+
"MCPORTER_DISABLE_KEEPALIVE=*"
|
|
50
|
+
];
|
|
51
|
+
console.log(`Set ${envInstructions.join(" and ")} before the next mcporter call to replay ${replayPath}.`);
|
|
52
|
+
}
|
|
53
|
+
function printReplayHelp() {
|
|
54
|
+
console.log(`Usage: mcporter replay <session-name> [--server <name>] [-- <command-to-run>]
|
|
55
|
+
|
|
56
|
+
Replay MCP JSON-RPC traffic from ~/.mcporter/recordings/<session-name>.ndjson.
|
|
57
|
+
|
|
58
|
+
Flags:
|
|
59
|
+
--server <name> Restrict replay to one configured server.`);
|
|
60
|
+
}
|
|
61
|
+
async function runWithReplayEnv(commandAndArgs, env) {
|
|
62
|
+
const [command, ...args] = commandAndArgs;
|
|
63
|
+
if (!command) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
await new Promise((resolve, reject) => {
|
|
67
|
+
const child = spawn(command, args, {
|
|
68
|
+
stdio: "inherit",
|
|
69
|
+
env
|
|
70
|
+
});
|
|
71
|
+
child.once("error", reject);
|
|
72
|
+
child.once("exit", (code, signal) => {
|
|
73
|
+
if (signal) {
|
|
74
|
+
reject(new Error(`Command '${command}' exited from signal ${signal}.`));
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
process.exitCode = code ?? 0;
|
|
78
|
+
resolve();
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
handleReplayCli,
|
|
84
|
+
printReplayHelp
|
|
85
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
printCallOutput
|
|
4
|
+
} from "./chunk-LNH5LAJD.js";
|
|
5
|
+
import "./chunk-UNKB4SBV.js";
|
|
6
|
+
import {
|
|
7
|
+
buildConnectionIssueEnvelope,
|
|
8
|
+
formatErrorMessage
|
|
9
|
+
} from "./chunk-SJCCBNZ4.js";
|
|
10
|
+
import {
|
|
11
|
+
consumeOutputFormat
|
|
12
|
+
} from "./chunk-YVZKMV5H.js";
|
|
13
|
+
import {
|
|
14
|
+
wrapCallResult
|
|
15
|
+
} from "./chunk-5QOSCSQB.js";
|
|
16
|
+
import "./chunk-6W5QFASN.js";
|
|
17
|
+
import {
|
|
18
|
+
analyzeConnectionError
|
|
19
|
+
} from "./chunk-UKYNQGNE.js";
|
|
20
|
+
import "./chunk-P3PSC54P.js";
|
|
21
|
+
import "./chunk-D3MRAZ6H.js";
|
|
22
|
+
import "./chunk-LRKZP7DJ.js";
|
|
23
|
+
|
|
24
|
+
// node_modules/.pnpm/mcporter@0.12.3/node_modules/mcporter/dist/cli/resource-command.js
|
|
25
|
+
async function handleResource(runtime, args) {
|
|
26
|
+
const output = consumeOutputFormat(args, {
|
|
27
|
+
defaultFormat: "auto",
|
|
28
|
+
allowed: ["auto", "text", "markdown", "json", "raw"],
|
|
29
|
+
enableRawShortcut: true,
|
|
30
|
+
jsonShortcutFlag: "--json"
|
|
31
|
+
});
|
|
32
|
+
const disableOAuth = consumeDisableOAuthFlag(args);
|
|
33
|
+
const server = args.shift();
|
|
34
|
+
if (!server) {
|
|
35
|
+
throw new Error("Missing server name. Usage: mcporter resource <server> [uri]");
|
|
36
|
+
}
|
|
37
|
+
const uri = args.shift();
|
|
38
|
+
if (args.length > 0) {
|
|
39
|
+
throw new Error(`Unexpected resource arguments: ${args.join(" ")}`);
|
|
40
|
+
}
|
|
41
|
+
let result;
|
|
42
|
+
try {
|
|
43
|
+
if (disableOAuth === void 0) {
|
|
44
|
+
result = uri ? await runtime.readResource(server, uri) : await runtime.listResources(server);
|
|
45
|
+
} else {
|
|
46
|
+
const connectOptions = { disableOAuth };
|
|
47
|
+
result = uri ? await runtime.readResource(server, uri, connectOptions) : await runtime.listResources(server, connectOptions);
|
|
48
|
+
}
|
|
49
|
+
} catch (error) {
|
|
50
|
+
const issue = analyzeConnectionError(error);
|
|
51
|
+
if (output === "json" || output === "raw") {
|
|
52
|
+
console.log(JSON.stringify(buildConnectionIssueEnvelope({ server, error, issue }), null, 2));
|
|
53
|
+
} else {
|
|
54
|
+
console.error(`[mcporter] ${formatErrorMessage(error)}`);
|
|
55
|
+
}
|
|
56
|
+
process.exitCode = 1;
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const { callResult } = wrapCallResult(result);
|
|
60
|
+
printCallOutput(callResult, result, output);
|
|
61
|
+
}
|
|
62
|
+
function consumeDisableOAuthFlag(args) {
|
|
63
|
+
let disableOAuth;
|
|
64
|
+
for (let index = 0; index < args.length; ) {
|
|
65
|
+
const token = args[index];
|
|
66
|
+
if (token === "--no-oauth") {
|
|
67
|
+
disableOAuth = true;
|
|
68
|
+
args.splice(index, 1);
|
|
69
|
+
continue;
|
|
70
|
+
}
|
|
71
|
+
index += 1;
|
|
72
|
+
}
|
|
73
|
+
return disableOAuth;
|
|
74
|
+
}
|
|
75
|
+
function printResourceHelp() {
|
|
76
|
+
console.error([
|
|
77
|
+
"Usage: mcporter resource <server> [uri] [flags]",
|
|
78
|
+
"",
|
|
79
|
+
"Without a URI, lists resources exposed by the server.",
|
|
80
|
+
"With a URI, reads that MCP resource and prints text/markdown/json content when possible.",
|
|
81
|
+
"",
|
|
82
|
+
"Flags:",
|
|
83
|
+
" --output auto|text|markdown|json|raw Choose output rendering.",
|
|
84
|
+
" --json Shortcut for --output json.",
|
|
85
|
+
" --raw Shortcut for --output raw.",
|
|
86
|
+
" --no-oauth Never start OAuth; use cached tokens only.",
|
|
87
|
+
"",
|
|
88
|
+
"Examples:",
|
|
89
|
+
" mcporter resource docs",
|
|
90
|
+
" mcporter resource docs file:///repo/README.md",
|
|
91
|
+
" mcporter resource docs greeting://Peter --output text"
|
|
92
|
+
].join("\n"));
|
|
93
|
+
}
|
|
94
|
+
export {
|
|
95
|
+
handleResource,
|
|
96
|
+
printResourceHelp
|
|
97
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
createCallResult,
|
|
4
|
+
describeConnectionIssue,
|
|
5
|
+
wrapCallResult
|
|
6
|
+
} from "./chunk-5QOSCSQB.js";
|
|
7
|
+
import "./chunk-UKYNQGNE.js";
|
|
8
|
+
import "./chunk-P3PSC54P.js";
|
|
9
|
+
import "./chunk-D3MRAZ6H.js";
|
|
10
|
+
import "./chunk-LRKZP7DJ.js";
|
|
11
|
+
export {
|
|
12
|
+
createCallResult,
|
|
13
|
+
describeConnectionIssue,
|
|
14
|
+
wrapCallResult
|
|
15
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
callOnce,
|
|
4
|
+
createRuntime
|
|
5
|
+
} from "./chunk-NNOEGEUZ.js";
|
|
6
|
+
import "./chunk-7FHEBT5G.js";
|
|
7
|
+
import "./chunk-BZIQOWE6.js";
|
|
8
|
+
import "./chunk-YHQUTU6L.js";
|
|
9
|
+
import "./chunk-TATVT5IT.js";
|
|
10
|
+
import "./chunk-HKRJ6O36.js";
|
|
11
|
+
import {
|
|
12
|
+
MCPORTER_VERSION
|
|
13
|
+
} from "./chunk-4SQKWYFF.js";
|
|
14
|
+
import "./chunk-6W5QFASN.js";
|
|
15
|
+
import "./chunk-2U4BSDC4.js";
|
|
16
|
+
import "./chunk-UKYNQGNE.js";
|
|
17
|
+
import "./chunk-P3PSC54P.js";
|
|
18
|
+
import {
|
|
19
|
+
readJsonFile,
|
|
20
|
+
writeJsonFile
|
|
21
|
+
} from "./chunk-2XL7MG7R.js";
|
|
22
|
+
import "./chunk-WQJZMCJN.js";
|
|
23
|
+
import "./chunk-ECIVB7P4.js";
|
|
24
|
+
import "./chunk-LS7PMWSR.js";
|
|
25
|
+
import "./chunk-D3MRAZ6H.js";
|
|
26
|
+
import "./chunk-LRKZP7DJ.js";
|
|
27
|
+
export {
|
|
28
|
+
MCPORTER_VERSION,
|
|
29
|
+
callOnce,
|
|
30
|
+
createRuntime,
|
|
31
|
+
readJsonFile,
|
|
32
|
+
writeJsonFile
|
|
33
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
createKeepAliveRuntime
|
|
4
|
+
} from "./chunk-L7NTQVYN.js";
|
|
5
|
+
import "./chunk-LS7PMWSR.js";
|
|
6
|
+
import "./chunk-D3MRAZ6H.js";
|
|
7
|
+
import "./chunk-LRKZP7DJ.js";
|
|
8
|
+
export {
|
|
9
|
+
createKeepAliveRuntime
|
|
10
|
+
};
|