Repository navigation
Advertise the MCP Apps extension only when the server serves an app - #5062
Conversation
🤖 Generated with Pi (deepseek-flash)
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e474dcc808
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Generated with OpenAI Codex.
|
@zzstoatzz Merged current Could you approve the fork workflow runs and review this update? The new Tests, Run static analysis, and Downstream smoke runs are waiting for approval. GitHub denied my formal reviewer request, so I'm asking here instead. @codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@zzstoatzz The Codex review on The branch is conflict-free, the original transform-related finding is fixed and resolved, and local verification passed: 9,907 tests passed (14 skipped, 16 expected failures), plus all configured static hooks. Upstream CI has not run on this revision yet. |
|
A plain server does stop advertising Apps, so the main fix works. I did find one gap though. I connected to a server with no apps, then called a tool that registered one. The same client could list the new tool and read its The description says hiding a real app is worse than advertising a possible one, and this hides one. Registering the extension explicitly does keep it advertised, so maybe a line in the docs is enough. Tested on |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Revert "fix: preserve referenced schema definitions (#5588)" This reverts commit 5f1d152. * Revert "fix(server): rebuild tool argument errors instead of echoing pydantic's (#6107)" This reverts commit 8fba5f7. * Revert "Advertise the MCP Apps extension only when the server serves an app (#5062)" This reverts commit b89222b. * Revert "fix(tasks): retain results after tool removal (#5507)" This reverts commit 711575a. * Revert "fix(client): Prevent stale ClientGroup refreshes from replacing newer routes (#5543)" This reverts commit 365d5d2. * Revert "fix(prompts): honor field aliases when rendering prompts (#5836)" This reverts commit a450fd8. * Revert "Stop FastMCP callable caches from retaining dropped tools (#6147)" This reverts commit 713f247. * Revert "feat(auth): Add KeystoneTokenVerifier (#6264)" This reverts commit c33f3de. * Revert "fix(json-schema): keep x-unsupported-pattern when a format is set (#5731)" This reverts commit dc9849d. * Revert "Roll back the tool stamp when a tool registration is rejected (#5798)" This reverts commit d6566c5. * Revert "fix(server): validate cursors when pagination is disabled (#6045)" This reverts commit 4917bee. * Revert "Keep constraints on scalar schema references (#6041)" This reverts commit e5176c9.
Every FastMCP server declared
io.modelcontextprotocol/uiincapabilities.extensions, whether or not it had an app to render. This change omits that declaration for plain servers, while retaining it for components carrying_meta.ui,ui://resources and resource templates, and resources using the MCP Apps MIME type.Providers answer a synchronous
may_serve_appsquery without I/O. Local registries can answer precisely; aggregate and mounted providers include their children. Providers with transforms, proxies, and other providers that cannot be inspected synchronously retain the declaration conservatively, because hiding a real app is worse than advertising a possible one. This includes apps introduced byToolTransformConfig(meta={"ui": ...}). Explicitly registered extensions retain their settings. The existing Apps extension splice remains in place pending its migration to the extension API.Fixes #4919