LearnNewsExamplesServices
Frontmatter
id7518
titleMake toolService resilient to server-prefixed tool names
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 17, 2025, 12:46 PM
updatedAtOct 17, 2025, 12:48 PM
githubUrlhttps://github.com/neomjs/neo/issues/7518
authortobiu
commentsCount0
parentIssue7501
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 17, 2025, 12:48 PM

Make toolService resilient to server-prefixed tool names

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 17, 2025, 12:46 PM

The Gemini CLI disambiguates tool name collisions from different MCP servers by prefixing the tool name with the server name (e.g., neo-knowledge-base__healthcheck). This causes callTool to fail, as it looks for the exact prefixed name in the serviceMapping.

This ticket is to make the callTool function in the shared toolService.mjs resilient to this behavior.

Acceptance Criteria

  1. The callTool function in ai/mcp/server/toolService.mjs is modified.
  2. The function checks if the incoming toolName contains __.
  3. If it does, it uses the substring after the last __ as the effective tool name for lookup.
  4. Tool calls with prefixed names now execute correctly.
  5. Tool calls with non-prefixed names continue to work as before.
tobiu assigned to @tobiu on Oct 17, 2025, 12:46 PM
tobiu added parent issue #7501 on Oct 17, 2025, 12:46 PM
tobiu added the enhancement label on Oct 17, 2025, 12:46 PM
tobiu added the ai label on Oct 17, 2025, 12:46 PM
tobiu referenced in commit af0aeb8 - "Make toolService resilient to server-prefixed tool names #7518" on Oct 17, 2025, 12:48 PM
tobiu closed this issue on Oct 17, 2025, 12:48 PM