@heretyc/subagent-mcp 2.12.19 → 2.12.20
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 +1 -1
- package/dist/doctor.js +3 -3
- package/dist/index.js +2 -2
- package/dist/setup.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ of raw file context. The main invariants are:
|
|
|
27
27
|
|
|
28
28
|
### What You Need First
|
|
29
29
|
|
|
30
|
-
- Node.js
|
|
30
|
+
- Node.js 20 or newer (`node --version`)
|
|
31
31
|
- `claude` CLI, installed and signed in (`claude --version`)
|
|
32
32
|
- `codex` CLI, installed and signed in (`codex --version`; optional if you only
|
|
33
33
|
use Claude)
|
package/dist/doctor.js
CHANGED
|
@@ -11,9 +11,9 @@ import { verifyWiring } from "./setup.js";
|
|
|
11
11
|
export async function runDoctor() {
|
|
12
12
|
console.log("subagent-mcp doctor (checks wiring, including Claude statusLine; repairs missing MCP registrations via vendor CLIs)\n");
|
|
13
13
|
const major = Number(process.versions.node.split(".")[0]);
|
|
14
|
-
console.log(` ${major >=
|
|
15
|
-
(major >=
|
|
16
|
-
let failed = major <
|
|
14
|
+
console.log(` ${major >= 20 ? "PASS" : "FAIL"} node version — ${process.versions.node}` +
|
|
15
|
+
(major >= 20 ? "" : " (Node >= 20 required)"));
|
|
16
|
+
let failed = major < 20 ? 1 : 0;
|
|
17
17
|
for (const r of verifyWiring(undefined, true)) {
|
|
18
18
|
console.log(` ${r.ok ? "PASS" : "FAIL"} ${r.label} — ${r.detail}`);
|
|
19
19
|
if (!r.ok)
|
package/dist/index.js
CHANGED
|
@@ -572,7 +572,7 @@ const ORCHESTRATION_INSTRUCTIONS = "subagent-mcp - CANONICAL OPERATING MODEL (fu
|
|
|
572
572
|
const SUBAGENT_INSTRUCTIONS = "SUB-AGENT SESSION: you are a child process launched by subagent-mcp. Follow the parent prompt. Do not treat yourself as the orchestrator, do not re-trigger orchestration carryover, and do not launch further sub-agents unless the parent prompt explicitly assigns that. launch_agent is code-capped at 2 spawn levels below the main orchestrator: depth 1 may launch depth 2 workers; depth 2 workers cannot spawn further.\n\nMODEL SELECTION MODE (parallel to orchestration-mode, set via the model-selection-mode tool). DEFAULT is \"smart\" and is used whenever unset: in smart, launch_agent REJECTS any call supplying provider/model/effort selectors and the server auto-picks the best model. \"user-approved-overrides\" opens a 30-MINUTE window where selectors are HONORED, enforced LAZILY (the mode reverts to smart on the next launch_agent call after 30 minutes) and re-enabling does NOT extend an active window. HONOR-BASED: you MUST NOT set \"user-approved-overrides\" without explicit interactive USER authorization via the structured-question tool (AskUserQuestion on Claude / request-user-input on Codex); never enable it on your own initiative.";
|
|
573
573
|
const server = new McpServer({
|
|
574
574
|
name: "subagent-mcp",
|
|
575
|
-
version: "2.12.
|
|
575
|
+
version: "2.12.20",
|
|
576
576
|
description: "Launches always-interactive local Claude and Codex sub-agent sessions and is the orchestrator's sole launch channel. Claude runs via the Claude Agent SDK over the local Claude Code executable; Codex via `codex app-server` over stdio. The server never calls Anthropic or OpenAI HTTP APIs directly.",
|
|
577
577
|
}, {
|
|
578
578
|
instructions: process.env.SUBAGENT_MCP_SUBAGENT === "1"
|
|
@@ -1696,7 +1696,7 @@ server.tool("orchestration-mode", "Toggle or query per-project ORCHESTRATION MOD
|
|
|
1696
1696
|
],
|
|
1697
1697
|
};
|
|
1698
1698
|
}));
|
|
1699
|
-
// Tool
|
|
1699
|
+
// Tool 9: model-selection-mode
|
|
1700
1700
|
server.tool("model-selection-mode", "Set or query per-project MODEL SELECTION MODE, which gates launch_agent's `provider`/`model`/`effort` selectors. `mode`: \"smart\" or \"user-approved-overrides\"; omit to query. \"smart\" is the DEFAULT (used whenever unset): launch_agent REJECTS any call supplying provider/model/effort and the server auto-picks the best model for the task_category. \"user-approved-overrides\" opens a 30-MINUTE window where selectors are HONORED, enforced LAZILY (reverts to smart on the next launch_agent call after the 30 min elapse); re-enabling does NOT extend an active window. HONOR-BASED, parallel to orchestration-mode: you MUST NOT set \"user-approved-overrides\" without explicit interactive USER authorization via the structured-question tool (AskUserQuestion on Claude / request-user-input on Codex; a plain yes/no if neither exists). This tool CANNOT verify that authorization — never enable on your own initiative. PERSISTENCE: state keyed by cwd; both the mode and the override-window timestamp survive server restarts (remaining window is restored, not reset).", {
|
|
1701
1701
|
mode: z.enum(["smart", "user-approved-overrides"]).optional(),
|
|
1702
1702
|
}, withMaintenance(async (params) => {
|
package/dist/setup.js
CHANGED
|
@@ -770,8 +770,8 @@ export async function runSetup() {
|
|
|
770
770
|
console.log(`subagent-mcp setup${DRY_RUN ? " (dry-run)" : ""}`);
|
|
771
771
|
console.log(`Install root: ${INSTALL_ROOT}\n`);
|
|
772
772
|
const major = Number(process.versions.node.split(".")[0]);
|
|
773
|
-
if (major <
|
|
774
|
-
console.error(`ERROR: Node ${process.versions.node} is too old
|
|
773
|
+
if (major < 20) {
|
|
774
|
+
console.error(`ERROR: Node ${process.versions.node} is too old. Node >= 20 required.`);
|
|
775
775
|
process.exit(1);
|
|
776
776
|
}
|
|
777
777
|
const missing = verifyInstall();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heretyc/subagent-mcp",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.20",
|
|
4
4
|
"description": "MCP server that launches and manages always-interactive Claude Code and Codex sub-agent sessions (no direct Anthropic/OpenAI API).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"typescript": "^7.0.2"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
|
-
"node": ">=
|
|
64
|
+
"node": ">=20"
|
|
65
65
|
},
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"registry": "https://registry.npmjs.org",
|