Skip to content

Commit d131c80

Browse files
committed
Add mcp.json example
1 parent 1485fcc commit d131c80

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,34 @@ To use the Redis MCP Server with VS Code, you need:
195195
}
196196
```
197197

198-
2. Add the Redis MCP Server configuration to your `settings.json`:
198+
2. Add the Redis MCP Server configuration to your `mcp.json` or `settings.json`:
199199

200200
```commandline
201+
// Example .vscode/mcp.json
202+
{
203+
"servers": {
204+
"redis": {
205+
"type": "stdio",
206+
"command": "<full_path_uv_command>",
207+
"args": [
208+
"--directory",
209+
"<your_mcp_server_directory>",
210+
"run",
211+
"src/main.py"
212+
],
213+
"env": {
214+
"REDIS_HOST": "<your_redis_database_hostname>",
215+
"REDIS_PORT": "<your_redis_database_port>",
216+
"REDIS_USERNAME": "<your_redis_database_username>",
217+
"REDIS_PWD": "<your_redis_database_password>",
218+
}
219+
}
220+
}
221+
}
222+
```
223+
224+
```commandline
225+
// Example settings.json
201226
{
202227
"mcp": {
203228
"servers": {
@@ -215,9 +240,6 @@ To use the Redis MCP Server with VS Code, you need:
215240
"REDIS_PORT": "<your_redis_database_port>",
216241
"REDIS_USERNAME": "<your_redis_database_username>",
217242
"REDIS_PWD": "<your_redis_database_password>",
218-
"REDIS_SSL": True|False,
219-
"REDIS_CA_PATH": "<your_redis_ca_path>",
220-
"REDIS_CLUSTER_MODE": True|False
221243
}
222244
}
223245
}

0 commit comments

Comments
 (0)