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
| Name | Required | Description | Default |
|---|---|---|---|
| name | No |
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 )
- src/chuk_mcp_vfs/server.py:78-81 (registration)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)
- src/chuk_mcp_vfs/models.py:106-112 (schema)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