Skip to content

Conversation

@mcowger
Copy link
Contributor

@mcowger mcowger commented Oct 24, 2025

Context

About half the tool definitions (which were initially generated in an automated fashion) had mild inconsistencies in their text definitions vs their required/null options.

This PR updates these definitions to be more accurate, hopefully leading to more consistent tool call behavior.

…separator

- Add helper functions to detect and parse dynamic MCP tool names
- Normalize dynamic tools to standard 'use_mcp_tool' format
- Use triple underscores (___) as separator to allow underscores in tool names
- Update tool name generation in mcp_server.ts
- Add comprehensive test coverage for dynamic tool parsing
- Extract toolInputProps and convert to JSON string for MCP server compatibility
…ons in text, and align required fields to disallow 'null'.
@changeset-bot
Copy link

changeset-bot bot commented Oct 24, 2025

🦋 Changeset detected

Latest commit: 2d52c4e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kilo-code Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

type: "array",
description:
"Optional list of 2-4 suggested responses; each suggestion must be a complete, actionable answer and may include a mode switch",
"Required list of 2-4 suggested responses; each suggestion must be a complete, actionable answer and may include a mode switch",
Copy link
Collaborator

Choose a reason for hiding this comment

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

This doesn't match the XML description

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It doesn't and thats intentional. Asking a question without offering responses suggestions seems like an error, and I believe is part of the cause of some of the Promise rejections.

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.

2 participants