Skip to content

mcp: HasPrompts capability advertised but no prompts registered #3689

Closed

Description

@Elvand-Lie

Bug

The MCP server declares HasPrompts: true in its capabilities (pkg/mcp/mcp.go, line 84), but no prompts are registered anywhere in the codebase:

&mcp.ServerOptions{
    Instructions:       instructions(s.readonly),
    HasPrompts:         true,   // no prompts are registered
    HasResources:       true,
    HasTools:           true,
    InitializedHandler: ...,
}

Per the MCP specification, when a server declares prompts capability, clients may call prompts/list and expect results.

Impact

  • MCP clients that enumerate prompts will get an empty list, which is misleading
  • Some clients may present empty prompt UI or make unnecessary protocol round-trips
  • Incorrectly signals to MCP clients that the server supports a feature it does not

Fix

Set HasPrompts to false until prompts are actually implemented:

 &mcp.ServerOptions{
     Instructions:       instructions(s.readonly),
-    HasPrompts:         true,
+    HasPrompts:         false,
     HasResources:       true,
     HasTools:           true,
     InitializedHandler: ...,
 }

Activity

  1. Elvand-Lie commented on May 9, 2026

    @Elvand-Lie
    ContributorAuthor

    /assign

  2. moved this from Active to Ready in Functions Traigeon May 11, 2026
  3. lkingland commented on May 16, 2026

    @lkingland
    Member

    Duplicate of #3734. PR #3737 there adds an actual prompt instead of flipping the flag — closing this in favor of that path.

  4. moved this from Planning to Done in Functions Traigeon May 18, 2026
  5. closed this as completedby moving to Done in Functions Traigeon May 18, 2026
  6. moved this from Planning to Done in Functions Traigeon Jun 2, 2026
  7. closed this as completedby moving to Done in Functions Traigeon Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions