@2kw/ai-mcp-server 6.3.0-dev.13 → 6.3.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.
- package/dist/tools/agents.js +24 -0
- package/package.json +1 -1
package/dist/tools/agents.js
CHANGED
|
@@ -301,6 +301,30 @@ export function register(server, client) {
|
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
303
|
});
|
|
304
|
+
// ── list_agent_skills ───────────────────────────────────────────────────
|
|
305
|
+
server.tool("2kw_list_agent_skills", "List the skills an agent's latest published version binds, in authored order. This is the "
|
|
306
|
+
+ "read a chat-only USER key may perform; 2kw_get_latest_agent_version carries the full version "
|
|
307
|
+
+ "and needs VIEWER or above. An agent with no published version lists none.", { agentId: z.string().describe("The agent ID") }, async ({ agentId }) => {
|
|
308
|
+
try {
|
|
309
|
+
const { data } = await client.GET("/v1/agents/{agentId}/skills", {
|
|
310
|
+
params: { path: { agentId } },
|
|
311
|
+
});
|
|
312
|
+
const lines = (data ?? []).map((s) => {
|
|
313
|
+
const plugin = s.pluginName ? `, plugin: ${s.pluginName}` : "";
|
|
314
|
+
const description = s.description ? ` — ${s.description}` : "";
|
|
315
|
+
return `- ${s.name} (v${s.versionNumber}, ref: ${s.ref}${plugin})${description}`;
|
|
316
|
+
});
|
|
317
|
+
return {
|
|
318
|
+
content: [{ type: "text", text: `Agent skills:\n${lines.join("\n") || "(none)"}` }],
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
catch (error) {
|
|
322
|
+
return {
|
|
323
|
+
content: [{ type: "text", text: formatErrorForMcp(error) }],
|
|
324
|
+
isError: true,
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
});
|
|
304
328
|
// ── get_agent_version ───────────────────────────────────────────────────
|
|
305
329
|
server.tool("2kw_get_agent_version", "Retrieve a specific version of an agent.", {
|
|
306
330
|
agentId: z.string().describe("The agent ID"),
|
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.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. 158 tools for Claude Code, Cursor, and Windsurf.",
|
|
5
5
|
"mcpName": "ai.2kw/mcp-server",
|
|
6
6
|
"keywords": [
|