From a1c610464a60d09eedb9dbc359ddc70be1e9f9fd Mon Sep 17 00:00:00 2001 From: Sam Morrow Date: Tue, 19 May 2026 11:54:02 +0200 Subject: [PATCH] fix(ui): advertise get_me as an app via _meta.ui.visibility 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> --- pkg/github/__toolsnaps__/get_me.snap | 6 +++++- pkg/github/context_tools.go | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/github/__toolsnaps__/get_me.snap b/pkg/github/__toolsnaps__/get_me.snap index b451b49de6..6f287df092 100644 --- a/pkg/github/__toolsnaps__/get_me.snap +++ b/pkg/github/__toolsnaps__/get_me.snap @@ -1,7 +1,11 @@ { "_meta": { "ui": { - "resourceUri": "ui://github-mcp-server/get-me" + "resourceUri": "ui://github-mcp-server/get-me", + "visibility": [ + "model", + "app" + ] } }, "annotations": { diff --git a/pkg/github/context_tools.go b/pkg/github/context_tools.go index 9f84c02118..191e562793 100644 --- a/pkg/github/context_tools.go +++ b/pkg/github/context_tools.go @@ -58,6 +58,7 @@ func GetMe(t translations.TranslationHelperFunc) inventory.ServerTool { Meta: mcp.Meta{ "ui": map[string]any{ "resourceUri": GetMeUIResourceURI, + "visibility": []string{"model", "app"}, }, }, },