UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

34 lines (33 loc) • 948 B
import type { OpenClawConfig } from "./types.openclaw.js"; export type ConfigMcpServers = Record<string, Record<string, unknown>>; type ConfigMcpReadResult = { ok: true; path: string; config: OpenClawConfig; mcpServers: ConfigMcpServers; } | { ok: false; path: string; error: string; }; type ConfigMcpWriteResult = { ok: true; path: string; config: OpenClawConfig; mcpServers: ConfigMcpServers; removed?: boolean; } | { ok: false; path: string; error: string; }; export declare function normalizeConfiguredMcpServers(value: unknown): ConfigMcpServers; export declare function listConfiguredMcpServers(): Promise<ConfigMcpReadResult>; export declare function setConfiguredMcpServer(params: { name: string; server: unknown; }): Promise<ConfigMcpWriteResult>; export declare function unsetConfiguredMcpServer(params: { name: string; }): Promise<ConfigMcpWriteResult>; export {};