Skip to content

fix(mcp): clear stale transport config#2277

Merged
btc69m979y-dotcom merged 1 commit into
release/2026.7.6from
fix/mcp-headers-update
Jul 6, 2026
Merged

fix(mcp): clear stale transport config#2277
btc69m979y-dotcom merged 1 commit into
release/2026.7.6from
fix/mcp-headers-update

Conversation

@btc69m979y-dotcom

Copy link
Copy Markdown
Collaborator

Summary

  • Normalize MCP server config by transport type so stale headers/env/args are cleared when editing or switching transport.
  • Send empty header/env/arg objects from the MCP form so clearing fields is persisted.
  • Add coverage for clearing stale MCP fields and syncing multiple remote headers to OpenClaw config.

Verification

  • npx eslint --ext ts,tsx --report-unused-disable-directives --max-warnings 0 src/main/mcp/mcpStore.ts src/main/mcp/mcpStore.test.ts src/renderer/components/mcp/McpServerFormModal.tsx src/main/libs/openclawConfigSync.runtime.test.ts
  • git diff --check

Notes

  • npm test -- mcpStore openclawConfigSync.runtime, npx vitest run mcpStore openclawConfigSync.runtime, and npm run compile:electron were blocked locally because node_modules/better-sqlite3/build/Release/better_sqlite3.node was locked by a running process / compiled for the Electron ABI while the Node test runner needed the Node ABI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant