Skip to content

fix(client): gate completion/complete on the completions capability#846

Open
rea9r wants to merge 1 commit into
modelcontextprotocol:mainfrom
rea9r:fix/completion-completions-capability
Open

fix(client): gate completion/complete on the completions capability#846
rea9r wants to merge 1 commit into
modelcontextprotocol:mainfrom
rea9r:fix/completion-completions-capability

Conversation

@rea9r

@rea9r rea9r commented Jun 21, 2026

Copy link
Copy Markdown

Gate completion/complete on the server's completions capability instead of prompts.

closes #845

Motivation and Context

A server that declares completions but not prompts is currently rejected for completion. Details in #845.

How Has This Been Tested?

New ClientAssertCapabilityTest cases; they fail on main and pass with this change. apiCheck / ktlintCheck / detekt pass.

Breaking Changes

None.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

completion/complete is gated on the prompts capability instead of completions

1 participant