Skip to main content
Glama

workspace_unmount

Unmount a virtual filesystem workspace to release resources and disconnect from storage providers.

Instructions

Unmount workspace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo

Implementation Reference

  • Core handler function that executes the unmount logic: checks mount status, updates workspace info (sets is_mounted=False), and returns response. Note: FUSE unmount is TODO.
    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 tool registration using @server.tool decorator. This is the entry point handler that delegates to the underlying workspace_tools implementation.
    @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 the workspace_unmount tool response.
    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