Skip to content

Conversation

@CodeWithKyrian
Copy link
Contributor

Renames ServerBuilder to Builder to remove redundant naming within the Mcp\Server namespace.

Motivation and Context

The "Server" prefix is redundant since the class is already in the Server namespace. This follows common PHP patterns and makes imports cleaner.

Breaking Changes

  • Import statements need to be updated from ServerBuilder to Builder
  • Type hints need to be updated accordingly

@CodeWithKyrian CodeWithKyrian changed the title refactor: rename ServerBuilder to Builder [Server] Rename ServerBuilder to Builder Sep 28, 2025
@CodeWithKyrian CodeWithKyrian force-pushed the refactor/rename-serverbuilder-to-builder branch from c35cd35 to 6a426a5 Compare September 28, 2025 04:44
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.

Did that once before was well, but was not sure - but looks like you're confirming that it makes sense :)

Remove redundant "Server" prefix since class is already in Server namespace.
@CodeWithKyrian CodeWithKyrian force-pushed the refactor/rename-serverbuilder-to-builder branch from 6a426a5 to 2d50e25 Compare September 28, 2025 16:58
@CodeWithKyrian CodeWithKyrian merged commit 3dcd2f7 into modelcontextprotocol:main Sep 28, 2025
10 checks passed
@CodeWithKyrian CodeWithKyrian deleted the refactor/rename-serverbuilder-to-builder branch September 28, 2025 16: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