|
1 | 1 | # Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml |
2 | 2 |
|
3 | 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 |
| 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