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

推荐订阅源

MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
H
Help Net Security
V
Visual Studio Blog
G
Google Developers Blog
Blog — PlanetScale
Blog — PlanetScale
Last Week in AI
Last Week in AI
C
Check Point Blog
D
Docker
M
MIT News - Artificial intelligence
P
Proofpoint News Feed
博客园 - 叶小钗
博客园 - 聂微东
The Cloudflare Blog
云风的 BLOG
云风的 BLOG
Martin Fowler
Martin Fowler
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
酷 壳 – CoolShell
酷 壳 – CoolShell
MyScale Blog
MyScale Blog
WordPress大学
WordPress大学
Engineering at Meta
Engineering at Meta
腾讯CDC
S
SegmentFault 最新的问题
博客园 - 【当耐特】

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
fix(codex): approve bundled MCP loopback tools · openclaw...
steipete · 2026-04-24 · via Recent Commits to openclaw:main

@@ -42,8 +42,14 @@ const CLI_DEBUG = isTruthyEnvValue(process.env.OPENCLAW_LIVE_CLI_BACKEND_DEBUG);

4242

const CLI_CI_SAFE_CODEX_CONFIG = isTruthyEnvValue(

4343

process.env.OPENCLAW_LIVE_CLI_BACKEND_USE_CI_SAFE_CODEX_CONFIG,

4444

);

45+

const CLI_MCP_SCHEMA_PROBE = isTruthyEnvValue(

46+

process.env.OPENCLAW_LIVE_CLI_BACKEND_MCP_SCHEMA_PROBE,

47+

);

4548

const describeLive = LIVE && CLI_LIVE ? describe : describe.skip;

464950+

const MCP_SCHEMA_PROBE_PLUGIN_ID = "mcp-schema-probe";

51+

const MCP_SCHEMA_PROBE_TOOL_NAME = "mcp_schema_probe_no_args";

52+4753

const DEFAULT_PROVIDER = "claude-cli";

4854

const DEFAULT_MODEL =

4955

resolveCliBackendLiveTest(DEFAULT_PROVIDER)?.defaultModelRef ?? "claude-cli/claude-sonnet-4-6";

@@ -64,6 +70,44 @@ function logCliBackendLiveStep(step: string, details?: Record<string, unknown>):

6470

console.error(`[gateway-cli-live] ${step}${suffix}`);

6571

}

667273+

async function createMcpSchemaProbePlugin(tempDir: string): Promise<string> {

74+

const pluginDir = path.join(tempDir, MCP_SCHEMA_PROBE_PLUGIN_ID);

75+

await fs.mkdir(pluginDir, { recursive: true });

76+

const pluginFile = path.join(pluginDir, "index.cjs");

77+

await fs.writeFile(

78+

path.join(pluginDir, "openclaw.plugin.json"),

79+

`${JSON.stringify(

80+

{

81+

id: MCP_SCHEMA_PROBE_PLUGIN_ID,

82+

name: "MCP Schema Probe",

83+

description: "Live test plugin for no-argument MCP tool schemas",

84+

configSchema: { type: "object", properties: {} },

85+

},

86+

null,

87+

2,

88+

)}\n`,

89+

);

90+

await fs.writeFile(

91+

pluginFile,

92+

`module.exports = {

93+

id: "${MCP_SCHEMA_PROBE_PLUGIN_ID}",

94+

name: "MCP Schema Probe",

95+

register(api) {

96+

api.registerTool({

97+

name: "${MCP_SCHEMA_PROBE_TOOL_NAME}",

98+

description: "Live test no-argument tool for MCP schema normalization",

99+

parameters: { type: "object" },

100+

async execute() {

101+

return { content: [{ type: "text", text: "schema probe ok" }] };

102+

},

103+

});

104+

},

105+

};

106+

`,

107+

);

108+

return pluginFile;

109+

}

110+67111

describeLive("gateway live (cli backend)", () => {

68112

it(

69113

"runs the agent pipeline against the local CLI backend",

@@ -151,6 +195,9 @@ describeLive("gateway live (cli backend)", () => {

151195

const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-live-cli-"));

152196

const stateDir = path.join(tempDir, "state");

153197

await fs.mkdir(stateDir, { recursive: true });

198+

const schemaProbePluginPath = CLI_MCP_SCHEMA_PROBE

199+

? await createMcpSchemaProbePlugin(tempDir)

200+

: undefined;

154201

process.env.OPENCLAW_STATE_DIR = stateDir;

155202

const bundleMcp = backendResolved?.bundleMcp === true;

156203

const bootstrapWorkspace =

@@ -180,6 +227,21 @@ describeLive("gateway live (cli backend)", () => {

180227

const existingBackends = cfgWithCliBackends.agents?.defaults?.cliBackends ?? {};

181228

const nextCfg = {

182229

...cfg,

230+

...(schemaProbePluginPath

231+

? {

232+

plugins: {

233+

...cfg.plugins,

234+

load: {

235+

...cfg.plugins?.load,

236+

paths: [...(cfg.plugins?.load?.paths ?? []), schemaProbePluginPath],

237+

},

238+

entries: {

239+

...cfg.plugins?.entries,

240+

[MCP_SCHEMA_PROBE_PLUGIN_ID]: { enabled: true },

241+

},

242+

},

243+

}

244+

: {}),

183245

gateway: {

184246

mode: "local",

185247

...cfg.gateway,

@@ -387,6 +449,9 @@ describeLive("gateway live (cli backend)", () => {

387449

token,

388450

env: process.env,

389451

senderIsOwner: true,

452+

expectedSchemaProbeToolName: schemaProbePluginPath

453+

? MCP_SCHEMA_PROBE_TOOL_NAME

454+

: undefined,

390455

});

391456

logCliBackendLiveStep("cron-mcp-loopback-preflight:done");

392457

if (providerId === "codex-cli" && CLI_CI_SAFE_CODEX_CONFIG) {