Skip to content

Conversation

AsadiR
Copy link

@AsadiR AsadiR commented Jun 3, 2025

[x] fix

Relevant Issues

resolves #3938

What is in this change?

This pull request fixes a bug where Anthropic agents would crash when calling MCP server endpoints that have nested parameters in their input_schema. With this change, the agent now correctly handles nested input parameters and does not crash. The logic for parsing input_schema was updated to support nested objects.

Additional Information

Tested locally on both flat and nested parameter endpoints. No changes were made to output schema handling. Lint and Docker build pass.

Developer Validations

[x] I ran yarn lint from the root of the repo & committed changes
[x] I have tested my code functionality

@timothycarambat timothycarambat added the PR:needs review Needs review by core team label Jun 3, 2025
@shatfield4 shatfield4 added blocked and removed PR:needs review Needs review by core team labels Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: MCP servers with nested params in input_schema crash an Anthropic agent
3 participants