@dougbots/avenor-mcp 0.8.2 → 0.8.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 +15 -12
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5,6 +5,20 @@ import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/
|
|
|
5
5
|
import { Hono } from "hono";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { answerPermissionTool, eventsTool, followUpTool, resultTool, shutdownTool, spawnTool, statusTool } from "@dougbots/avenor-core";
|
|
8
|
+
//#region src/spawn-schema.ts
|
|
9
|
+
const spawnInputShape = {
|
|
10
|
+
agent: z.string().optional().describe("Optional agent name; omission uses the supplied model or runtime defaults"),
|
|
11
|
+
repo_dir: z.string().describe("Working directory for the agent"),
|
|
12
|
+
prompt: z.string().optional().describe("Prompt text"),
|
|
13
|
+
prompt_file: z.string().optional().describe("Path to a prompt file"),
|
|
14
|
+
label: z.string().optional().describe("Human-readable label for this run"),
|
|
15
|
+
timeout: z.string().optional().describe("Timeout duration (e.g. 5m, 1h)"),
|
|
16
|
+
model: z.string().optional().describe("Model override"),
|
|
17
|
+
backend: z.string().optional().describe("Backend override"),
|
|
18
|
+
server_url: z.string().optional().describe("Backend server URL"),
|
|
19
|
+
supervisor_id: z.string().optional().describe("Supervisor ID for multi-supervisor mode")
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
8
22
|
//#region src/mcp.ts
|
|
9
23
|
const LOCALHOST_ORIGINS = new Set([
|
|
10
24
|
"localhost",
|
|
@@ -47,18 +61,7 @@ const server = new McpServer({
|
|
|
47
61
|
});
|
|
48
62
|
server.registerTool("avenor_spawn", {
|
|
49
63
|
description: "Spawn a new agent run",
|
|
50
|
-
inputSchema:
|
|
51
|
-
agent: z.string().describe("Agent name (codex, claude, gemini, butler)"),
|
|
52
|
-
repo_dir: z.string().describe("Working directory for the agent"),
|
|
53
|
-
prompt: z.string().optional().describe("Prompt text"),
|
|
54
|
-
prompt_file: z.string().optional().describe("Path to a prompt file"),
|
|
55
|
-
label: z.string().optional().describe("Human-readable label for this run"),
|
|
56
|
-
timeout: z.string().optional().describe("Timeout duration (e.g. 5m, 1h)"),
|
|
57
|
-
model: z.string().optional().describe("Model override"),
|
|
58
|
-
backend: z.string().optional().describe("Backend override"),
|
|
59
|
-
server_url: z.string().optional().describe("Backend server URL"),
|
|
60
|
-
supervisor_id: z.string().optional().describe("Supervisor ID for multi-supervisor mode")
|
|
61
|
-
}
|
|
64
|
+
inputSchema: spawnInputShape
|
|
62
65
|
}, async ({ repo_dir, agent, prompt, prompt_file, label, timeout, model, backend, server_url, supervisor_id }) => {
|
|
63
66
|
return spawnTool({
|
|
64
67
|
agent,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dougbots/avenor-mcp",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
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.8.
|
|
33
|
+
"@dougbots/avenor-core": "^0.8.3",
|
|
34
34
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
35
35
|
"hono": "^4.12.19",
|
|
36
36
|
"zod": "^4.4.3"
|