refactor: trim mcp config helper exports · openclaw/openclaw@53e6eb8
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { isRecord } from "../utils.js"; |
2 | 2 | |
3 | | -export type ConfigMcpServers = Record<string, Record<string, unknown>>; |
| 3 | +type ConfigMcpServers = Record<string, Record<string, unknown>>; |
4 | 4 | type OpenClawMcpHttpTransport = "sse" | "streamable-http"; |
5 | 5 | |
6 | 6 | const CLI_MCP_TYPE_TO_OPENCLAW_TRANSPORT: Record<string, OpenClawMcpHttpTransport | "stdio"> = { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,13 +3,12 @@ import { readSourceConfigSnapshot } from "./io.js";
|
3 | 3 | import { |
4 | 4 | canonicalizeConfiguredMcpServer, |
5 | 5 | normalizeConfiguredMcpServers, |
6 | | -type ConfigMcpServers, |
7 | 6 | } from "./mcp-config-normalize.js"; |
8 | 7 | import { replaceConfigFile } from "./mutate.js"; |
9 | 8 | import type { OpenClawConfig } from "./types.openclaw.js"; |
10 | 9 | import { validateConfigObjectWithPlugins } from "./validation.js"; |
11 | 10 | |
12 | | -export { normalizeConfiguredMcpServers, type ConfigMcpServers } from "./mcp-config-normalize.js"; |
| 11 | +type ConfigMcpServers = ReturnType<typeof normalizeConfiguredMcpServers>; |
13 | 12 | |
14 | 13 | type ConfigMcpReadResult = |
15 | 14 | | { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。