Skip to main content
Glama

Fabric MCP

by aci-labs
workspace_client.py960 B
from helpers.logging_config import get_logger from helpers.clients.fabric_client import FabricApiClient logger = get_logger(__name__) class WorkspaceClient: def __init__(self, client: FabricApiClient): self.client = client async def list_workspaces(self): """List all available workspaces.""" workspaces = await self.client.get_workspaces() if not workspaces: raise ValueError("No workspaces found.") markdown = "# Fabric Workspaces\n\n" markdown += "| ID | Name | Capacity |\n" markdown += "|-----|------|----------|\n" for ws in workspaces: markdown += f"| {ws['id']} | {ws['displayName']} | {ws.get('capacityId', 'N/A')} |\n" return markdown async def resolve_workspace(self, workspace_name: str): """Resolve workspace name to workspace ID.""" return await self.client.resolve_workspace_name_and_id(workspace=workspace_name)

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/aci-labs/ms-fabric-mcp'

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