Skip to content

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

Merged
devcrocod merged 3 commits into
modelcontextprotocol:mainfrom
rea9r:fix/completion-completions-capability
Jun 29, 2026
Merged

fix(client): gate completion/complete on the completions capability#846
devcrocod merged 3 commits into
modelcontextprotocol:mainfrom
rea9r:fix/completion-completions-capability

Conversation

@rea9r

@rea9r rea9r commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

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

@devcrocod devcrocod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for contributing!
lgtm

@devcrocod
devcrocod merged commit 19db4b0 into modelcontextprotocol:main Jun 29, 2026
19 checks passed
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

2 participants