Skip to content

fix(ui): advertise get_me as an app via _meta.ui.visibility#2503

Merged
SamMorrowDrums merged 2 commits into
mainfrom
fix-get-me-ui-visibility
May 19, 2026
Merged

fix(ui): advertise get_me as an app via _meta.ui.visibility#2503
SamMorrowDrums merged 2 commits into
mainfrom
fix-get-me-ui-visibility

Conversation

@SamMorrowDrums
Copy link
Copy Markdown
Collaborator

Bug

The get_me tool wires an MCP App UI resource (ui://github-mcp-server/get-me) via _meta.ui.resourceUri, but the _meta.ui map was missing the visibility array. MCP clients that key off visibility to decide whether to render the resource as an app (e.g. VS Code's MCP Apps renderer) silently skip get_me as a result.

Fix

Add visibility: ["model", "app"] to get_me's _meta.ui, matching the existing UI-enabled tools (issue_write, create_pull_request).

Changes

  • pkg/github/context_tools.go — one-line addition to the _meta.ui map literal in GetMe.
  • pkg/github/__toolsnaps__/get_me.snap — regenerated via UPDATE_TOOLSNAPS=true go test ./pkg/github -run 'Test_GetMe$'.

script/lint and script/test both pass.

The get_me tool wires a UI resource via _meta.ui.resourceUri but was missing the visibility array. MCP clients that key off visibility to decide whether to render a tool as an app (e.g. VS Code's MCP Apps renderer) silently skipped get_me as a result.

Add visibility: ["model", "app"] to match the other UI-enabled tools (issue_write, create_pull_request).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@SamMorrowDrums SamMorrowDrums requested a review from a team as a code owner May 19, 2026 09:54
Copilot AI review requested due to automatic review settings May 19, 2026 09:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes MCP client UI rendering for the get_me tool by adding the missing _meta.ui.visibility field so clients that rely on visibility can surface the associated UI resource as an app.

Changes:

  • Add _meta.ui.visibility: ["model", "app"] to get_me’s tool metadata in pkg/github/context_tools.go.
  • Regenerate the get_me tool schema snapshot to reflect the updated _meta.ui block.
Show a summary per file
File Description
pkg/github/context_tools.go Adds the visibility array to get_me’s _meta.ui metadata alongside resourceUri.
pkg/github/toolsnaps/get_me.snap Updates the toolsnap JSON to include _meta.ui.visibility for get_me.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

Copy link
Copy Markdown
Contributor

@mattdholloway mattdholloway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@SamMorrowDrums SamMorrowDrums merged commit f21dcd3 into main May 19, 2026
18 checks passed
@SamMorrowDrums SamMorrowDrums deleted the fix-get-me-ui-visibility branch May 19, 2026 10:19
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.

3 participants