You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MCP tools that return string[] get different schema from SomethingElse[] #698
A tool that returns an array of things should have a consistent schema for the array itself, leaving the changes to only the type of thing being returned.
When I call a method that returns Animal[], this is the result:
[McpServerToolType]publicclassTimeTool{[McpServerTool,Description("Gets a list of interesting animals.")]publicstaticAnimal[]GetAnimals(IMcpServerserver,CancellationTokencancellationToken){return[newAnimal("Bear",500),newAnimal("Elephant",6000)];}[McpServerTool,Description("Gets a list of interesting animals.")]publicstaticstring[]GetAnimalStrings(IMcpServerserver,CancellationTokencancellationToken){return["Bear","Elephant"];}publicrecordAnimal(stringName,intWeight);}
Activity