From ffb28dbc52e085c7c80919637df52cb0bcf745c3 Mon Sep 17 00:00:00 2001 From: thibaud-leclere Date: Fri, 10 Apr 2026 16:15:36 +0200 Subject: [PATCH] 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) --- internal/mcpserver/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/mcpserver/server.go b/internal/mcpserver/server.go index 279c902..7349a45 100644 --- a/internal/mcpserver/server.go +++ b/internal/mcpserver/server.go @@ -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",