-
Notifications
You must be signed in to change notification settings - Fork 235
Tool with string[] parameter causes serialization-related exception during initialization #287
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
Comments
Is that application publishing for Native AOT? |
@stephentoub - Yes, I was just told it's a Native AOT COM server. Thanks. |
In AOT you need to source generate for every type being used in the signature of your tool, even for seemingly trivial types like |
Thanks for the help, Stephen & Eirik. This is how I ended up avoiding the issue:
Then I use:
|
I created an MCP server in a console app that worked just fine, with version 0.1.0-preview.7.
Then I moved my code inside some existing application and now get an exception when Claude loads my server:
This is apparently happening because one of my tools includes string[] parameters:
Any idea what could be causing this and how to address it? Thank you!
The text was updated successfully, but these errors were encountered: