UNPKG

@iflow-mcp/leetcode-mcp-server

Version:

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

32 lines (31 loc) 1.37 kB
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { LeetCodeBaseService } from "../../leetcode/leetcode-base-service.js"; import { ToolRegistry } from "./tool-registry.js"; /** * User tool registry class that handles registration of LeetCode user-related tools. * This class manages tools for accessing user profiles, submissions, and progress data. */ export declare class UserToolRegistry extends ToolRegistry { protected registerCommon(): void; protected registerGlobal(): void; protected registerChina(): void; /** * Registers common tools that require authentication and are available on both Global and CN platforms. */ protected registerAuthenticatedCommon(): void; /** * Registers tools specific to the Global LeetCode site that require authentication. */ protected registerAuthenticatedGlobal(): void; /** * Registers tools specific to the China LeetCode site that require authentication. */ protected registerAuthenticatedChina(): void; } /** * Registers all user-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 registerUserTools(server: McpServer, leetcodeService: LeetCodeBaseService): void;