Skip to content

Add server "completions" capability#232

Merged
stephentoub merged 2 commits intomodelcontextprotocol:mainfrom
stephentoub:completioncapability
Apr 7, 2025
Merged

Add server "completions" capability#232
stephentoub merged 2 commits intomodelcontextprotocol:mainfrom
stephentoub:completioncapability

Conversation

@stephentoub
Copy link
Copy Markdown
Contributor

The latest spec added a completions capability, subsuming the already existing completions/complete request method. This PR adds that capability type and moves/renames the existing handler to be exposed on that capability, as we've done with other capabilities.

No code changes, just moving each type to its own file.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 21 out of 21 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

src/ModelContextProtocol/Server/McpServerHandlers.cs:46

  • [nitpick] Consider updating the comment to avoid the repetitive phrase 'completion complete'. For example, change it to 'Gets or sets the handler for completion requests.'
/// Gets or sets the handler for completion complete requests.

Copy link
Copy Markdown
Contributor

@halter73 halter73 left a comment

Choose a reason for hiding this comment

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

I'm a big fan of splitting up Capabilities.cs

@stephentoub stephentoub merged commit 82510d5 into modelcontextprotocol:main Apr 7, 2025
8 checks passed
@stephentoub stephentoub deleted the completioncapability branch April 7, 2025 20:59
@jeffhandley jeffhandley added the breaking-change This issue or PR introduces a breaking change label Feb 20, 2026
@jeffhandley
Copy link
Copy Markdown
Contributor

Adding the breaking-change label retroactively during release notes revision.

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

Labels

breaking-change This issue or PR introduces a breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants