@2kw/ai-mcp-server 6.3.0-dev.45 → 6.3.0-dev.70
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/tools/agents.js
CHANGED
|
@@ -359,12 +359,16 @@ export function register(server, client) {
|
|
|
359
359
|
.string()
|
|
360
360
|
.optional()
|
|
361
361
|
.describe("Resolve this installation's module tool catalog, the way a run of that installation would. Omit to answer for the agent's own tools only."),
|
|
362
|
-
|
|
362
|
+
mode: z
|
|
363
|
+
.enum(["plan", "ask", "auto"])
|
|
364
|
+
.optional()
|
|
365
|
+
.describe("Answer as a conversation in this mode would be gated: plan refuses every call that is not read-only, ask puts a person where the policy would ask the judge, auto is the policy as written. A mode that contributed is listed in matchedRules as conversation_mode.<mode>. Omit for no mode."),
|
|
366
|
+
}, async ({ agentId, versionId, tool, installationId, mode }) => {
|
|
363
367
|
try {
|
|
364
368
|
const { data } = await client.GET("/v1/agents/{agentId}/versions/{versionId}/policy", {
|
|
365
369
|
params: {
|
|
366
370
|
path: { agentId, versionId },
|
|
367
|
-
query: { tool, installation: installationId },
|
|
371
|
+
query: { tool, installation: installationId, mode },
|
|
368
372
|
},
|
|
369
373
|
});
|
|
370
374
|
return {
|
|
@@ -157,7 +157,7 @@ export function register(server, client) {
|
|
|
157
157
|
server.tool("2kw_add_variant", "Add a variant to an experiment with a task type and configuration.", {
|
|
158
158
|
experimentId: z.string().describe("The experiment ID"),
|
|
159
159
|
name: z.string().min(1).describe("Variant name"),
|
|
160
|
-
taskType: z.string().min(1).describe("Task type
|
|
160
|
+
taskType: z.string().min(1).describe("Task type: extraction or agent"),
|
|
161
161
|
configuration: z.unknown().describe("Variant configuration (JSON object)"),
|
|
162
162
|
description: z.string().optional().describe("Variant description"),
|
|
163
163
|
sortOrder: z.number().optional().describe("Sort order for display"),
|
|
@@ -214,7 +214,7 @@ export function register(server, client) {
|
|
|
214
214
|
experimentId: z.string().describe("The experiment ID"),
|
|
215
215
|
variantId: z.string().describe("The variant ID"),
|
|
216
216
|
name: z.string().optional().describe("New variant name"),
|
|
217
|
-
taskType: z.string().optional().describe("
|
|
217
|
+
taskType: z.string().optional().describe("Task type; must equal the variant's current one (it cannot change)"),
|
|
218
218
|
configuration: z.unknown().optional().describe("New variant configuration (JSON object)"),
|
|
219
219
|
description: z.string().optional().describe("New variant description"),
|
|
220
220
|
sortOrder: z.number().optional().describe("New sort order for display"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2kw/ai-mcp-server",
|
|
3
|
-
"version": "6.3.0-dev.
|
|
3
|
+
"version": "6.3.0-dev.70",
|
|
4
4
|
"description": "MCP server for 2kw.ai — EU-hosted AI platform: OpenAI-compatible LLM gateway, schema-driven document extraction, transcription, agents with a knowledge base, and cost observability. 158 tools for Claude Code, Cursor, and Windsurf.",
|
|
5
5
|
"mcpName": "ai.2kw/mcp-server",
|
|
6
6
|
"keywords": [
|