Skip to content

feat: add MCP Apps helper APIs and examples#74

Merged
leehack merged 5 commits intomainfrom
feature/mcp-apps-support
Feb 27, 2026
Merged

feat: add MCP Apps helper APIs and examples#74
leehack merged 5 commits intomainfrom
feature/mcp-apps-support

Conversation

@leehack
Copy link
Copy Markdown
Owner

@leehack leehack commented Feb 27, 2026

Summary

  • add first-class MCP Apps support with typed helpers and constants, including TypeScript-style server APIs (registerAppTool, registerAppResource, getUiCapability) and _meta.ui compatibility handling
  • preserve MCP Apps metadata across resources/resource contents and add list-level _meta support for registered resources/templates
  • add docs, examples, and tests for MCP Apps flows, and update CLI inspect to gracefully skip unsupported capability methods while advertising MCP Apps extension support

Testing

  • dart analyze
  • dart test
  • cd packages/mcp_dart_cli && dart analyze && dart test

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 27, 2026

Codecov Report

❌ Patch coverage is 90.44944% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.93%. Comparing base (e5e4945) to head (1ed28a7).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
lib/src/types/mcp_ui.dart 89.43% 13 Missing ⚠️
lib/src/server/mcp_server.dart 25.00% 3 Missing ⚠️
lib/src/server/mcp_ui.dart 97.14% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #74      +/-   ##
==========================================
+ Coverage   78.49%   78.93%   +0.43%     
==========================================
  Files          40       42       +2     
  Lines        5381     5559     +178     
==========================================
+ Hits         4224     4388     +164     
- Misses       1157     1171      +14     
Flag Coverage Δ
unittests 78.93% <90.44%> (+0.43%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@leehack leehack force-pushed the feature/mcp-apps-support branch from f764c98 to 95c8278 Compare February 27, 2026 18:45
@leehack leehack force-pushed the feature/mcp-apps-support branch from a86860d to eb63daf Compare February 27, 2026 20:17
@leehack leehack merged commit 5a2d193 into main Feb 27, 2026
4 checks passed
@leehack leehack deleted the feature/mcp-apps-support branch February 27, 2026 20:30
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.

1 participant