mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:40:44 +00:00
refactor: trim mcp config helper exports
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { isRecord } from "../utils.js";
|
||||
|
||||
export type ConfigMcpServers = Record<string, Record<string, unknown>>;
|
||||
type ConfigMcpServers = Record<string, Record<string, unknown>>;
|
||||
type OpenClawMcpHttpTransport = "sse" | "streamable-http";
|
||||
|
||||
const CLI_MCP_TYPE_TO_OPENCLAW_TRANSPORT: Record<string, OpenClawMcpHttpTransport | "stdio"> = {
|
||||
|
||||
@@ -3,13 +3,12 @@ import { readSourceConfigSnapshot } from "./io.js";
|
||||
import {
|
||||
canonicalizeConfiguredMcpServer,
|
||||
normalizeConfiguredMcpServers,
|
||||
type ConfigMcpServers,
|
||||
} from "./mcp-config-normalize.js";
|
||||
import { replaceConfigFile } from "./mutate.js";
|
||||
import type { OpenClawConfig } from "./types.openclaw.js";
|
||||
import { validateConfigObjectWithPlugins } from "./validation.js";
|
||||
|
||||
export { normalizeConfiguredMcpServers, type ConfigMcpServers } from "./mcp-config-normalize.js";
|
||||
type ConfigMcpServers = ReturnType<typeof normalizeConfiguredMcpServers>;
|
||||
|
||||
type ConfigMcpReadResult =
|
||||
| {
|
||||
|
||||
Reference in New Issue
Block a user