From fa9ea81ab851f7935b876411121f8f7cfda9e41b Mon Sep 17 00:00:00 2001 From: "elvandlie@gmail.com" Date: Sat, 9 May 2026 21:51:08 +0700 Subject: [PATCH] mcp: set HasPrompts to false since no prompts are registered The MCP server declares HasPrompts: true in its capabilities but no prompts are registered. Per the MCP specification, clients may call prompts/list when this capability is advertised and expect results. Set HasPrompts to false to accurately reflect the server capabilities. Fixes #3689 Signed-off-by: elvandlie@gmail.com --- pkg/mcp/mcp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/mcp/mcp.go b/pkg/mcp/mcp.go index b43715ee34..bee26df3c9 100644 --- a/pkg/mcp/mcp.go +++ b/pkg/mcp/mcp.go @@ -81,7 +81,7 @@ func New(options ...Option) *Server { Version: version}, &mcp.ServerOptions{ Instructions: instructions(s.readonly), - HasPrompts: true, + HasPrompts: false, HasResources: true, HasTools: true, InitializedHandler: func(ctx context.Context, _ *mcp.InitializedRequest) { s.OnInit(ctx) },