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
- Refactor 12 OneLake security/shortcut/settings commands to GUID-only (workspace-id, item-id)
- Add pagination support (continuationToken) for list_data_access_roles and list_shortcuts
- Simplify result classes to sealed records
- Use new(...) shorthand for ResponseResult.Create calls
- Remove cross-tool name references from descriptions
- Remove CLI formatting from shortcut conflict policy description
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: tools/Fabric.Mcp.Tools.OneLake/README.md
+51-50Lines changed: 51 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,10 +98,10 @@ You can verify which environment you're targeting by checking the endpoints in t
98
98
99
99
### Workspace and Item Identifiers
100
100
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`.
101
+
The Fabric Core REST APIs used by the Security, Shortcuts, and Settings commands require GUID identifiers. Use `--workspace-id`for workspace scope and `--item-id` for item scope. Table-based commands additionally accept schema identifiers through `--namespace` or its alias `--schema`.
102
102
103
103
```bash
104
-
dotnet run -- onelake file list --workspace"Analytics Workspace" --item"SalesLakehouse.lakehouse" --path "Files"
104
+
dotnet run -- onelake shortcut list --workspace-id "47242da5-ff3b-46fb-a94f-977909b773d5" --item-id "0e67ed13-2bb6-49be-9c87-a1105a4ea342"
105
105
```
106
106
107
107
## Available Commands
@@ -632,53 +632,54 @@ These tools manage role-based data access policies on OneLake items (Lakehouse /
632
632
633
633
#### List Data Access Roles
634
634
635
-
Lists all data access roles defined on a single item.
635
+
Lists all data access roles defined on a single item. Supports pagination via `--continuation-token`.
636
636
637
637
```bash
638
-
dotnet run -- onelake security list --workspace"Analytics Workspace" --item"SalesLakehouse.lakehouse"
638
+
dotnet run -- onelake security list --workspace-id "47242da5-ff3b-46fb-a94f-977909b773d5" --item-id "0e67ed13-2bb6-49be-9c87-a1105a4ea342"
-`--role-name`: Name of the data access role to retrieve
657
658
658
659
#### Create or Update Data Access Role
659
660
660
661
Upserts a single data access role on a single item. Scoped to one role per call — does not affect other roles. The role name is derived from the `name` field in the JSON definition.
-`--shortcut-name`: Name of the shortcut to delete
741
743
-`--shortcut-path`: Path of the shortcut
742
744
743
745
#### Reset Shortcut Cache
744
746
745
-
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.
747
+
Drops cached shortcut reads for a workspace, forcing the next read to re-resolve from the destination. Use sparingly — primarily for debugging stale-cache issues.
746
748
747
749
```bash
748
-
dotnet run -- onelake shortcut reset-cache --workspace"Analytics Workspace" --item "SalesLakehouse.lakehouse"
750
+
dotnet run -- onelake shortcut reset-cache --workspace-id "47242da5-ff3b-46fb-a94f-977909b773d5"
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.
773
774
774
775
```bash
775
-
dotnet run -- onelake settings modify-diagnostics --workspace"Analytics Workspace" --diagnostics-config '{"logAnalyticsWorkspaceId":"<workspace-id>","level":"Verbose"}'
776
+
dotnet run -- onelake settings modify-diagnostics --workspace-id "47242da5-ff3b-46fb-a94f-977909b773d5" --diagnostics-config '{"logAnalyticsWorkspaceId":"<workspace-id>","level":"Verbose"}'
-`--diagnostics-config`: JSON configuration for diagnostic settings
781
782
782
783
#### Modify Immutability Policy
783
784
784
785
Modifies the workspace-level OneLake immutability policy. **Warning:** Once enabled, immutability cannot be disabled — confirm with the user before applying.
785
786
786
787
```bash
787
-
dotnet run -- onelake settings modify-immutability --workspace"Analytics Workspace" --immutability-policy '{"state":"Enabled"}'
788
+
dotnet run -- onelake settings modify-immutability --workspace-id "47242da5-ff3b-46fb-a94f-977909b773d5" --immutability-policy '{"state":"Enabled"}'
**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).
904
+
**Note:** Replace the workspace ID (`47242da5-ff3b-46fb-a94f-977909b773d5`) and item ID (`0e67ed13-2bb6-49be-9c87-a1105a4ea342`) with your actual Fabric GUIDs.
904
905
905
906
## Common Usage Patterns
906
907
@@ -1064,4 +1065,4 @@ The test suite includes examples of testable service architecture patterns follo
1064
1065
- Follow the established command patterns (see existing commands as examples)
1065
1066
- Use proper error handling with meaningful HTTP status codes
1066
1067
- Include comprehensive parameter validation
1067
-
- Write tests that verify both success and error scenarios
1068
+
- Write tests that verify both success and error scenarios
0 commit comments