-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsmithery.yaml
42 lines (41 loc) · 1.25 KB
/
smithery.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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:
- elasticHost
- elasticUsername
- elasticPassword
properties:
elasticHost:
type: string
description: Elasticsearch host address (e.g., http://localhost:9200)
elasticUsername:
type: string
description: Elasticsearch username
elasticPassword:
type: string
description: Elasticsearch password
mcpPort:
type: number
default: 9999
description: MCP server listening port (default 9999)
commandFunction:
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
|-
(config) => ({
command: 'elasticsearch7-mcp-server',
env: {
ELASTIC_HOST: config.elasticHost,
ELASTIC_USERNAME: config.elasticUsername,
ELASTIC_PASSWORD: config.elasticPassword,
MCP_PORT: config.mcpPort ? config.mcpPort.toString() : '9999'
}
})
exampleConfig:
elasticHost: http://localhost:9200
elasticUsername: elastic
elasticPassword: changeme
mcpPort: 9999