@dougbots/avenor-mcp 0.12.0 → 0.13.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/dist/index.js +14 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
|
|
|
4
4
|
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
|
|
5
5
|
import { Hono } from "hono";
|
|
6
6
|
import { z } from "zod";
|
|
7
|
-
import { THINKING_LEVELS, answerPermissionTool, eventsTool, followUpTool, resultTool, shutdownTool, spawnTool, statusTool, validateSpawnSelection, workflowCompleteTool, workflowControllerStatusTool, workflowEventsTool, workflowGateTool, workflowInspectTool, workflowStatusTool, workflowWaitTool } from "@dougbots/avenor-core";
|
|
7
|
+
import { THINKING_LEVELS, answerPermissionTool, eventsTool, followUpTool, killTool, resultTool, shutdownTool, spawnTool, statusTool, validateSpawnSelection, workflowCompleteTool, workflowControllerStatusTool, workflowEventsTool, workflowGateTool, workflowInspectTool, workflowStatusTool, workflowWaitTool } from "@dougbots/avenor-core";
|
|
8
8
|
//#region src/spawn-schema.ts
|
|
9
9
|
const spawnInputShape = {
|
|
10
10
|
agent: z.string().optional().describe("Optional agent name; omission uses the supplied model or runtime defaults"),
|
|
@@ -90,7 +90,7 @@ server.registerTool("avenor_spawn", {
|
|
|
90
90
|
});
|
|
91
91
|
});
|
|
92
92
|
server.registerTool("avenor_status", {
|
|
93
|
-
description: "Get lifecycle status of one or all runs. Use lifecycle view for compact polling.",
|
|
93
|
+
description: "Get lifecycle status of one or all runs. Use lifecycle view for compact polling. Without run_id, returns an object with runs (array of status objects) and count.",
|
|
94
94
|
inputSchema: {
|
|
95
95
|
run_id: z.string().optional().describe("Run ID or label to query"),
|
|
96
96
|
view: z.enum(["lifecycle", "full"]).optional().describe("Response detail (default full for compatibility)"),
|
|
@@ -169,6 +169,18 @@ server.registerTool("avenor_events", {
|
|
|
169
169
|
supervisorId: supervisor_id
|
|
170
170
|
});
|
|
171
171
|
});
|
|
172
|
+
server.registerTool("avenor_kill", {
|
|
173
|
+
description: "Terminate a run without shutting down the supervisor. Other runs and the supervisor itself keep running.",
|
|
174
|
+
inputSchema: {
|
|
175
|
+
run_id: z.string().min(1).describe("Run ID or label"),
|
|
176
|
+
supervisor_id: z.string().optional().describe("Supervisor ID for multi-supervisor mode")
|
|
177
|
+
}
|
|
178
|
+
}, async ({ run_id, supervisor_id }) => {
|
|
179
|
+
return killTool({
|
|
180
|
+
runId: run_id,
|
|
181
|
+
supervisorId: supervisor_id
|
|
182
|
+
});
|
|
183
|
+
});
|
|
172
184
|
server.registerTool("avenor_shutdown", {
|
|
173
185
|
description: "Shut down the supervisor",
|
|
174
186
|
inputSchema: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dougbots/avenor-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dev": "tsdown --watch"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@dougbots/avenor-core": "^0.
|
|
33
|
+
"@dougbots/avenor-core": "^0.13.0",
|
|
34
34
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
35
35
|
"hono": "^4.12.19",
|
|
36
36
|
"zod": "^4.4.3"
|