Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 15, 2025

Implements the description field for the Implementation type as specified in modelcontextprotocol/modelcontextprotocol#1817.

Changes

  • Protocol: Added optional Description property to Implementation class following the same pattern as Tool, Prompt, and Resource types
  • Tests: Updated ImplementationTests to verify JSON serialization/deserialization of the Description field
  • Integration: Updated McpClientTests to verify Description propagates correctly in both directions through the client-server handshake:
    • CanReadServerInfo test validates server's Description is accessible from the client
    • ServerCanReadClientInfo test validates client's Description is accessible from the server

Example

var serverInfo = new Implementation
{
    Name = "my-server",
    Version = "1.0.0",
    Description = "Provides access to customer database and analytics tools"
};

// Serializes to:
// {"name":"my-server","version":"1.0.0","description":"Provides access to..."}

The property is optional and nullable, maintaining backward compatibility with existing implementations.

> [!WARNING]
>
>

Original prompt

Add the Description property as spec'd in https://github.com/modelcontextprotocol/modelcontextprotocol/pull/1817/files to the Implementation client and server types. Update existing tests accordingly to ensure that such descriptions are propagated between client and server as expected.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Description property to Implementation client and server types Add Description property to Implementation type per MCP spec Nov 15, 2025
Copilot AI requested a review from stephentoub November 15, 2025 17:25
Copilot finished work on behalf of stephentoub November 15, 2025 17:25
@stephentoub stephentoub marked this pull request as ready for review November 15, 2025 23:42
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
Copilot AI requested a review from stephentoub November 15, 2025 23:53
Copilot finished work on behalf of stephentoub November 15, 2025 23:53
@stephentoub stephentoub merged commit 00bb5b2 into main Nov 17, 2025
16 of 17 checks passed
@stephentoub stephentoub deleted the copilot/add-description-property-client-server branch November 17, 2025 15:42
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.

3 participants