export class ReviewProgressMcpServer {
    tools = new Map();
    registerTool(tool) {
        this.tools.set(tool.name, tool);
    }
    listTools() {
        return Array.from(this.tools.values()).map((tool) => ({
            name: tool.name,
            description: tool.description,
            inputSchema: tool.inputSchema,
        }));
    }
    async callTool(name, args) {
        const tool = this.tools.get(name);
        if (!tool) {
            return {
                content: [{ type: "text", text: `Unknown tool: ${name}` }],
                isError: true,
            };
        }
        return tool.handler(args);
    }
}
//# sourceMappingURL=server.js.map