picoclaw/pkg/mcp
Andy Lo-A-Foe 07422a5403
fix(mcp): address PR review - clone maps, validate headers, add tests
- Clone header maps in WithMCPHeaders/MCPHeaders to prevent concurrent
  mutation (maps are shared across goroutines via context).
- Trim whitespace from header names extracted from InboundContext.Raw
  to prevent invalid HTTP header names.
- Add unit tests for headerTransport dynamic header injection:
  dynamic-only, dynamic-overrides-static, and no-dynamic passthrough.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-11 09:55:38 +02:00
..
events.go fix(events): keep runtime observers non-blocking 2026-04-27 13:09:03 +08:00
isolated_command_transport.go Feat/support isolation (#2423) 2026-04-08 18:15:42 +08:00
manager.go feat(mcp): support per-request dynamic headers from channel context 2026-05-11 09:55:38 +02:00
manager_test.go fix(mcp): address PR review - clone maps, validate headers, add tests 2026-05-11 09:55:38 +02:00