email-mcp/internal/cli
thibaud-leclere 92fc30cb2d fix: tolerate unknown fields in MCP protocol messages and defer credential loading
Claude Code sends extra fields (e.g. "title") in initialize params that
caused the server to reject the request due to DisallowUnknownFields.
Use lenient JSON decoding for protocol messages while keeping strict
validation for tool arguments. Also defer KWallet credential loading
from server startup to tool invocation time, and negotiate protocol
versions per MCP spec instead of rejecting unknown ones.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 15:46:53 +02:00
..
app.go feat: wire email mcp application graph 2026-04-10 12:21:58 +02:00
app_task6_test.go fix: harden kwallet task 6 error handling 2026-04-10 10:58:51 +02:00
app_task9_test.go feat: add mcp server runner and tool handlers 2026-04-10 11:59:41 +02:00
app_test.go feat: wire email mcp application graph 2026-04-10 12:21:58 +02:00
entrypoint.go test: cover cli entrypoint contract 2026-04-10 12:39:10 +02:00
integration_test.go fix: tolerate unknown fields in MCP protocol messages and defer credential loading 2026-04-10 15:46:53 +02:00
setup.go fix: wire default app and hide setup password input 2026-04-10 10:17:38 +02:00
setup_test.go fix: wire default app and hide setup password input 2026-04-10 10:17:38 +02:00
wire.go feat: wire email mcp application graph 2026-04-10 12:21:58 +02:00
wire_test.go feat: wire email mcp application graph 2026-04-10 12:21:58 +02:00