Skip to content

Conversation

@CodeWithKyrian
Copy link
Contributor

This PR renames the static method Server::make() to Server::builder() for better semantic clarity.

Why this change:

The make() method is ambiguous and could imply creating a server directly, but builder() clearly indicates you're getting a builder object, not a server instance. Besides, it has a more intuitive flow as Server::builder()->setLogger()->build() reads naturally.

Changes:

  • Renamed Server::make() to Server::builder()
  • Updated all examples and documentation to use the new method name

Copy link
Member

@chr-hertel chr-hertel left a comment

Choose a reason for hiding this comment

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

Yes please :)

@CodeWithKyrian CodeWithKyrian merged commit 38441b8 into modelcontextprotocol:main Sep 28, 2025
10 checks passed
@CodeWithKyrian CodeWithKyrian deleted the refactor/rename-server-make-to-builder branch September 28, 2025 16:51
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