You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -7,18 +7,24 @@ Microsoft Fabric OneLake MCP (Model Context Protocol) Tools - Manage and interac
7
7
OneLake is Microsoft Fabric's built-in data lake that provides unified storage for all analytics workloads. This MCP tool provides operations for working with OneLake resources within your Fabric tenant, enabling AI agents to:
8
8
9
9
- Manage OneLake folders and files
10
-
- Configure data access and permissions
11
-
- Monitor OneLake storage usage and performance
12
-
- Integrate with other Fabric workloads through OneLake
10
+
- Browse items, tables and namespaces
11
+
- Configure OneLake data access security (role-based)
12
+
- Create, list and manage shortcuts (including bulk + cache reset)
13
+
- Read and modify workspace-level OneLake settings (diagnostics, immutability)
13
14
14
15
**Features:**
15
-
-19 comprehensive OneLake commands with full MCP integration
16
+
-31 comprehensive OneLake commands with full MCP integration
16
17
- Complete coverage for OneLake table APIs: configuration, namespace discovery, and table metadata
17
-
- Friendly-name support for workspaces and items across data-plane commands ( `item-create` currently requires GUID IDs )
18
+
- Data access security management: list, get, create/update, and delete roles
19
+
- Shortcut management: list, get, create/update, delete, and cache reset
20
+
- Workspace-level settings: diagnostics and immutability policy configuration
21
+
- Friendly-name support for workspaces and items across all commands
18
22
- Robust error handling and authentication
19
-
- Production-ready with 100% test coverage (132 tests)
23
+
- Production-ready with 100% test coverage (309 tests)
20
24
- Clean, focused API design optimized for AI agent interactions
21
25
26
+
> **Note:** Item creation has moved to the [Fabric.Mcp.Tools.Core](../Fabric.Mcp.Tools.Core/src) toolset as `core_create_item`. See [Core tools](../Fabric.Mcp.Tools.Core/src) for item creation operations.
27
+
22
28
## Prerequisites
23
29
24
30
- Microsoft Fabric workspace with OneLake enabled
@@ -41,12 +47,14 @@ The OneLake MCP tools are configured to use the Microsoft Fabric production envi
41
47
42
48
```
43
49
OneLake Data Plane: https://api.onelake.fabric.microsoft.com
> **Endpoint routing:** Security, shortcut and settings tools call the **Fabric Core API** (`api.fabric.microsoft.com`). All other tools target the OneLake data plane / DFS / Blob / Table endpoints.
57
+
50
58
### Getting Started
51
59
52
60
Simply use the commands without any environment configuration:
@@ -90,7 +98,7 @@ You can verify which environment you're targeting by checking the endpoints in t
90
98
91
99
### Workspace and Item Identifiers
92
100
93
-
All commands except `item create`accept either GUID identifiers or friendly names via the `--workspace` and `--item` options. The existing `--workspace-id` and `--item-id` switches remain available for scripts that already depend on them. Friendly-name inputs are sent directly to the OneLake APIs without local GUID resolution; when using names, specify the item as `<itemName>.<itemType>` (for example, `SalesLakehouse.lakehouse`). `item create` currently requires the GUID-based `--workspace-id` option. Table-based commands additionally accept schema identifiers through `--namespace` or its alias `--schema`.
101
+
All commands accept either GUID identifiers or friendly names via the `--workspace` and `--item` options. The existing `--workspace-id` and `--item-id` switches remain available for scripts that already depend on them. Friendly-name inputs are sent directly to the OneLake APIs without local GUID resolution; when using names, specify the item as `<itemName>.<itemType>` (for example, `SalesLakehouse.lakehouse`). Table-based commands additionally accept schema identifiers through `--namespace` or its alias `--schema`.
94
102
95
103
```bash
96
104
dotnet run -- onelake file list --workspace "Analytics Workspace" --item "SalesLakehouse.lakehouse" --path "Files"
> **Note:**`item create` currently requires the GUID-based `--workspace-id` switch; friendly workspace names are not supported for this command yet.
182
-
183
-
**Parameters:**
184
-
-`--workspace-id`: The ID of the Microsoft Fabric workspace
185
-
-`--display-name`: Display name for the new item
186
-
-`--type`: Type of item to create (e.g., Lakehouse, Notebook)
183
+
> **Moved:** The `item create` command has been moved to [Fabric.Mcp.Tools.Core](../Fabric.Mcp.Tools.Core/src) as `core_create_item`. Use the Core toolset for creating new items (Lakehouse, Notebook, etc.) in a Microsoft Fabric workspace.
187
184
188
185
### File Operations
189
186
@@ -629,6 +626,172 @@ dotnet run -- onelake table get --workspace-id "47242da5-ff3b-46fb-a94f-977909b7
629
626
-`--namespace`/`--schema`: Namespace (schema) name
630
627
-`--table`: Table name to retrieve
631
628
629
+
### Security — Data Access Roles
630
+
631
+
These tools manage role-based data access policies on OneLake items (Lakehouse / Warehouse). All security tools call the **Fabric Core API** and require the caller to be a workspace Admin or Member.
632
+
633
+
#### List Data Access Roles
634
+
635
+
Lists all data access roles defined on a single item.
636
+
637
+
```bash
638
+
dotnet run -- onelake security list --workspace "Analytics Workspace" --item "SalesLakehouse.lakehouse"
-`--role-name`: Name of the data access role to delete
684
+
685
+
### Shortcut Operations
686
+
687
+
Shortcuts are references to data stored in external or internal locations (ADLS Gen2, S3, GCS, OneLake, Dataverse, etc.). These tools call the **Fabric Core API**.
688
+
689
+
#### List Shortcuts
690
+
691
+
Lists shortcuts defined within an item, recursing through subfolders.
692
+
693
+
```bash
694
+
dotnet run -- onelake shortcut list --workspace "Analytics Workspace" --item "SalesLakehouse.lakehouse"
-`--shortcut-name`: Name of the shortcut to delete
742
+
-`--shortcut-path`: Path of the shortcut
743
+
744
+
#### Reset Shortcut Cache
745
+
746
+
Drops cached shortcut reads for an item, forcing the next read to re-resolve from the destination. Use sparingly — primarily for debugging stale-cache issues.
Modifies the diagnostic logging configuration for OneLake at the workspace scope. Replaces the existing diagnostics block; fetch with `get settings` first if you want to merge.
-`--diagnostics-config`: JSON configuration for diagnostic settings
782
+
783
+
#### Modify Immutability Policy
784
+
785
+
Modifies the workspace-level OneLake immutability policy. **Warning:** Once enabled, immutability cannot be disabled — confirm with the user before applying.
**Note:** Replace the workspace identifier (`47242da5-ff3b-46fb-a94f-977909b773d5`) and item identifier (`0e67ed13-2bb6-49be-9c87-a1105a4ea342`) with your actual Fabric workspace and item values (names or IDs).
703
905
704
906
## Common Usage Patterns
@@ -831,9 +1033,9 @@ This tool is part of the Microsoft MCP (Model Context Protocol) project. Please
831
1033
The OneLake MCP Tools include a comprehensive test suite with 100% command coverage:
832
1034
833
1035
#### Test Structure
834
-
-**Total Tests**: 76 tests (all passing)
835
-
-**Command Tests**: 70 tests covering all 11 OneLake MCP commands
0 commit comments