UNPKG

@iflow-mcp/leetcode-mcp-server

Version:

MCP Server for LeetCode API (supports leetcode.com and leetcode.cn)

19 lines (18 loc) 880 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { LeetCodeBaseService } from "../../leetcode/leetcode-base-service.js"; import { ToolRegistry } from "./tool-registry.js"; /** * Solution tool registry class that handles registration of LeetCode solution-related tools. * This class manages tools for accessing solutions, filtering solutions, and reading solution details. */ export declare class SolutionToolRegistry extends ToolRegistry { protected registerGlobal(): void; protected registerChina(): void; } /** * Registers all solution-related tools with the MCP server. * * @param server - The MCP server instance to register tools with * @param leetcodeService - The LeetCode service implementation to use for API calls */ export declare function registerSolutionTools(server: McpServer, leetcodeService: LeetCodeBaseService): void;