|
1 | | -# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml |
| 1 | +runtime: "python" |
2 | 2 |
|
3 | 3 | startCommand: |
4 | 4 | type: stdio |
5 | | - |
6 | | -configSchema: |
7 | | - type: object |
8 | | - required: [] |
9 | | - properties: |
10 | | - MTG_MCP_ENABLE_17LANDS: |
11 | | - type: boolean |
12 | | - description: "Enable 17Lands draft analytics backend for card ratings and archetype stats" |
13 | | - default: true |
14 | | - MTG_MCP_ENABLE_EDHREC: |
15 | | - type: boolean |
16 | | - description: "Enable EDHREC commander metagame backend (uses undocumented endpoints)" |
17 | | - default: true |
18 | | - MTG_MCP_ENABLE_MTGJSON: |
19 | | - type: boolean |
20 | | - description: "Enable MTGJSON bulk card data for rate-limit-free lookups (~100MB download on first use)" |
21 | | - default: true |
22 | | - MTG_MCP_LOG_LEVEL: |
23 | | - type: string |
24 | | - description: "Server logging level" |
25 | | - default: "INFO" |
26 | | - enum: ["DEBUG", "INFO", "WARNING", "ERROR"] |
27 | | - MTG_MCP_SCRYFALL_RATE_LIMIT_MS: |
28 | | - type: number |
29 | | - description: "Minimum delay between Scryfall API calls in milliseconds" |
30 | | - default: 100 |
31 | | - MTG_MCP_MTGJSON_REFRESH_HOURS: |
32 | | - type: number |
33 | | - description: "Hours between MTGJSON bulk data refreshes" |
34 | | - default: 24 |
35 | | - |
36 | | -commandFunction: |- |
37 | | - (config) => ({ |
38 | | - command: 'uvx', |
39 | | - args: ['mtg-mcp-server'], |
40 | | - env: { |
41 | | - MTG_MCP_ENABLE_17LANDS: config.MTG_MCP_ENABLE_17LANDS !== undefined ? String(config.MTG_MCP_ENABLE_17LANDS) : undefined, |
42 | | - MTG_MCP_ENABLE_EDHREC: config.MTG_MCP_ENABLE_EDHREC !== undefined ? String(config.MTG_MCP_ENABLE_EDHREC) : undefined, |
43 | | - MTG_MCP_ENABLE_MTGJSON: config.MTG_MCP_ENABLE_MTGJSON !== undefined ? String(config.MTG_MCP_ENABLE_MTGJSON) : undefined, |
44 | | - MTG_MCP_LOG_LEVEL: config.MTG_MCP_LOG_LEVEL || undefined, |
45 | | - MTG_MCP_SCRYFALL_RATE_LIMIT_MS: config.MTG_MCP_SCRYFALL_RATE_LIMIT_MS !== undefined ? String(config.MTG_MCP_SCRYFALL_RATE_LIMIT_MS) : undefined, |
46 | | - MTG_MCP_MTGJSON_REFRESH_HOURS: config.MTG_MCP_MTGJSON_REFRESH_HOURS !== undefined ? String(config.MTG_MCP_MTGJSON_REFRESH_HOURS) : undefined |
47 | | - } |
48 | | - }) |
| 5 | + configSchema: |
| 6 | + type: object |
| 7 | + properties: |
| 8 | + MTG_MCP_ENABLE_17LANDS: |
| 9 | + type: boolean |
| 10 | + title: "Enable 17Lands" |
| 11 | + description: "Enable 17Lands draft analytics backend for card ratings and archetype stats" |
| 12 | + default: true |
| 13 | + MTG_MCP_ENABLE_EDHREC: |
| 14 | + type: boolean |
| 15 | + title: "Enable EDHREC" |
| 16 | + description: "Enable EDHREC commander metagame backend (uses undocumented endpoints)" |
| 17 | + default: true |
| 18 | + MTG_MCP_ENABLE_MTGJSON: |
| 19 | + type: boolean |
| 20 | + title: "Enable MTGJSON" |
| 21 | + description: "Enable MTGJSON bulk card data for rate-limit-free lookups (~100 MB download on first use)" |
| 22 | + default: true |
| 23 | + MTG_MCP_LOG_LEVEL: |
| 24 | + type: string |
| 25 | + title: "Log Level" |
| 26 | + description: "Server logging level" |
| 27 | + default: "INFO" |
| 28 | + enum: ["DEBUG", "INFO", "WARNING", "ERROR"] |
| 29 | + MTG_MCP_SCRYFALL_RATE_LIMIT_MS: |
| 30 | + type: integer |
| 31 | + title: "Scryfall Rate Limit (ms)" |
| 32 | + description: "Minimum delay between Scryfall API calls in milliseconds" |
| 33 | + default: 100 |
| 34 | + minimum: 10 |
| 35 | + maximum: 5000 |
| 36 | + MTG_MCP_MTGJSON_REFRESH_HOURS: |
| 37 | + type: integer |
| 38 | + title: "MTGJSON Refresh Interval (hours)" |
| 39 | + description: "Hours between MTGJSON bulk data refreshes" |
| 40 | + default: 24 |
| 41 | + minimum: 1 |
| 42 | + maximum: 168 |
| 43 | + commandFunction: |- |
| 44 | + (config) => ({ |
| 45 | + command: 'uvx', |
| 46 | + args: ['mtg-mcp-server'], |
| 47 | + env: { |
| 48 | + MTG_MCP_ENABLE_17LANDS: config.MTG_MCP_ENABLE_17LANDS !== undefined ? String(config.MTG_MCP_ENABLE_17LANDS) : undefined, |
| 49 | + MTG_MCP_ENABLE_EDHREC: config.MTG_MCP_ENABLE_EDHREC !== undefined ? String(config.MTG_MCP_ENABLE_EDHREC) : undefined, |
| 50 | + MTG_MCP_ENABLE_MTGJSON: config.MTG_MCP_ENABLE_MTGJSON !== undefined ? String(config.MTG_MCP_ENABLE_MTGJSON) : undefined, |
| 51 | + MTG_MCP_LOG_LEVEL: config.MTG_MCP_LOG_LEVEL || undefined, |
| 52 | + MTG_MCP_SCRYFALL_RATE_LIMIT_MS: config.MTG_MCP_SCRYFALL_RATE_LIMIT_MS !== undefined ? String(config.MTG_MCP_SCRYFALL_RATE_LIMIT_MS) : undefined, |
| 53 | + MTG_MCP_MTGJSON_REFRESH_HOURS: config.MTG_MCP_MTGJSON_REFRESH_HOURS !== undefined ? String(config.MTG_MCP_MTGJSON_REFRESH_HOURS) : undefined |
| 54 | + } |
| 55 | + }) |
0 commit comments