Skip to content

Commit d79aca4

Browse files
Add Smithery configuration
1 parent 604599b commit d79aca4

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

smithery.yaml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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+
required: []
9+
properties:
10+
redisHost:
11+
type: string
12+
default: 127.0.0.1
13+
description: Redis IP or hostname
14+
redisPort:
15+
type: number
16+
default: 6379
17+
description: Redis port
18+
redisUsername:
19+
type: string
20+
default: default
21+
description: Redis username
22+
redisPwd:
23+
type: string
24+
default: ""
25+
description: Redis password
26+
redisSSL:
27+
type: boolean
28+
default: false
29+
description: Enable SSL for Redis connection
30+
redisCAPath:
31+
type: string
32+
default: ""
33+
description: CA certificate path for verifying server
34+
redisSSLKeyfile:
35+
type: string
36+
default: ""
37+
description: Client private key file for authentication
38+
redisSSLCertfile:
39+
type: string
40+
default: ""
41+
description: Client certificate file for authentication
42+
redisCertReqs:
43+
type: string
44+
default: required
45+
description: Certificate requirements
46+
redisCACerts:
47+
type: string
48+
default: ""
49+
description: Path to trusted CA certificates file
50+
commandFunction:
51+
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
52+
|-
53+
(config) => ({
54+
command: 'python',
55+
args: ['src/main.py'],
56+
env: {
57+
REDIS_HOST: config.redisHost,
58+
REDIS_PORT: String(config.redisPort),
59+
REDIS_USERNAME: config.redisUsername,
60+
REDIS_PWD: config.redisPwd,
61+
REDIS_SSL: String(config.redisSSL),
62+
REDIS_CA_PATH: config.redisCAPath,
63+
REDIS_SSL_KEYFILE: config.redisSSLKeyfile,
64+
REDIS_SSL_CERTFILE: config.redisSSLCertfile,
65+
REDIS_CERT_REQS: config.redisCertReqs,
66+
REDIS_CA_CERTS: config.redisCACerts
67+
}
68+
})
69+
exampleConfig:
70+
redisHost: 127.0.0.1
71+
redisPort: 6379
72+
redisUsername: default
73+
redisPwd: ""
74+
redisSSL: false
75+
redisCAPath: ""
76+
redisSSLKeyfile: ""
77+
redisSSLCertfile: ""
78+
redisCertReqs: required
79+
redisCACerts: ""

0 commit comments

Comments
 (0)