switch to fastmcp

This commit is contained in:
ssalbdivad
2025-10-15 17:24:29 -04:00
parent d03debab4b
commit 757d336475
5 changed files with 87 additions and 89 deletions
+11
View File
@@ -0,0 +1,11 @@
import type { StandardSchemaV1 } from "@standard-schema/spec";
import type { FastMCP, Tool } from "fastmcp";
export const tool = <const params>(tool: Tool<{}, StandardSchemaV1<params>>) => tool;
export const addTools = (server: FastMCP, tools: Tool<any, any>[]) => {
for (const tool of tools) {
server.addTool(tool);
}
return server;
};