pub fn tool_name_to_subcommand(tool_name: &str) -> StringExpand description
Convert a snake_case or camelCase MCP tool name to a kebab-case CLI subcommand.
§Rules
- Insert a hyphen before each uppercase-to-lowercase camelCase transition.
- Replace all underscores with hyphens.
- Lowercase the entire result.
§Examples
| Input | Output |
|---|---|
get_confluence_page | get-confluence-page |
getConfluencePage | get-confluence-page |
createJiraIssue | create-jira-issue |
fetch | fetch |
getjiraissue | getjiraissue |