@dougbots/avenor-mcp 0.8.2 → 0.9.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.
Files changed (2) hide show
  1. package/dist/index.js +27 -14
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -5,6 +5,29 @@ 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
+ thinking: z.enum([
18
+ "off",
19
+ "minimal",
20
+ "low",
21
+ "medium",
22
+ "high",
23
+ "xhigh",
24
+ "max"
25
+ ]).optional().describe("Thinking level; omission uses the backend default and unsupported backends reject explicit values"),
26
+ backend: z.string().optional().describe("Backend override"),
27
+ server_url: z.string().optional().describe("Backend server URL"),
28
+ supervisor_id: z.string().optional().describe("Supervisor ID for multi-supervisor mode")
29
+ };
30
+ //#endregion
8
31
  //#region src/mcp.ts
9
32
  const LOCALHOST_ORIGINS = new Set([
10
33
  "localhost",
@@ -46,20 +69,9 @@ const server = new McpServer({
46
69
  version: "0.1.0"
47
70
  });
48
71
  server.registerTool("avenor_spawn", {
49
- 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
- }
62
- }, async ({ repo_dir, agent, prompt, prompt_file, label, timeout, model, backend, server_url, supervisor_id }) => {
72
+ description: "Spawn a new agent run with an optional canonical thinking level; unsupported backends reject explicit values",
73
+ inputSchema: spawnInputShape
74
+ }, async ({ repo_dir, agent, prompt, prompt_file, label, timeout, model, thinking, backend, server_url, supervisor_id }) => {
63
75
  return spawnTool({
64
76
  agent,
65
77
  dir: repo_dir,
@@ -68,6 +80,7 @@ server.registerTool("avenor_spawn", {
68
80
  label,
69
81
  timeout,
70
82
  model,
83
+ thinking,
71
84
  backend,
72
85
  serverUrl: server_url,
73
86
  supervisorId: supervisor_id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dougbots/avenor-mcp",
3
- "version": "0.8.2",
3
+ "version": "0.9.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.8.2",
33
+ "@dougbots/avenor-core": "^0.9.0",
34
34
  "@modelcontextprotocol/sdk": "^1.29.0",
35
35
  "hono": "^4.12.19",
36
36
  "zod": "^4.4.3"