Files
CODE_ASSISTANT/5_django_backend/opencode/opencode.fabrix.json.tmpl
T
lee-hyeon-cheolandClaude Fable 5.1 8571db5bee feat(backend): SAP MCP 를 env 로 켜고 끄게 — 고객사 -12 에 별도 기동 절차
opencode.fabrix.json.tmpl 의 sap-icf 를 MCP_PORT/MCP_API_KEY 로 렌더, 키 없으면 enabled:false.
.env.example 에 SAP_*·MCP_* 블록. README 에 -13 번들 재활용 절차(컨테이너 간 통신 금지라 -12 에 따로).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 10:43:49 +09:00

26 lines
713 B
Cheetah

{
"$schema": "https://opencode.ai/config.json",
"disabled_providers": ["opencode", "anthropic", "openrouter", "openai", "google"],
"provider": {
"gateway": {
"npm": "@ai-sdk/openai-compatible",
"name": "FabriX",
"options": {
"baseURL": "http://127.0.0.1:${BACKEND_PORT}/api/ito",
"apiKey": "${AAF_GATEWAY_KEY}"
},
"models": ${AAF_FABRIX_MODELS_JSON}
}
},
"model": "gateway/${AAF_FABRIX_DEFAULT_MODEL}",
"tools": { "question": false },
"mcp": {
"sap-icf": {
"type": "remote",
"url": "http://127.0.0.1:${MCP_PORT}/mcp",
"headers": { "Authorization": "Bearer ${MCP_API_KEY}" },
"enabled": ${SAP_MCP_ENABLED}
}
}
}