Skip to content

Server advertises the MCP Apps extension when no app is registered #4919

Closed

Description

@adrianto-nanovest

What happened?

A server that registers no ui:// resource and no tool carrying UI metadata still answers initialize with the MCP Apps extension declared:

"capabilities": {"extensions": {"io.modelcontextprotocol/ui": {}}}

Every FastMCP server advertises it, whether or not it has an app. I expected the capability to appear only when the server actually has something to render — a host that reads the declaration may offer a UI affordance or route differently, and then find no app behind it.

Still present on main: fastmcp_slim/fastmcp/server/low_level.py splices UI_EXTENSION_ID in beside the registered extensions with no condition.

Example Code

import asyncio

from fastmcp import Client, FastMCP

mcp = FastMCP("no-ui-here")


@mcp.tool
def ping() -> str:
    return "pong"


async def demo():
    async with Client(mcp) as client:
        print(client.initialize_result.capabilities.model_dump(exclude_none=True))


if __name__ == "__main__":
    asyncio.run(demo())

Output:

{'experimental': {}, 'logging': {}, 'prompts': {'listChanged': True},
 'resources': {'subscribe': False, 'listChanged': True},
 'tools': {'listChanged': True},
 'extensions': {'io.modelcontextprotocol/ui': {}}}

Version Information

FastMCP version:                                                           3.4.7
MCP version:                                                              1.29.0
Python version:                                                          3.11.11
Platform:                                           macOS-15.7.1-arm64-arm-64bit

Activity

  1. added
    bug
    mcp apps
    on Aug 27, 2026
  2. nightcityblade commented on Aug 28, 2026

    @nightcityblade
    Contributor

    Hi, I'd like to work on this. I'll submit a PR shortly.

  3. nightcityblade commented on Aug 28, 2026

    @nightcityblade
    Contributor

    I missed the repository's assignment-first contribution policy. I'm stepping back so the reporter retains first claim and won't open a PR without maintainer assignment.

  4. added a commit that references this issue on Nov 10, 2026
    b89222b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmcp apps

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions