Skip to content

Commit 9d387ff

Browse files
Add Smithery configuration
1 parent 03d49a7 commit 9d387ff

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

smithery.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
2+
3+
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

0 commit comments

Comments
 (0)