Root cause: start-bot.ps1 запускает claude с --strict-mcp-config --mcp-config
.claude/mcp/<role>.json → грузятся ТОЛЬКО серверы из role-файла (~/.claude.json
игнорируется). tradein был только в ~/.claude.json → в bot-окнах не появлялся,
несмотря на whitelist во frontmatter (whitelist разрешает тулзу, но не поднимает сервер).
- start-bot.ps1: экспорт TRADEIN_DB_URI из ~/.claude.json (секрет не коммитится)
- analyst.json + backend.json: блок postgres-tradein с ${TRADEIN_DB_URI}
28 lines
1 KiB
JSON
28 lines
1 KiB
JSON
{
|
|
"mcpServers": {
|
|
"obsidian": {
|
|
"command": "uvx",
|
|
"args": ["mcp-obsidian"],
|
|
"env": { "OBSIDIAN_API_KEY": "${OBSIDIAN_API_KEY}", "OBSIDIAN_HOST": "127.0.0.1", "OBSIDIAN_PORT": "27124" },
|
|
"alwaysLoad": true
|
|
},
|
|
"forgejo": {
|
|
"command": "C:/Users/user/tools/bin/forgejo-mcp.exe",
|
|
"args": ["-t", "stdio", "-url", "https://git.gendsgn.ru", "-debug=false"],
|
|
"alwaysLoad": true
|
|
},
|
|
"context7": { "type": "http", "url": "https://mcp.context7.com/mcp", "alwaysLoad": true },
|
|
"postgres-gendesign": {
|
|
"type": "stdio",
|
|
"command": "docker",
|
|
"args": ["run", "-i", "--rm", "-e", "DATABASE_URI", "crystaldba/postgres-mcp", "--access-mode=unrestricted"],
|
|
"env": { "DATABASE_URI": "${GENDESIGN_DB_URI}" }
|
|
},
|
|
"postgres-tradein": {
|
|
"type": "stdio",
|
|
"command": "docker",
|
|
"args": ["run", "-i", "--rm", "-e", "DATABASE_URI", "crystaldba/postgres-mcp", "--access-mode=unrestricted"],
|
|
"env": { "DATABASE_URI": "${TRADEIN_DB_URI}" }
|
|
}
|
|
}
|
|
}
|