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>
26 lines
713 B
Cheetah
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}
|
|
}
|
|
}
|
|
}
|