Skip to content

Fix Native AOT list argument serialization - #1857

Open
kondv wants to merge 1 commit into
modelcontextprotocol:mainfrom
kondv:dev/kondv/native-aot-list-arguments
Open

Fix Native AOT list argument serialization#1857
kondv wants to merge 1 commit into
modelcontextprotocol:mainfrom
kondv:dev/kondv/native-aot-list-arguments

Conversation

@kondv

@kondv kondv commented Sep 7, 2026

Copy link
Copy Markdown

Summary

  • Register source-generated JSON metadata for the List<object> argument shape used by McpClientTool
  • Extend the Native AOT compatibility app to invoke a discovered array-parameter tool with populated and empty lists

Fixes #1846

Testing

  • Release build: 0 warnings and 0 errors
  • Full non-manual suite: 11,042 passed, 382 skipped, 0 failed
  • Repository Native AOT compatibility executable: Success!
  • Fresh external consumer using only locally packed MCP packages: managed execution Consumer Success!
  • The same package consumer published as Native AOT: Consumer Success!

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.

Serialization exception when invoking a tool with an array parameter

1 participant