Skip to main content
Glama

workspace_unmount

Remove a virtual filesystem workspace from the MCP server to free resources and end its session.

Instructions

Unmount workspace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo

Implementation Reference

  • Main handler implementation in WorkspaceTools class: checks if workspace is mounted, performs unmount (placeholder logic), updates state, and returns WorkspaceUnmountResponse.
    async def workspace_unmount( self, name: str | None = None ) -> WorkspaceUnmountResponse: """ Unmount workspace. Args: name: Workspace name (None for current) Returns: WorkspaceUnmountResponse with success status """ info = self.workspace_manager.get_workspace_info(name) if not info.is_mounted: return WorkspaceUnmountResponse( success=False, workspace=info.name, error=f"Workspace '{info.name}' is not mounted", ) # TODO: Implement FUSE unmounting info.is_mounted = False mount_point = info.mount_point info.mount_point = None return WorkspaceUnmountResponse( success=True, workspace=info.name, mount_point=mount_point )
  • MCP server tool registration using @server.tool decorator, which delegates to the WorkspaceTools.workspace_unmount method.
    @server.tool async def workspace_unmount(name: str | None = None): """Unmount workspace.""" return await workspace_tools.workspace_unmount(name)
  • Pydantic BaseModel defining the output schema for workspace_unmount tool responses.
    class WorkspaceUnmountResponse(BaseModel): """Response from workspace unmount""" success: bool workspace: str mount_point: str | None = None error: str | None = None

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chrishayuk/chuk-mcp-vfs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server