Skip to content

fix(mcp): register mint and pull under their documented tool names - #81

Open
RobinOppenstam wants to merge 1 commit into
emergent-wisdom:mainfrom
RobinOppenstam:fix/mcp-public-tool-names
Open

fix(mcp): register mint and pull under their documented tool names#81
RobinOppenstam wants to merge 1 commit into
emergent-wisdom:mainfrom
RobinOppenstam:fix/mcp-public-tool-names

Conversation

@RobinOppenstam

Copy link
Copy Markdown
Contributor

What

Register the conditionally-exposed mint/pull MCP tools with explicit public names, so they appear as sema_mint/sema_pull instead of _sema_mint/_sema_pull.

Why

FastMCP derives a tool's name from the wrapped function's __name__. The conditional registrations wrap the underscore-prefixed functions directly, so the server currently advertises _sema_mint/_sema_pull — while install.md, the server's own workflow instructions, and every published client snippet document sema_mint/sema_pull. Clients calling the documented names get Unknown tool. Found while driving the server end-to-end over stdio.

How to test

  • pytest — full suite passes (409 passed locally on 3.12).
  • Empirical: initialize the MCP server over stdio and call tools/list — the tool names include sema_mint and sema_pull, with no underscore-prefixed leftovers, and tools/call on sema_mint works.

🤖 Generated with Claude Code

FastMCP derives the tool name from the function's __name__, so the
conditional registrations exposed _sema_mint/_sema_pull while install.md
and the server instructions document sema_mint/sema_pull. Clients calling
the documented names get 'Unknown tool'. Register with explicit names.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant