Remove all MCP server configurations and update whitelists for security hardening
This commit is contained in:
parent
f7c4820a84
commit
bfdc9734f5
3 changed files with 7 additions and 80 deletions
|
|
@ -314,55 +314,7 @@
|
||||||
"use_bm25": true,
|
"use_bm25": true,
|
||||||
"use_regex": false
|
"use_regex": false
|
||||||
},
|
},
|
||||||
"servers": {
|
"servers": {}
|
||||||
"context7": {
|
|
||||||
"enabled": false,
|
|
||||||
"type": "http",
|
|
||||||
"url": "https://mcp.context7.com/mcp",
|
|
||||||
"headers": {
|
|
||||||
"CONTEXT7_API_KEY": "ctx7sk-xx"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"filesystem": {
|
|
||||||
"enabled": false,
|
|
||||||
"command": "npx",
|
|
||||||
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
|
|
||||||
},
|
|
||||||
"github": {
|
|
||||||
"enabled": false,
|
|
||||||
"command": "npx",
|
|
||||||
"args": ["-y", "@modelcontextprotocol/server-github"],
|
|
||||||
"env": {
|
|
||||||
"GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_TOKEN"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"brave-search": {
|
|
||||||
"enabled": false,
|
|
||||||
"command": "npx",
|
|
||||||
"args": ["-y", "@modelcontextprotocol/server-brave-search"],
|
|
||||||
"env": {
|
|
||||||
"BRAVE_API_KEY": "YOUR_BRAVE_API_KEY"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"postgres": {
|
|
||||||
"enabled": false,
|
|
||||||
"command": "npx",
|
|
||||||
"args": [
|
|
||||||
"-y",
|
|
||||||
"@modelcontextprotocol/server-postgres",
|
|
||||||
"postgresql://user:password@localhost/dbname"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"slack": {
|
|
||||||
"enabled": false,
|
|
||||||
"command": "npx",
|
|
||||||
"args": ["-y", "@modelcontextprotocol/server-slack"],
|
|
||||||
"env": {
|
|
||||||
"SLACK_BOT_TOKEN": "YOUR_SLACK_BOT_TOKEN",
|
|
||||||
"SLACK_TEAM_ID": "YOUR_SLACK_TEAM_ID"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"exec": {
|
"exec": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
|
|
|
||||||
|
|
@ -476,14 +476,7 @@
|
||||||
"interval_minutes": 5
|
"interval_minutes": 5
|
||||||
},
|
},
|
||||||
"mcp": {
|
"mcp": {
|
||||||
"enabled": true,
|
|
||||||
"discovery": {
|
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
"ttl": 5,
|
|
||||||
"max_search_results": 5,
|
|
||||||
"use_bm25": true,
|
|
||||||
"use_regex": false
|
|
||||||
},
|
|
||||||
"servers": {}
|
"servers": {}
|
||||||
},
|
},
|
||||||
"whitelist": [
|
"whitelist": [
|
||||||
|
|
@ -496,9 +489,7 @@
|
||||||
"append_file",
|
"append_file",
|
||||||
"message",
|
"message",
|
||||||
"weather",
|
"weather",
|
||||||
"summarize",
|
"summarize"
|
||||||
"github",
|
|
||||||
"search_tool"
|
|
||||||
],
|
],
|
||||||
"whitelist_enabled": true,
|
"whitelist_enabled": true,
|
||||||
"append_file": {
|
"append_file": {
|
||||||
|
|
|
||||||
|
|
@ -497,28 +497,14 @@ data:
|
||||||
"ttl_seconds": 300
|
"ttl_seconds": 300
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"media_cleanup": {
|
"media_cleanup": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"max_age_minutes": 30,
|
"max_age_minutes": 30,
|
||||||
"interval_minutes": 5
|
"interval_minutes": 5
|
||||||
},
|
},
|
||||||
"mcp": {
|
"mcp": {
|
||||||
"enabled": true,
|
|
||||||
"discovery": {
|
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
"ttl": 5,
|
"servers": {}
|
||||||
"max_search_results": 5,
|
|
||||||
"use_bm25": true,
|
|
||||||
"use_regex": false
|
|
||||||
},
|
|
||||||
"servers": {
|
|
||||||
"hdn-server": {
|
|
||||||
"enabled": true,
|
|
||||||
"command": "",
|
|
||||||
"type": "sse",
|
|
||||||
"url": "http://hdn-server:8080/mcp"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"whitelist": [
|
"whitelist": [
|
||||||
"spawn",
|
"spawn",
|
||||||
|
|
@ -531,9 +517,7 @@ data:
|
||||||
"exec",
|
"exec",
|
||||||
"message",
|
"message",
|
||||||
"weather",
|
"weather",
|
||||||
"summarize",
|
"summarize"
|
||||||
"github",
|
|
||||||
"hdn-server"
|
|
||||||
],
|
],
|
||||||
"whitelist_enabled": true,
|
"whitelist_enabled": true,
|
||||||
"append_file": {
|
"append_file": {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue