WIP: feat(mcp): advertise MCP Apps UI extension capability#6927
Draft
WIP: feat(mcp): advertise MCP Apps UI extension capability#6927
Conversation
WIP: Depends on rmcp PR #643 being merged and released. This change updates the MCP client to advertise support for the io.modelcontextprotocol/ui extension during capability negotiation, as required by the MCP Apps specification. The client now advertises: { "capabilities": { "extensions": { "io.modelcontextprotocol/ui": { "mimeTypes": ["text/html;profile=mcp-app"] } } } } Blocked by: - modelcontextprotocol/rust-sdk#643 Related: - https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx
9 tasks
Collaborator
Author
|
note: Depending on timing, we might be able to leverage conditional declaration based off platform detection: #6931 |
Jazzcort
added a commit
to Jazzcort/goose
that referenced
this pull request
Feb 5, 2026
Introduces a GoosePlatform enum to distinguish between GooseCli and GooseDesktop environments.
This allows the MCP client to conditionally advertise capabilities based on the active
platform.
Changes:
- Core: Added GoosePlatform enum to crates/goose/src/agents/agent.rs and included it in
AgentConfig.
- MCP Integration: Updated GooseClient to include platform info. Now, the client
advertises its client name as "goose-desktop" while using Goose Desktop and "goose-cli"
for Goose Cli. Leave params.capabilities.extension part for
block#6927.
- Plumbing: Updated ExtensionManager, McpClient, and Agent constructors across the codebase
to propagate the platform type.
- Defaults:
- goose-acp and goose-cli default to GoosePlatform::GooseCli.
- AgentManager (used by the desktop execution flow) defaults to
GoosePlatform::GooseDesktop.
- Testing: Updated scenario runners and integration tests to explicitly pass a platform
variant (typically GooseCli).
Signed-off-by: Jazzcort <jason101011113@gmail.com>
Jazzcort
added a commit
to Jazzcort/goose
that referenced
this pull request
Feb 5, 2026
Introduces a GoosePlatform enum to distinguish between GooseCli and GooseDesktop environments.
This allows the MCP client to conditionally advertise capabilities based on the active
platform.
Changes:
- Core: Added GoosePlatform enum to crates/goose/src/agents/agent.rs and included it in
AgentConfig.
- MCP Integration: Updated GooseClient to include platform info. Now, the client
advertises its client name as "goose-desktop" while using Goose Desktop and "goose-cli"
for Goose Cli. Leave params.capabilities.extension part for block#6927
- Plumbing: Updated ExtensionManager, McpClient, and Agent constructors across the codebase
to propagate the platform type.
- Defaults:
- goose-acp and goose-cli default to GoosePlatform::GooseCli.
- AgentManager (used by the desktop execution flow) defaults to
GoosePlatform::GooseDesktop.
- Testing: Updated scenario runners and integration tests to explicitly pass a platform
variant (typically GooseCli).
Signed-off-by: Jazzcort <jason101011113@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR updates the MCP client to advertise support for the
io.modelcontextprotocol/uiextension during capability negotiation, as required by the MCP Apps specification.Changes
ExtensionCapabilitiesfromrmcp::modelGooseClient::get_info()to build and advertise the UI extension capabilityCapability Advertised
{ "capabilities": { "extensions": { "io.modelcontextprotocol/ui": { "mimeTypes": ["text/html;profile=mcp-app"] } } } }Blocked By
extensionsfield toClientCapabilitiesinrmcpcrateOnce that PR is merged and a new version of
rmcpis released, we'll need to:rmcpversion inCargo.tomlRelated