Skip to content

[MCPSDK] Make content an array to match the MCP spec #171

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

Merged

Conversation

TomHart
Copy link

@TomHart TomHart commented Jul 20, 2025

Q A
Bug fix? yes
New feature? no
Docs? no
Issues Fix #123
License MIT

Force content in \Symfony\AI\McpSdk\Server\RequestHandler\ToolCallHandler to be an array to match the spec

@TomHart TomHart changed the title Make content an array to match the MCP spec [MCPSDK] Make content an array to match the MCP spec Jul 20, 2025
@chr-hertel chr-hertel added the MCP SDK Issues & PRs about the MCP SDK label Jul 20, 2025
Copy link
Contributor

@chr-hertel chr-hertel left a comment

Choose a reason for hiding this comment

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

Yes, this fixes it 👍

@chr-hertel chr-hertel added the Bug Something isn't working label Jul 21, 2025
@chr-hertel
Copy link
Contributor

Thank you @TomHart.

@chr-hertel chr-hertel merged commit ec0b74a into symfony:main Jul 21, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working MCP SDK Issues & PRs about the MCP SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expected array, received object error in PHPStorm when following the MCP example tool
3 participants