keryx 0.20.2 → 0.20.4
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 +6 -1
- package/util/mcpServer.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keryx",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.4",
|
|
4
4
|
"module": "index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,10 +28,15 @@
|
|
|
28
28
|
"ai",
|
|
29
29
|
"ai-agents",
|
|
30
30
|
"mcp-server",
|
|
31
|
+
"mcp-framework",
|
|
31
32
|
"oauth2",
|
|
33
|
+
"oauth",
|
|
32
34
|
"tool-calling",
|
|
33
35
|
"llm",
|
|
36
|
+
"claude",
|
|
34
37
|
"fullstack",
|
|
38
|
+
"background-tasks",
|
|
39
|
+
"zod",
|
|
35
40
|
"transport-agnostic",
|
|
36
41
|
"actionhero"
|
|
37
42
|
],
|
package/util/mcpServer.ts
CHANGED
|
@@ -136,10 +136,13 @@ export function createMcpServer(): McpServer {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
function registerTools(mcpServer: McpServer) {
|
|
139
|
+
const registered = new Set<string>();
|
|
139
140
|
for (const action of api.actions.actions) {
|
|
140
141
|
if (action.mcp?.tool === false) continue;
|
|
141
142
|
|
|
142
143
|
const toolName = formatToolName(action.name);
|
|
144
|
+
if (registered.has(toolName)) continue;
|
|
145
|
+
registered.add(toolName);
|
|
143
146
|
const toolConfig: {
|
|
144
147
|
description?: string;
|
|
145
148
|
inputSchema?: any;
|