Skip to content

Add MCP Apps to NativeAOT coverage - #1711

Merged
jeffhandley merged 3 commits into
modelcontextprotocol:mainfrom
lntutor:test/apps-native-aot-1659
Jul 26, 2026
Merged

Add MCP Apps to NativeAOT coverage#1711
jeffhandley merged 3 commits into
modelcontextprotocol:mainfrom
lntutor:test/apps-native-aot-1659

Conversation

@lntutor

@lntutor lntutor commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • reference and root ModelContextProtocol.Extensions.Apps in the NativeAOT test application
  • register an [McpAppUi] tool through WithTools<T>().WithMcpApps() so the extension cannot be trimmed as unused
  • verify _meta.ui survives a client/server ListToolsAsync() round trip before invoking the tool

Testing

  • LIBRARY_PATH=/opt/homebrew/opt/openssl@3/lib:/opt/homebrew/opt/brotli/lib make test-aot CONFIGURATION=Release
  • published NativeAOT executable completed with Success!

Fixes #1659

@jeffhandley
jeffhandley merged commit dfb2205 into modelcontextprotocol:main Jul 26, 2026
10 checks passed
@jeffhandley

Copy link
Copy Markdown
Contributor

Thanks for this PR, @lntutor!

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.

Add NativeAOT publish coverage for ModelContextProtocol.Extensions.Apps

2 participants