Skip to content

Conversation

@jonator
Copy link
Contributor

@jonator jonator commented Jan 12, 2026

Summary

  • Update valid_name?/1 regex to permit hyphens in tool names
  • Enable integration with MCP servers like Notion that return hyphenated tool identifiers (e.g., notion-get-users, get-response)
  • Add dedicated test for MCP server tool name compatibility

Closes #322

Test plan

  • Existing tool tests pass
  • New test validates hyphenated MCP tool names work correctly
  • Names starting with hyphen are still rejected (e.g., -invalid)

🤖 Generated with Claude Code

jonator and others added 2 commits January 12, 2026 07:55
Update `valid_name?/1` regex to permit hyphens in tool names, enabling
integration with MCP servers like Notion that return hyphenated tool
identifiers (e.g., `notion-get-users`).

Closes agentjido#322

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Update regex to require hyphen to be followed by alphanumeric chars
- Add test case for trailing hyphen (invalid)
- Fix formatting issues
@mikehostetler mikehostetler merged commit 81a9333 into agentjido:main Jan 15, 2026
6 checks passed
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.

[Bug]: ReqLLM.Tool.valid_name is incompatible with hyphenated tool names

2 participants