feat(opencode-config): redact secrets and add MCP listing to the internal config API (#366)

This commit is contained in:
Chris Scott authored and GitHub committed 2026-09-28 23:52:41 -04:00
1 parent 68b13c8e35
commit a1b7f58aae
31 files changed
+1238 -181

No files matched your search

-5
View File
@@ -5,7 +5,6 @@ import {
isMcpServerNotFoundError,
mcpStatusByName,
openCodeLocation,
type McpServerConfig,
type McpStatusMap,
} from '@opencode-manager/shared/opencode'
@@ -28,10 +27,6 @@ export const mcpApi = {
return mcpStatusByName(data)
},
async addServer(name: string, config: McpServerConfig): Promise<void> {
await callOpenCode((api) => api.mcp.add({ server: name, config }))
},
async removeServer(name: string): Promise<void> {
await callOpenCode(async (api) => {
try {