Skip to content

mcp: strip internal microclaw keys from forwarded args#195

Merged
everettjf merged 1 commit intomicroclaw:mainfrom
tdonovic:codex/mcp-strip-internal-keys
Mar 6, 2026
Merged

mcp: strip internal microclaw keys from forwarded args#195
everettjf merged 1 commit intomicroclaw:mainfrom
tdonovic:codex/mcp-strip-internal-keys

Conversation

@tdonovic
Copy link
Contributor

@tdonovic tdonovic commented Mar 6, 2026

Summary

  • sync branch onto latest upstream/main (includes MCP Rust-lib migration and other upstream commits)
  • strip internal __microclaw_* keys before forwarding MCP tool arguments
  • add a unit test covering internal-key stripping

Why

MicroClaw injects internal auth/context keys (for example __microclaw_auth) into tool inputs. Some MCP servers validate args strictly and fail when unknown fields are present.

Validation

  • cargo test -q mcp::tests::test_
  • cargo build --release

@everettjf
Copy link
Contributor

Thank you

@everettjf everettjf merged commit 5033d7d into microclaw:main Mar 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants