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

推荐订阅源

博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
阮一峰的网络日志
阮一峰的网络日志
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
WordPress大学
WordPress大学
博客园 - 司徒正美
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
宝玉的分享
宝玉的分享
爱范儿
爱范儿
月光博客
月光博客
The GitHub Blog
The GitHub Blog
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
B
Blog
T
Tailwind CSS Blog
美团技术团队
D
Docker
V
Visual Studio Blog
Martin Fowler
Martin Fowler
博客园 - 聂微东
The Cloudflare 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: require cli mcp config path · openclaw/openclaw@365...
shakkernerd · 2026-05-12 · via Recent Commits to openclaw:main

@@ -4,7 +4,11 @@ import { describe, expect, it } from "vitest";

44

import { writeClaudeBundleManifest } from "../../plugins/bundle-mcp.test-support.js";

55

import { captureEnv } from "../../test-utils/env.js";

66

import { prepareCliBundleMcpConfig } from "./bundle-mcp.js";

7-

import { cliBundleMcpHarness, setupCliBundleMcpTestHarness } from "./bundle-mcp.test-support.js";

7+

import {

8+

cliBundleMcpHarness,

9+

requireMcpConfigPath,

10+

setupCliBundleMcpTestHarness,

11+

} from "./bundle-mcp.test-support.js";

812913

setupCliBundleMcpTestHarness();

1014

@@ -36,10 +40,8 @@ describe("prepareCliBundleMcpConfig user mcp.servers", () => {

3640

},

3741

});

384239-

const configFlagIndex = prepared.backend.args?.indexOf("--mcp-config") ?? -1;

40-

expect(configFlagIndex).toBeGreaterThanOrEqual(0);

41-

const generatedConfigPath = prepared.backend.args?.[configFlagIndex + 1];

42-

const raw = JSON.parse(await fs.readFile(generatedConfigPath as string, "utf-8")) as {

43+

const generatedConfigPath = requireMcpConfigPath(prepared.backend.args);

44+

const raw = JSON.parse(await fs.readFile(generatedConfigPath, "utf-8")) as {

4345

mcpServers?: Record<string, { type?: string; url?: string }>;

4446

};

4547

expect(raw.mcpServers?.omi?.type).toBe("sse");

@@ -79,10 +81,8 @@ describe("prepareCliBundleMcpConfig user mcp.servers", () => {

7981

},

8082

});

818382-

const configFlagIndex = prepared.backend.args?.indexOf("--mcp-config") ?? -1;

83-

expect(configFlagIndex).toBeGreaterThanOrEqual(0);

84-

const generatedConfigPath = prepared.backend.args?.[configFlagIndex + 1];

85-

const raw = JSON.parse(await fs.readFile(generatedConfigPath as string, "utf-8")) as {

84+

const generatedConfigPath = requireMcpConfigPath(prepared.backend.args);

85+

const raw = JSON.parse(await fs.readFile(generatedConfigPath, "utf-8")) as {

8686

mcpServers?: Record<string, { type?: string; transport?: string; url?: string }>;

8787

};

8888

@@ -123,9 +123,8 @@ describe("prepareCliBundleMcpConfig user mcp.servers", () => {

123123

},

124124

});

125125126-

const configFlagIndex = prepared.backend.args?.indexOf("--mcp-config") ?? -1;

127-

const generatedConfigPath = prepared.backend.args?.[configFlagIndex + 1];

128-

const raw = JSON.parse(await fs.readFile(generatedConfigPath as string, "utf-8")) as {

126+

const generatedConfigPath = requireMcpConfigPath(prepared.backend.args);

127+

const raw = JSON.parse(await fs.readFile(generatedConfigPath, "utf-8")) as {

129128

mcpServers?: Record<string, { type?: string; transport?: string }>;

130129

};

131130

@@ -170,10 +169,8 @@ describe("prepareCliBundleMcpConfig user mcp.servers", () => {

170169

},

171170

});

172171173-

const configFlagIndex = prepared.backend.args?.indexOf("--mcp-config") ?? -1;

174-

expect(configFlagIndex).toBeGreaterThanOrEqual(0);

175-

const generatedConfigPath = prepared.backend.args?.[configFlagIndex + 1];

176-

const raw = JSON.parse(await fs.readFile(generatedConfigPath as string, "utf-8")) as {

172+

const generatedConfigPath = requireMcpConfigPath(prepared.backend.args);

173+

const raw = JSON.parse(await fs.readFile(generatedConfigPath, "utf-8")) as {

177174

mcpServers?: Record<string, { url?: string }>;

178175

};

179176

expect(raw.mcpServers?.openclaw?.url).toBe("http://127.0.0.1:23119/mcp");

@@ -243,10 +240,8 @@ describe("prepareCliBundleMcpConfig user mcp.servers", () => {

243240

},

244241

});

245242246-

const configFlagIndex = prepared.backend.args?.indexOf("--mcp-config") ?? -1;

247-

expect(configFlagIndex).toBeGreaterThanOrEqual(0);

248-

const generatedConfigPath = prepared.backend.args?.[configFlagIndex + 1];

249-

const raw = JSON.parse(await fs.readFile(generatedConfigPath as string, "utf-8")) as {

243+

const generatedConfigPath = requireMcpConfigPath(prepared.backend.args);

244+

const raw = JSON.parse(await fs.readFile(generatedConfigPath, "utf-8")) as {

250245

mcpServers?: Record<

251246

string,

252247

{