picoclaw/pkg/tools/shared
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
..
base.go fix(mcp): address PR review - clone maps, validate headers, add tests 2026-05-11 09:55:38 +02:00
result.go fix(tools): centralize shared LLM note constants 2026-04-17 14:31:43 +08:00
types.go refactor(tools): reorganize tool packages and facades 2026-04-17 13:44:31 +08:00