|
| 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