Skip to content

Support normalized visual capture bridge metadata#104

Draft
wenyue wants to merge 1 commit into
Arenukvern:mainfrom
wenyue:agent/visual-capture-supported-kinds-parameters
Draft

Support normalized visual capture bridge metadata#104
wenyue wants to merge 1 commit into
Arenukvern:mainfrom
wenyue:agent/visual-capture-supported-kinds-parameters

Conversation

@wenyue

@wenyue wenyue commented Jul 9, 2026

Copy link
Copy Markdown

Summary

  • teach visual capture bridge detection to read supportedKinds from normalized resource parameters
  • keep existing support for top-level supportedKinds, payload supportedKinds, and list content
  • add a regression test for dynamic resource content shaped like { "parameters": { "supportedKinds": [...] } }

Root cause

Some app-side MCP toolkit resources return supportedKinds as regular result parameters. The dynamic resource gateway normalizes those values into JSON content under parameters, so the visual capture bridge can fail to detect an installed app bridge even though permission_status and the underlying screenshot extension are available.

Validation

  • dart format mcp_server_dart/lib/src/capabilities/visual_capture/visual_capture.dart mcp_server_dart/test/visual_capture_test.dart
  • Could not run dart test test/visual_capture_test.dart on this checkout because current local Dart is 3.11.5 while main requires >=3.12.0 <4.0.0.

I also validated the same regression shape against the local v3.1.1 build workspace before opening this PR.

@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 95c06bab-48e5-445e-b760-e96ac952c0fb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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