惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The Hacker News
The Hacker News
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
雷峰网
雷峰网
人人都是产品经理
人人都是产品经理
Recent Announcements
Recent Announcements
D
DataBreaches.Net
P
Proofpoint News Feed
V
Visual Studio Blog
J
Java Code Geeks
Recorded Future
Recorded Future
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
F
Full Disclosure
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
C
Cybersecurity and Infrastructure Security Agency CISA
V
Vulnerabilities – Threatpost
罗磊的独立博客
Jina AI
Jina AI
博客园 - 【当耐特】
C
CERT Recently Published Vulnerability Notes
G
GRAHAM CLULEY
Y
Y Combinator Blog
L
LangChain Blog
L
LINUX DO - 热门话题
宝玉的分享
宝玉的分享
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Help Net Security
云风的 BLOG
云风的 BLOG
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园_首页
A
About on SuperTechFans
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Latest news
Latest news
T
Threatpost
T
Tenable Blog
有赞技术团队
有赞技术团队
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Stack Overflow Blog
Stack Overflow Blog
C
Cisco Blogs
C
Check Point Blog
T
Tor Project blog
T
Threat Research - Cisco Blogs
T
The Exploit Database - CXSecurity.com
S
Schneier on Security
美团技术团队
I
Intezer
S
Securelist
AWS News Blog
AWS News Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
fix(mcp): normalize streamable http server aliases · openclaw/openclaw@053aff6
steipete · 2026-04-27 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -24,6 +24,7 @@ Docs: https://docs.openclaw.ai

2424

- Agents/fallback: classify internal live-session model switch conflicts as unknown fallback failures instead of provider overloads, preventing local vLLM endpoints from receiving misleading overloaded cooldowns. Refs #63229. Thanks @clawdia-lobster.

2525

- Control UI: keep session-specific assistant identity loads authoritative after WebSocket connect, so non-main agent chat sessions do not show the main agent name in the header after bootstrap refreshes. Fixes #72776. Thanks @rockytian-top.

2626

- Agents/Qwen: preserve exact custom `modelstudio` provider configs with foreign `api` owners so explicit OpenAI-compatible Model Studio endpoints no longer get normalized into the bundled Qwen plugin path. Fixes #64483. Thanks @FiredMosquito831.

27+

- MCP/bundle-mcp: normalize CLI-native `type: "http"` MCP server entries to OpenClaw `transport: "streamable-http"` on save, repair existing configs with doctor, and keep embedded Pi from falling back to legacy SSE GET-first startup for those servers. Fixes #72757. Thanks @Studioscale.

2728

- Media-understanding/audio: migrate deprecated `{input}` placeholders in legacy `audio.transcription.command` configs to `{{MediaPath}}`, so custom audio transcribers no longer receive the literal placeholder after doctor repair. Fixes #72760. Thanks @krisfanue3-hash.

2829

- Ollama/onboarding: de-dupe suggested bare local models against installed `:latest` tags and skip redundant pulls, so setup shows the installed model once and no longer says it is downloading an already available model. Fixes #68952. Thanks @tleyden.

2930

- Control UI/Gateway: preserve WebChat client version labels across localhost, 127.0.0.1, and IPv6 loopback aliases on the same port, avoiding misleading `vcontrol-ui` connection logs while investigating duplicate-message reports. Refs #72753 and #72742. Thanks @LumenFromTheFuture and @allesgutefy.

Original file line numberDiff line numberDiff line change

@@ -1,4 +1,4 @@

1-

8a37b104c6b3a25618cbf4ecd0dd511703997fb1a10a1167226ab9918eb85455 config-baseline.json

2-

a1839a03fc557a5439fc7b4ce2d45c7212b61e15588e15886bb22b65ff7dc32d config-baseline.core.json

1+

3546f416ff22ead14952cd105c7b88e3b7b76d5ddc10269e73f69ed1950f0603 config-baseline.json

2+

b29ade2d1d2415b030b4d5ec36097a93ab4ea943b7d2a52da95829be1c28fc2a config-baseline.core.json

33

07963db49502132f26db396c56b36e018b110e6c55a68b3cb012d3ec96f43901 config-baseline.channel.json

44

ed65cefbef96f034ce2b73069d9d5bacc341a43489ff9b20a34d40956b877f79 config-baseline.plugin.json

Original file line numberDiff line numberDiff line change

@@ -381,6 +381,7 @@ Notes:

381381

- `list` sorts server names.

382382

- `show` without a name prints the full configured MCP server object.

383383

- `set` expects one JSON object value on the command line.

384+

- Use `transport: "streamable-http"` for Streamable HTTP MCP servers. `openclaw mcp set` also normalizes CLI-native `type: "http"` to the same canonical config shape for compatibility.

384385

- `unset` fails if the named server does not exist.

385386
386387

Examples:

@@ -389,7 +390,7 @@ Examples:

389390

openclaw mcp list

390391

openclaw mcp show context7 --json

391392

openclaw mcp set context7 '{"command":"uvx","args":["context7-mcp"]}'

392-

openclaw mcp set docs '{"url":"https://mcp.example.com"}'

393+

openclaw mcp set docs '{"url":"https://mcp.example.com","transport":"streamable-http"}'

393394

openclaw mcp unset context7

394395

```

395396

@@ -404,7 +405,8 @@ Example config shape:

404405

"args": ["context7-mcp"]

405406

},

406407

"docs": {

407-

"url": "https://mcp.example.com"

408+

"url": "https://mcp.example.com",

409+

"transport": "streamable-http"

408410

}

409411

}

410412

}

@@ -470,6 +472,8 @@ Sensitive values in `url` (userinfo) and `headers` are redacted in logs and stat

470472

| `headers` | Optional key-value map of HTTP headers (for example auth tokens) |

471473

| `connectionTimeoutMs` | Per-server connection timeout in ms (optional) |

472474
475+

OpenClaw config uses `transport: "streamable-http"` as the canonical spelling. CLI-native MCP `type: "http"` values are accepted when saved through `openclaw mcp set` and repaired by `openclaw doctor --fix` in existing config, but `transport` is what embedded Pi consumes directly.

476+
473477

Example:

474478
475479

```json

Original file line numberDiff line numberDiff line change

@@ -88,6 +88,9 @@ target server during config edits.

8888
8989

- `mcp.servers`: named stdio or remote MCP server definitions for runtimes that

9090

expose configured MCP tools.

91+

Remote entries use `transport: "streamable-http"` or `transport: "sse"`;

92+

`type: "http"` is a CLI-native alias that `openclaw mcp set` and

93+

`openclaw doctor --fix` normalize into the canonical `transport` field.

9194

- `mcp.sessionIdleTtlMs`: idle TTL for session-scoped bundled MCP runtimes.

9295

One-shot embedded runs request run-end cleanup; this TTL is the backstop for

9396

long-lived sessions and future callers.

Original file line numberDiff line numberDiff line change

@@ -149,6 +149,7 @@ MCP servers can use stdio or HTTP transport:

149149

```

150150
151151

- `transport` may be set to `"streamable-http"` or `"sse"`; when omitted, OpenClaw uses `sse`

152+

- `type: "http"` is a CLI-native downstream shape; use `transport: "streamable-http"` in OpenClaw config. `openclaw mcp set` and `openclaw doctor --fix` normalize the common alias.

152153

- only `http:` and `https:` URL schemes are allowed

153154

- `headers` values support `${ENV_VAR}` interpolation

154155

- a server entry with both `command` and `url` is rejected

Original file line numberDiff line numberDiff line change

@@ -150,4 +150,17 @@ describe("resolveMcpTransportConfig", () => {

150150

url: "https://mcp.example.com/http",

151151

});

152152

});

153+
154+

it("treats CLI-native http type as streamable HTTP for compatibility", () => {

155+

const resolved = resolveMcpTransportConfig("probe", {

156+

url: "https://mcp.example.com/http",

157+

type: "http",

158+

});

159+
160+

expect(resolved).toMatchObject({

161+

kind: "http",

162+

transportType: "streamable-http",

163+

url: "https://mcp.example.com/http",

164+

});

165+

});

153166

});

Original file line numberDiff line numberDiff line change

@@ -1,3 +1,4 @@

1+

import { resolveOpenClawMcpTransportAlias } from "../config/mcp-config-normalize.js";

12

import { logWarn } from "../logger.js";

23

import { normalizeLowercaseStringOrEmpty } from "../shared/string-coerce.js";

34

import { sanitizeForLog } from "../terminal/ansi.js";

@@ -61,6 +62,17 @@ function getRequestedTransport(rawServer: unknown): string {

6162

return normalizeLowercaseStringOrEmpty((rawServer as { transport?: string }).transport);

6263

}

6364
65+

function getRequestedTransportAlias(rawServer: unknown): HttpMcpTransportType | "" {

66+

if (

67+

!rawServer ||

68+

typeof rawServer !== "object" ||

69+

typeof (rawServer as { type?: unknown }).type !== "string"

70+

) {

71+

return "";

72+

}

73+

return resolveOpenClawMcpTransportAlias((rawServer as { type?: string }).type) ?? "";

74+

}

75+
6476

function resolveHttpTransportConfig(

6577

serverName: string,

6678

rawServer: unknown,

@@ -98,6 +110,8 @@ export function resolveMcpTransportConfig(

98110

): ResolvedMcpTransportConfig | null {

99111

const logServerName = sanitizeForLog(serverName);

100112

const requestedTransport = getRequestedTransport(rawServer);

113+

const requestedTransportAlias = requestedTransport ? "" : getRequestedTransportAlias(rawServer);

114+

const effectiveTransport = requestedTransport || requestedTransportAlias;

101115

const stdioLaunch = resolveStdioMcpServerLaunchConfig(rawServer, {

102116

onDroppedEnv: (key) => {

103117

logWarn(

@@ -119,17 +133,17 @@ export function resolveMcpTransportConfig(

119133

}

120134
121135

if (

122-

requestedTransport &&

123-

requestedTransport !== "sse" &&

124-

requestedTransport !== "streamable-http"

136+

effectiveTransport &&

137+

effectiveTransport !== "sse" &&

138+

effectiveTransport !== "streamable-http"

125139

) {

126140

logWarn(

127-

`bundle-mcp: skipped server "${logServerName}" because transport "${sanitizeForLog(requestedTransport)}" is not supported.`,

141+

`bundle-mcp: skipped server "${logServerName}" because transport "${sanitizeForLog(effectiveTransport)}" is not supported.`,

128142

);

129143

return null;

130144

}

131145
132-

if (requestedTransport === "streamable-http") {

146+

if (effectiveTransport === "streamable-http") {

133147

const httpTransport = resolveHttpTransportConfig(serverName, rawServer, "streamable-http");

134148

if (httpTransport) {

135149

return httpTransport;

Original file line numberDiff line numberDiff line change

@@ -111,6 +111,18 @@ export const DOCTOR_DEPRECATION_COMPAT_RECORDS = [

111111

docsPath: "/automation",

112112

tests: ["src/commands/doctor/shared/legacy-config-migrate.test.ts"],

113113

}),

114+

deprecatedCompatRecord({

115+

code: "doctor-mcp-server-type-alias",

116+

owner: "config",

117+

introduced: "2026-04-27",

118+

source: "mcp.servers.*.type",

119+

migration: "src/commands/doctor/shared/legacy-config-migrations.runtime.mcp.ts",

120+

replacement: "mcp.servers.*.transport",

121+

docsPath: "/cli/mcp",

122+

tests: ["src/commands/doctor/shared/legacy-config-migrate.test.ts"],

123+

notes:

124+

"OpenClaw stores transport names; CLI backends receive their own type fields through runtime adapters.",

125+

}),

114126

deprecatedCompatRecord({

115127

code: "doctor-gateway-bind-host-aliases",

116128

owner: "gateway",

Original file line numberDiff line numberDiff line change

@@ -262,6 +262,58 @@ describe("legacy migrate sandbox scope aliases", () => {

262262

});

263263

});

264264
265+

describe("legacy migrate MCP server type aliases", () => {

266+

it("moves CLI-native http type to OpenClaw streamable HTTP transport", () => {

267+

const res = migrateLegacyConfigForTest({

268+

mcp: {

269+

servers: {

270+

silo: {

271+

type: "http",

272+

url: "https://example.com/mcp",

273+

},

274+

legacySse: {

275+

type: "sse",

276+

url: "https://example.com/sse",

277+

},

278+

},

279+

},

280+

});

281+
282+

expect(res.changes).toContain(

283+

'Moved mcp.servers.silo.type "http" → transport "streamable-http".',

284+

);

285+

expect(res.changes).toContain('Moved mcp.servers.legacySse.type "sse" → transport "sse".');

286+

expect(res.config?.mcp?.servers?.silo).toEqual({

287+

url: "https://example.com/mcp",

288+

transport: "streamable-http",

289+

});

290+

expect(res.config?.mcp?.servers?.legacySse).toEqual({

291+

url: "https://example.com/sse",

292+

transport: "sse",

293+

});

294+

});

295+
296+

it("removes CLI-native type when canonical transport is already set", () => {

297+

const res = migrateLegacyConfigForTest({

298+

mcp: {

299+

servers: {

300+

mixed: {

301+

type: "http",

302+

transport: "sse",

303+

url: "https://example.com/mcp",

304+

},

305+

},

306+

},

307+

});

308+
309+

expect(res.changes).toContain('Removed mcp.servers.mixed.type (transport "sse" already set).');

310+

expect(res.config?.mcp?.servers?.mixed).toEqual({

311+

url: "https://example.com/mcp",

312+

transport: "sse",

313+

});

314+

});

315+

});

316+
265317

describe("legacy migrate x_search auth", () => {

266318

it("moves only legacy x_search auth into plugin-owned xai config", () => {

267319

const res = migrateLegacyConfigForTest({

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,53 @@

1+

import {

2+

defineLegacyConfigMigration,

3+

type LegacyConfigMigrationSpec,

4+

type LegacyConfigRule,

5+

} from "../../../config/legacy.shared.js";

6+

import {

7+

isKnownCliMcpTypeAlias,

8+

resolveOpenClawMcpTransportAlias,

9+

} from "../../../config/mcp-config-normalize.js";

10+

import { isRecord } from "./legacy-config-record-shared.js";

11+
12+

const MCP_SERVER_TYPE_RULE: LegacyConfigRule = {

13+

path: ["mcp", "servers"],

14+

message:

15+

'mcp.servers entries use OpenClaw transport names; CLI-native type aliases are legacy here. Run "openclaw doctor --fix".',

16+

match: (value) =>

17+

isRecord(value) &&

18+

Object.values(value).some((server) => isRecord(server) && isKnownCliMcpTypeAlias(server.type)),

19+

};

20+
21+

export const LEGACY_CONFIG_MIGRATIONS_RUNTIME_MCP: LegacyConfigMigrationSpec[] = [

22+

defineLegacyConfigMigration({

23+

id: "mcp.servers.type->transport",

24+

describe: "Move CLI-native MCP server type aliases to OpenClaw transport",

25+

legacyRules: [MCP_SERVER_TYPE_RULE],

26+

apply: (raw, changes) => {

27+

const mcp = isRecord(raw.mcp) ? raw.mcp : undefined;

28+

const servers = isRecord(mcp?.servers) ? mcp?.servers : undefined;

29+

if (!servers) {

30+

return;

31+

}

32+
33+

for (const [serverName, rawServer] of Object.entries(servers)) {

34+

if (!isRecord(rawServer) || !isKnownCliMcpTypeAlias(rawServer.type)) {

35+

continue;

36+

}

37+

const rawType = typeof rawServer.type === "string" ? rawServer.type : "";

38+

const alias = resolveOpenClawMcpTransportAlias(rawServer.type);

39+

if (typeof rawServer.transport !== "string" && alias) {

40+

rawServer.transport = alias;

41+

changes.push(`Moved mcp.servers.${serverName}.type "${rawType}" → transport "${alias}".`);

42+

} else if (typeof rawServer.transport === "string") {

43+

changes.push(

44+

`Removed mcp.servers.${serverName}.type (transport "${rawServer.transport}" already set).`,

45+

);

46+

} else {

47+

changes.push(`Removed mcp.servers.${serverName}.type "${rawType}".`);

48+

}

49+

delete rawServer.type;

50+

}

51+

},

52+

}),

53+

];