Skip to content

Truncate tool names to 50 characters#14

Merged
emily-curry merged 4 commits into
mainfrom
emily/tool-name-truncation
Jun 4, 2026
Merged

Truncate tool names to 50 characters#14
emily-curry merged 4 commits into
mainfrom
emily/tool-name-truncation

Conversation

@emily-curry

Copy link
Copy Markdown
Member

This change cuts down on the length of generated tool names, to ensure they stay far below the 64 character limit.

Fixes #13.

@another-yijiao another-yijiao left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, didn't test locally.

Comment thread src/parser.ts
Some clients add a prefix to tool names such as "doppler:", and any
tools with computed names > 64 characters are ignored. This change helps
mitigate that issue for those clients.
This also removes the explicit pnpm version from workflows, since it's
not required when packageManager is set in package.json
@emily-curry emily-curry force-pushed the emily/tool-name-truncation branch from 044aa67 to 2684ef4 Compare June 4, 2026 20:04
@emily-curry emily-curry merged commit f3b76a9 into main Jun 4, 2026
7 checks passed
@johnsykim

Copy link
Copy Markdown

Thanks for addressing #13! I tested it out and the message no longer appears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Tool names exceed client length limits when API paths repeat the singular resource segment before {slug}

3 participants