Skip to content

Add server "completions" capability #232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

stephentoub
Copy link
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
Contributor

@Copilot 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
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
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.

2 participants