@2kw/ai-mcp-server 7.4.0-dev.12 → 7.4.0-dev.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.
@@ -17,9 +17,10 @@ export const CONVERSATION_MODES = ["plan", "ask", "auto"];
17
17
  * that sets it, so a model that switched on its own would lift the user's choice for every later turn.
18
18
  */
19
19
  export const MODE_RULE = "Set `mode` only when the user explicitly asks for that mode. Never set it to retry a refused approval " +
20
- "or to leave plan mode on your own: ask the user first. plan = read-only; ask = no automatic approver, " +
21
- "calls that need approval wait for a person; auto = the operator's policy as written. Leave it out to " +
22
- "keep the conversation's mode.";
20
+ "or to leave plan mode on your own: ask the user first. plan = read-only; ask = calls that need approval " +
21
+ "wait for a person; auto = the automatic approver decides reads and writes the server marks safe, a person " +
22
+ "decides the rest. Leave it out to keep the conversation's mode, else the agent's default. A mode the agent " +
23
+ "does not offer is refused with `conversation_mode_not_offered`.";
23
24
  function isConversationMode(value) {
24
25
  return typeof value === "string" && CONVERSATION_MODES.includes(value);
25
26
  }
@@ -379,7 +379,7 @@ export function register(server, client) {
379
379
  mode: z
380
380
  .enum(["plan", "ask", "auto"])
381
381
  .optional()
382
- .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."),
382
+ .describe("Answer as a conversation in this mode would be gated: plan refuses every call that is not read-only, ask puts a person on every call that needs approval, auto lets the automatic approver decide reads and writes the server marks safe. A mode that contributed is listed in matchedRules as conversation_mode.<mode>. Omit for the agent's default mode; a mode the agent does not offer is refused with `conversation_mode_not_offered`."),
383
383
  }, async ({ agentId, versionId, tool, installationId, mode }) => {
384
384
  try {
385
385
  const { data } = await client.GET("/v1/agents/{agentId}/versions/{versionId}/policy", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2kw/ai-mcp-server",
3
- "version": "7.4.0-dev.12",
3
+ "version": "7.4.0-dev.14",
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. 199 tools for Claude Code, Cursor, and Windsurf.",
5
5
  "mcpName": "ai.2kw/mcp-server",
6
6
  "keywords": [