Skip to content

completions capability is advertised but completion/complete is not implemented #269

Closed

Description

@mcollina

handleInitialize passes the configured capabilities through, so capabilities: { completions: {} } is advertised, but handleRequest has no completion/complete case: the call returns -32601. Spec: "Both parties SHOULD respect capability negotiation".

Repro

Register with capabilities: { prompts: {}, completions: {} } → initialize returns {"prompts":{},"completions":{}}; completion/complete → -32601.

Suggested fix

Strip completions from the advertised capabilities until the method is implemented (or implement it with a handler decorator).

Found during the round-7 review of #170; also on main.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions