这是indexloc提供的服务,不要输入任何密码
Skip to content

Feature Request: Add unmount and export_server to complement mount and import_server #1201

@Chen0Yang

Description

@Chen0Yang

Enhancement Description

Description:
Currently, FastMCP provides mount and import_server methods to attach resources and integrate external MCP servers. However, there are no corresponding methods to remove or detach them (unmount) or to export a server instance once it has been imported (export_server).

This leads to a few issues:

No clean way to selectively release mounted resources without shutting down the entire client.

Imported servers cannot be “exported” (e.g., detached and reused in another context) without tearing down the whole environment.

Makes it harder to manage dynamic or long‑running MCP environments with changing resource sets.

Proposal:

Introduce unmount(resource_id) to cleanly detach a previously mounted resource or tool.

Introduce export_server(server_id) to detach an imported server, making it available for reuse elsewhere.

Use Case

No response

Proposed Implementation

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions