fix(dashboard): 修正 OpenCode MCP 配置,移除 enabled 字段、添加 oauth: false
This commit is contained in:
@@ -581,12 +581,12 @@ function buildSecretsConfigText(apiKey, encKey) {
|
|||||||
function buildOpencodeEntry(apiKey, encKey) {
|
function buildOpencodeEntry(apiKey, encKey) {
|
||||||
return {
|
return {
|
||||||
type: 'remote',
|
type: 'remote',
|
||||||
enabled: true,
|
|
||||||
url: BASE_URL + '/mcp',
|
url: BASE_URL + '/mcp',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': 'Bearer ' + apiKey,
|
'Authorization': 'Bearer ' + apiKey,
|
||||||
'X-Encryption-Key': encKey
|
'X-Encryption-Key': encKey
|
||||||
}
|
},
|
||||||
|
oauth: false
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user