-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathsmithery.yaml
More file actions
24 lines (23 loc) · 901 Bytes
/
smithery.yaml
File metadata and controls
24 lines (23 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
required:
- openweathermapApiKey
properties:
openweathermapApiKey:
type: string
description: API key for OpenWeatherMap. Required for fetching weather data.
port:
type: number
default: 8000
description: Port on which the server runs (if applicable)
commandFunction:
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
|-
(config) => { return { command: 'python', args: ['-m', 'weather_server.server'], env: { OPENWEATHERMAP_API_KEY: config.openweathermapApiKey, PORT: String(config.port) } } }
exampleConfig:
openweathermapApiKey: your_api_key_here
port: 8000