Skip to content

Conversation

@rabi
Copy link
Contributor

@rabi rabi commented Dec 28, 2025

Summary

  • Add sanitize_js_identifier() to replace hyphens with underscores
  • Apply sanitization when exposing MCP tool names to JS environment
  • Add test case for hyphenated tool name transformation

Type of Change

  • Feature
  • Bug fix
  • Refactor / Code quality
  • Performance improvement
  • Documentation
  • Tests
  • Security fix
  • Build / Release
  • Other (specify below)

AI Assistance

  • This PR was created or reviewed with AI assistance

Testing

Unit tested and tested with mcp using tool names with hyphen.

…ifiers

- Add sanitize_js_identifier() to replace hyphens with underscores
- Apply sanitization when exposing MCP tool names to JS environment
- Add test case for hyphenated tool name transformation

Signed-off-by: rabi <[email protected]>
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