email-mcp/internal/mcpserver
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
..
server.go fix: tolerate unknown fields in MCP protocol messages and defer credential loading 2026-04-10 15:46:53 +02:00
server_test.go fix: tolerate unknown fields in MCP protocol messages and defer credential loading 2026-04-10 15:46:53 +02:00