Skip to content

Conversation

@koic
Copy link
Member

@koic koic commented Dec 12, 2025

Motivation and Context

This fixes an issue where only one tool could be registered when tools shared the same name, even if they were in different namespaces. With this change, tools in different namespaces can be registered as separate tools, so multiple tools with the same name can be registered.

Fixes #197

How Has This Been Tested?

Regression and updating tests pass.

Breaking Changes

None.

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

This fixes an issue where only one tool could be registered when tools shared the same name,
even if they were in different namespaces. With this change, tools in different namespaces
can be registered as separate tools, so multiple tools with the same name can be registered.

Fixes modelcontextprotocol#197
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.

Tools with the same name in different modules override each other

1 participant