mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
feat(opencode-config): redact secrets and add MCP listing to the internal config API (#366)
This commit is contained in:
1 parent
68b13c8e35
commit
a1b7f58aae
31 files changed
+1238
-181
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user