keryx 0.20.2 → 0.20.3

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": "keryx",
3
- "version": "0.20.2",
3
+ "version": "0.20.3",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "license": "MIT",
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;