Skip to content

Conversation

@kfischer-okarin
Copy link
Contributor

I added a constructor parameter to the Server class to specify a server version.

Motivation and Context

Currently the server uses the gem version as version returned to the client. But the gem is just the framework used to built the actual server.

How Has This Been Tested?

I tried it out a dummy server out with the official mcp inspector.

Breaking Changes

It's an additional optional argument so it should not break anything.

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

Additional context

@kfischer-okarin kfischer-okarin changed the title Specify server version Allow specifying the server version May 13, 2025
@topherbullock
Copy link
Contributor

Thanks @kfischer-okarin !

@topherbullock topherbullock merged commit e89af18 into modelcontextprotocol:main May 20, 2025
4 checks passed
@kfischer-okarin kfischer-okarin deleted the specify-server-version branch May 21, 2025 09:04
@koic koic mentioned this pull request Jun 10, 2025
10 tasks
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