Skip to content

fix(mcp): sanitize unsafe tool descriptions#253

Open
Gujiassh wants to merge 1 commit intomondaycom:masterfrom
Gujiassh:fix/sanitize-tool-descriptions
Open

fix(mcp): sanitize unsafe tool descriptions#253
Gujiassh wants to merge 1 commit intomondaycom:masterfrom
Gujiassh:fix/sanitize-tool-descriptions

Conversation

@Gujiassh
Copy link

Summary

  • sanitize unsafe characters in exported MCP tool descriptions so downstream clients that reject backticks and semicolons can still import the monday catalog
  • keep the fix scoped to the MCP toolkit export layer instead of rewriting individual tool descriptions at the source
  • add focused toolkit regressions covering sanitized descriptions for both getTools() and getToolsForMcp()

Validation

  • cd packages/agent-toolkit && npx jest src/mcp/toolkit.test.ts --runInBand
  • cd packages/agent-toolkit && npx eslint src/mcp/toolkit.ts src/mcp/toolkit.test.ts --max-warnings=0
  • cd packages/agent-toolkit && yarn build

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
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