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
- "LeetCode doesn't provide an official authentication API for third-party tools like this MCP server. Cookie extraction is the standard approach used by LeetCode CLI tools and integrations. Your credentials are stored securely and locally on your machine."
81
81
82
82
**If user is concerned about security:**
83
-
- "Your credentials are encrypted and stored locally in ~/.leetcode-mcp/credentials.json. They're never sent anywhere except directly to LeetCode's API to make requests on your behalf. This is the same method used by official LeetCode CLI tools."
83
+
- "Your credentials are stored locally in ~/.leetcode-mcp/credentials.json with restricted file permissions (owner-only access). They're never sent anywhere except directly to LeetCode's API to make requests on your behalf. This is the same method used by official LeetCode CLI tools."
84
84
85
85
**If user has trouble copying the entire value:**
86
86
- "Make sure you're clicking on the value field (not the name), and that you can see the full text is selected before copying. The value is typically quite long (50+ characters)."
@@ -163,7 +163,7 @@ Once you're logged in, I'll walk you through getting two cookie values we need f
163
163
- Credentials typically expire after 7-14 days
164
164
- LeetCode allows only one active session per account at a time
165
165
- The MCP server validates credentials by making a test API call to LeetCode's GraphQL endpoint
166
-
- Credentials are stored encrypted in ~/.leetcode-mcp/credentials.json`;
166
+
- Credentials are stored locally in ~/.leetcode-mcp/credentials.json with restricted file permissions`;
Copy file name to clipboardExpand all lines: src/mcp/tools/problem-tools.ts
+96-47Lines changed: 96 additions & 47 deletions
Original file line number
Diff line number
Diff line change
@@ -18,18 +18,35 @@ export class ProblemToolRegistry extends ToolRegistry {
18
18
"Retrieves today's LeetCode Daily Challenge problem with complete details, including problem description, constraints, and examples. After fetching, invoke the leetcode_learning_mode and leetcode_problem_workflow prompts before helping the user work on it."
0 commit comments