agent-orchestrator-mcp-server 0.7.13 → 0.7.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-orchestrator-mcp-server",
3
- "version": "0.7.13",
3
+ "version": "0.7.14",
4
4
  "description": "Local implementation of agent-orchestrator MCP server",
5
5
  "main": "build/index.js",
6
6
  "type": "module",
@@ -14,6 +14,7 @@ export declare const StartSessionSchema: z.ZodObject<{
14
14
  plugins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15
15
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16
16
  custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
17
+ auto_compact_window: z.ZodOptional<z.ZodNumber>;
17
18
  }, "strip", z.ZodTypeAny, {
18
19
  agent_type?: string | undefined;
19
20
  skills?: string[] | undefined;
@@ -27,6 +28,7 @@ export declare const StartSessionSchema: z.ZodObject<{
27
28
  agent_root?: string | undefined;
28
29
  config?: Record<string, unknown> | undefined;
29
30
  custom_metadata?: Record<string, unknown> | undefined;
31
+ auto_compact_window?: number | undefined;
30
32
  }, {
31
33
  agent_type?: string | undefined;
32
34
  skills?: string[] | undefined;
@@ -40,6 +42,7 @@ export declare const StartSessionSchema: z.ZodObject<{
40
42
  agent_root?: string | undefined;
41
43
  config?: Record<string, unknown> | undefined;
42
44
  custom_metadata?: Record<string, unknown> | undefined;
45
+ auto_compact_window?: number | undefined;
43
46
  }>;
44
47
  export declare function startSessionTool(_server: Server, clientFactory: () => IAgentOrchestratorClient): {
45
48
  name: string;
@@ -105,6 +108,10 @@ export declare function startSessionTool(_server: Server, clientFactory: () => I
105
108
  type: string;
106
109
  description: "User-defined metadata as a JSON object. Useful for tracking tickets, projects, etc.";
107
110
  };
111
+ auto_compact_window: {
112
+ type: string;
113
+ description: string;
114
+ };
108
115
  };
109
116
  required: never[];
110
117
  };
@@ -18,6 +18,11 @@ const PARAM_DESCRIPTIONS = {
18
18
  plugins: 'List of plugin names to enable for this session. Plugins extend agent capabilities with additional integrations. Example: ["my-plugin"]',
19
19
  config: 'Additional configuration as a JSON object.',
20
20
  custom_metadata: 'User-defined metadata as a JSON object. Useful for tracking tickets, projects, etc.',
21
+ auto_compact_window: 'Optional per-session auto-compact (context) window override, in tokens. ' +
22
+ '**You should generally rely on the default of 200,000** — omit this parameter and the API default applies. ' +
23
+ 'Only override in the rare situation where the spawned session is suffering from compaction thrashing because it ' +
24
+ "doesn't have enough space to work — in that case, retry with `1000000` (1 million tokens). " +
25
+ 'Compaction thrashing is currently the only known reason to set this preemptively.',
21
26
  };
22
27
  export const StartSessionSchema = z.object({
23
28
  agent_type: z.string().optional().describe(PARAM_DESCRIPTIONS.agent_type),
@@ -35,6 +40,7 @@ export const StartSessionSchema = z.object({
35
40
  plugins: z.array(z.string()).optional().describe(PARAM_DESCRIPTIONS.plugins),
36
41
  config: z.record(z.unknown()).optional().describe(PARAM_DESCRIPTIONS.config),
37
42
  custom_metadata: z.record(z.unknown()).optional().describe(PARAM_DESCRIPTIONS.custom_metadata),
43
+ auto_compact_window: z.number().int().optional().describe(PARAM_DESCRIPTIONS.auto_compact_window),
38
44
  });
39
45
  const TOOL_DESCRIPTION = `Start a new agent session in the Agent Orchestrator.
40
46
 
@@ -117,6 +123,10 @@ export function startSessionTool(_server, clientFactory) {
117
123
  type: 'object',
118
124
  description: PARAM_DESCRIPTIONS.custom_metadata,
119
125
  },
126
+ auto_compact_window: {
127
+ type: 'integer',
128
+ description: PARAM_DESCRIPTIONS.auto_compact_window,
129
+ },
120
130
  },
121
131
  required: [],
122
132
  },
package/shared/types.d.ts CHANGED
@@ -150,6 +150,7 @@ export interface CreateSessionRequest {
150
150
  agent_root?: string;
151
151
  config?: Record<string, unknown>;
152
152
  custom_metadata?: Record<string, unknown>;
153
+ auto_compact_window?: number;
153
154
  }
154
155
  export interface UpdateSessionRequest {
155
156
  title?: string;