You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/mcp/resources/problem-resources.ts
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -19,10 +19,10 @@ export class ProblemResourceRegistry extends ResourceRegistry {
19
19
// Problem Categories resource
20
20
this.server.resource(
21
21
"problem-categories",
22
-
"leetcode://problems/categories/all",
22
+
"categories://problems/all",
23
23
{
24
24
description:
25
-
"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.",
25
+
"A 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.",
26
26
mimeType: "application/json"
27
27
},
28
28
async(uri,extra)=>{
@@ -41,7 +41,7 @@ export class ProblemResourceRegistry extends ResourceRegistry {
41
41
// Problem Tags resource
42
42
this.server.resource(
43
43
"problem-tags",
44
-
"leetcode://problems/tags/all",
44
+
"tags://problems/all",
45
45
{
46
46
description:
47
47
"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.",
@@ -63,7 +63,7 @@ export class ProblemResourceRegistry extends ResourceRegistry {
63
63
// Problem Languages resource
64
64
this.server.resource(
65
65
"problem-langs",
66
-
"leetcode://problems/langs/all",
66
+
"langs://problems/all",
67
67
{
68
68
description:
69
69
"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.",
@@ -85,12 +85,12 @@ export class ProblemResourceRegistry extends ResourceRegistry {
"Provides comprehensive details about a specific LeetCode problem, including its description, examples, constraints, and metadata. The titleSlug parameter in the URI identifies the specific problem.",
93
+
"Provides details about a specific LeetCode problem, including its description, examples, constraints, and metadata. The titleSlug parameter in the URI identifies the specific problem.",
"Provides the complete content and metadata of a specific solution article on LeetCode Global, including the full article text, author information, and related navigation links. The topicId parameter in the URI identifies the specific solution article. This ID can be obtained from the 'topicId' field in the response of the 'leetcode_solution_article_list' tool.",
22
+
"Provides the complete content and metadata of a specific problem solution, including the full article text, author information, and related navigation links. The topicId parameter in the URI identifies the specific solution. This ID can be obtained from the 'topicId' field in the response of the 'list_problem_solutions' tool.",
23
23
mimeType: "application/json"
24
24
},
25
25
async(uri,variables,extra)=>{
@@ -47,7 +47,7 @@ export class SolutionResourceRegistry extends ResourceRegistry {
47
47
{
48
48
uri: uri.toString(),
49
49
text: JSON.stringify({
50
-
error: "Failed to fetch solution article",
50
+
error: "Failed to fetch solution",
51
51
message: error.message
52
52
}),
53
53
mimeType: "application/json"
@@ -60,15 +60,15 @@ export class SolutionResourceRegistry extends ResourceRegistry {
"Provides the complete content and metadata of a specific solution article, including the full article text, author information, and related navigation links. This slug can be obtained from the 'node.slug' field in the response of the 'leetcode_solution_article_list' tool.",
71
+
"Provides the complete content and metadata of a specific solution, including the full article text, author information, and related navigation links. This slug can be obtained from the 'node.slug' field in the response of the 'list_problem_solutions' tool.",
72
72
mimeType: "application/json"
73
73
},
74
74
async(uri,variables,extra)=>{
@@ -96,7 +96,7 @@ export class SolutionResourceRegistry extends ResourceRegistry {
Copy file name to clipboardExpand all lines: src/mcp/tools/contest-tools.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,8 @@ export class ContestToolRegistry extends ToolRegistry {
11
11
protectedregisterCommon(): void{
12
12
// User contest ranking tool
13
13
this.server.tool(
14
-
"leetcode_user_contest_ranking",
15
-
"Retrieves a user's comprehensive contest ranking information on LeetCode, including overall ranking, participation history, and performance metrics across contests",
14
+
"get_user_contest_ranking",
15
+
"Retrieves a user's contest ranking information on LeetCode, including overall ranking, participation history, and performance metrics across contests",
0 commit comments