feat(time): add time_ prefix to tool names for consistency#3274
feat(time): add time_ prefix to tool names for consistency#3274Sean-Kenneth-Doherty wants to merge 1 commit intomodelcontextprotocol:mainfrom
Conversation
Adds 'time_' prefix to the Time MCP server tool names: - get_current_time → time_get_current - convert_time → time_convert This follows the naming convention used by other MCP servers (e.g., git_status, git_commit) and makes it easier to identify related tools when multiple MCP servers are registered. Closes modelcontextprotocol#3201
|
@claude review |
|
Claude finished @cliffhall's task in 2m 9s —— View job PR Review: feat(time): add time_ prefix to tool names for consistency
SummaryThe implementation is technically correct and the motivation is reasonable, but there are significant concerns about naming convention consistency and the specific names chosen. Naming Convention AnalysisThe PR cites the git server's
The git server is the only server in this repo with a server-name prefix. The other three multi-tool servers (filesystem, memory) use unprefixed, verb-first names. This PR would make the time server follow the git server pattern while the rest of the repo stays with the verb-first convention. Concerns1. Name loses descriptive clarity ( The original name If following the git pattern strictly, 2. Inconsistency with the rest of the repo The filesystem and memory servers — both officially maintained in this repo — do not use server-name prefixes. Merging this would make the time server diverge from those conventions without a broader effort to standardize across all servers. The PR references issue #3201 but that issue doesn't appear to establish an official policy. 3. Breaking change cost vs. benefit This is a breaking change for all existing users, integrations, and configurations referencing What's Correct
Minor Pre-existing Issues (Not Introduced by This PR)
RecommendationRequest changes. The motivation (disambiguation in multi-server setups) is valid, but before merging:
|
Summary
Adds a
time_prefix to the Time MCP server tool names for consistency with other MCP servers:get_current_time→time_get_currentconvert_time→time_convertMotivation
This follows the naming convention used by other MCP servers (e.g.,
git_status,git_commit,git_diff) and makes it easier to identify related tools when multiple MCP servers are registered with a client.As noted in issue #3201, users integrating multiple MCP servers see tool names like:
MCP_DOCKER_convert_timeMCP_DOCKER_get_current_timeWith this change, the tools become:
MCP_DOCKER_time_get_currentMCP_DOCKER_time_convertThis makes it immediately clear these tools belong to the Time server.
Changes
server.pyBreaking Change Notice
get_current_time,convert_time) will need to be updated.Closes #3201