Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
LEETCODE_SITE | No | LeetCode API endpoint ('global' or 'cn') | global |
LEETCODE_SESSION | No | LeetCode session cookie for authenticated API access |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
problem-categories | A comprehensive list of all problem classification categories in LeetCode platform, including difficulty levels (Easy, Medium, Hard) and algorithmic domains. These categories help organize and filter coding problems for users based on their complexity and topic area. Returns an array of all available problem categories. |
problem-tags | A detailed collection of algorithmic and data structure tags used by LeetCode to categorize problems. These tags represent specific algorithms (like 'dynamic-programming', 'binary-search') or data structures (such as 'array', 'queue', 'tree') that are relevant to solving each problem. Returns an array of all available problem tags for filtering and searching problems. |
problem-langs | A complete list of all programming languages officially supported by LeetCode for code submission and problem solving. Returns an array of all available programming languages on the platform. |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
leetcode_daily_challenge | Retrieves today's LeetCode Daily Challenge problem with complete details, including problem description, constraints, and examples |
leetcode_problem | Retrieves comprehensive details about a specific LeetCode problem, including its description, examples, constraints, and related information |
leetcode_search_problems | Searches for LeetCode problems based on multiple filter criteria including categories, tags, difficulty levels, and keywords, with pagination support |
leetcode_user_profile | Retrieves comprehensive profile information about a LeetCode user, including user stats, solved problems, and profile details |
leetcode_recent_submissions | Retrieves a user's recent submissions on LeetCode Global, including both accepted and failed submissions with detailed metadata |
leetcode_recent_ac_submissions | Retrieves a user's recent accepted (AC) submissions on LeetCode Global, focusing only on successfully completed problems |
leetcode_user_status | Retrieves the current authenticated user's status on LeetCode, including login status, premium membership details, and user information (requires authentication) |
leetcode_problem_submission_detail | Retrieves detailed information about a specific LeetCode submission by its ID, including source code, runtime stats, and test results (requires authentication) |
leetcode_user_progress_questions | Retrieves the authenticated user's problem-solving status with filtering options, including detailed solution history for attempted or solved questions (requires authentication) |
leetcode_user_all_submissions | Retrieves a paginated list of the authenticated user's submissions for a specific problem or all problems on LeetCode Global, with detailed submission metadata (requires authentication) |
leetcode_user_contest_ranking | Retrieves a user's comprehensive contest ranking information on LeetCode, including overall ranking, participation history, and performance metrics across contests |
leetcode_solution_article_list | Retrieves a list of community solution articles for a specific LeetCode problem, including only metadata like topicId. To view the full content of a solution article, use the 'leetcode_solution_article' tool with the topicId returned by this tool. |
leetcode_solution_article | Retrieves the complete content and metadata of a specific solution article, including the full article text, author information, and related navigation links |