fix: add required inputSchema to list_mailboxes tool

The MCP spec requires inputSchema on every tool. With the omitempty
JSON tag, the nil field was omitted entirely, causing clients to
reject the tools/list response and report 0 tools.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
thibaud-leclere 2026-04-10 16:15:36 +02:00
parent f10b797640
commit ffb28dbc52

View file

@ -150,6 +150,9 @@ func (s Server) Tools() []Tool {
{
Name: "list_mailboxes",
Description: "List visible IMAP mailboxes for the configured account.",
InputSchema: map[string]any{
"type": "object",
},
},
{
Name: "list_messages",