Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6570ded

Browse files
committed
fix: update pre-commit hook and format smithery.yaml for better readability
1 parent cf2542a commit 6570ded

File tree

3 files changed

+32
-21
lines changed

3 files changed

+32
-21
lines changed

‎.husky/pre-commit‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "0ドル")/_/husky.sh"
3+
14
npx lint-staged
25
npm run build

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
[![Stars](https://img.shields.io/github/stars/jinzcdev/leetcode-mcp-server)](https://github.com/jinzcdev/leetcode-mcp-server)
66
[![smithery badge](https://smithery.ai/badge/@jinzcdev/leetcode-mcp-server)](https://smithery.ai/server/@jinzcdev/leetcode-mcp-server)
77

8-
98
The LeetCode MCP Server is a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) server that provides seamless integration with LeetCode APIs, enabling advanced automation and intelligent interaction with LeetCode's programming problems, contests, solutions, and user data.
109

1110
## Features
@@ -32,6 +31,7 @@ npx -y @smithery/cli install @jinzcdev/leetcode-mcp-server --client claude
3231
```
3332

3433
### Manual Installation
34+
3535
```bash
3636
# Install from npm
3737
npm install @jinzcdev/leetcode-mcp-server -g

‎smithery.yaml‎

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,31 @@
11
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
22

33
startCommand:
4-
type: stdio
5-
configSchema:
6-
# JSON Schema defining the configuration options for the MCP.
7-
type: object
8-
properties:
9-
site:
10-
type: string
11-
default: global
12-
description: "LeetCode site to target: 'global' for leetcode.com, or 'cn' for
13-
leetcode.cn"
14-
session:
15-
type: string
16-
description: Optional session cookie to authenticate with LeetCode API
17-
commandFunction:
18-
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
19-
|-
20-
(config) => { const args = ['build/index.js', '--site', config.site]; if(config.session && config.session.trim() !== '') { args.push('--session', config.session); } return { command: 'node', args }; }
21-
exampleConfig:
22-
site: global
23-
session: dummy_session_cookie_value
4+
type: stdio
5+
configSchema:
6+
# JSON Schema defining the configuration options for the MCP.
7+
type: object
8+
properties:
9+
site:
10+
type: string
11+
default: global
12+
description: "LeetCode site to target: 'global' for leetcode.com, or 'cn' for leetcode.cn"
13+
session:
14+
type: string
15+
description: Optional session cookie to authenticate with LeetCode API
16+
commandFunction:
17+
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
18+
|-
19+
(config) => {
20+
const args = ['build/index.js', '--site', config.site];
21+
if (config.session && config.session.trim() !== '') {
22+
args.push('--session', config.session);
23+
}
24+
return {
25+
command: 'node',
26+
args
27+
};
28+
}
29+
exampleConfig:
30+
site: global
31+
session: leetcode_session_cookie_value

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /