Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sanitize server names for passing into model tool calls #563

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

kalvinnchau
Copy link
Collaborator

sanitize the server name response from the MCP servers, this is propagated throughout the agent's usage and eventually into the tool call to the LLMs

a couple of the example servers use example-server/$NAME and that currently breaks goose the error is a Error: Request failed: 400 Bad Request and digging into it you eventually get a cryptic

"x-amzn-errortype": "ValidationException:http://internal.amazon.com/coral/com.amazon.bedrock/"

Both anthropic and openai have the same format:

The name of the tool. Must match the regex ^[a-zA-Z0-9_-]{1,64}$

note: this does not handle the tool names nor the char limit, will need to have a broader design

Copy link

github-actions bot commented Jan 9, 2025

Desktop App for this PR

The following build is available for testing:

The app is signed and notarized for macOS. After downloading, unzip the file and drag the Goose.app to your Applications folder.

This link is provided by nightly.link and will work even if you're not logged into GitHub.

Copy link
Collaborator

@baxen baxen left a comment

Choose a reason for hiding this comment

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

LGTM

@kalvinnchau kalvinnchau merged commit c3cf4ee into v1.0 Jan 9, 2025
6 checks passed
michaelneale added a commit that referenced this pull request Jan 9, 2025
* v1.0:
  feat: Implement a simplified reference agent and dev toolkit (#564)
  fix: sanitize server names for passing into model tool calls (#563)
  added a new mcp system + refactor to support it (#552)
  feat: port over nondeveloper system into mcp server (#561)
  fix: check server capability when client sends requests (#558)
  fix: update instructions (#557)
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