Repository navigation
feat(fabric): add read-only core_get-workspace tool - #3841
Amos Hersch (AmosHersch) wants to merge 1 commit into
Conversation
|
Azure Pipelines: 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Hosted CI update: Azure Pipelines build 6917992 failed in Analyze / Run source analysis at The preceding Azure, Fabric, and Template publish steps succeeded. Hosted SpellCheck, Verify Links, SDL analysis, npm-wrapper tests, and both musl builds have passed; other builds were still running at this snapshot. Local Core tests (141), local Fabric startup tests (3), and the independent stdout-only check of all three prompts against the 49-tool Fabric catalog passed. The shared validator fix requires separate engineering ownership because this approved one-tool scope excludes |
b225941 to
1e263b3
Compare
d2e7ea2 to
34d28e0
Compare
b912e32 to
5d00a98
Compare
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The response model incorrectly requires an optional API field, causing valid responses to fail with a 502.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Adds the read-only Fabric core_get-workspace tool for retrieving workspace metadata by UUID.
Changes:
- Adds command, service, models, registration, and serialization.
- Adds comprehensive offline tests and MCP handler coverage.
- Updates Fabric documentation, prompts, and changelog.
| File | Description |
|---|---|
WorkspaceGetMcpTests.cs |
Tests registered MCP behavior. |
WorkspaceTestData.cs |
Provides workspace test fixtures. |
WorkspaceGetServiceTests.cs |
Tests HTTP and response handling. |
tests/.../README.md |
Documents test coverage. |
FabricCoreSetupTests.cs |
Verifies command registration. |
WorkspaceGetCommandTests.cs |
Tests command validation and errors. |
IFabricCoreService.cs |
Adds workspace service contract. |
FabricWorkspaceThrottledException.cs |
Adds sanitized throttling guidance. |
FabricCoreService.cs |
Implements Get Workspace HTTP call. |
WorkspaceGetOptions.cs |
Defines tool inputs. |
WorkspaceGetCommandResult.cs |
Defines command output wrapper. |
FabricWorkspaceOneLakeEndpoints.cs |
Models OneLake endpoints. |
FabricWorkspaceMetadata.cs |
Models workspace metadata. |
FabricWorkspaceIdentity.cs |
Models workspace identity IDs. |
FabricWorkspaceAppliedTag.cs |
Models applied tags. |
CoreJsonContext.cs |
Registers source-generated JSON types. |
FabricCoreSetup.cs |
Registers the new command. |
WorkspaceGetCommand.cs |
Implements tool execution and errors. |
servers/Fabric.Mcp.Server/README.md |
Documents tool usage and permissions. |
e2eTestPrompts.md |
Adds tool-selection prompts. |
amoshersch-fabric-core-get-workspace.yaml |
Adds the feature changelog entry. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot App <[email protected]>
5d00a98 to
e6b976f
Compare
|
Superseded by #3887, which has merged into |

What does this PR do?
Adds exactly one read-only Fabric Core tool,
core_get-workspace, implementing the non-LRO Get Workspace REST API.Depends on #3852 (List Capacities), not directly on main. The ultimate target remains
main. This existing draft and branch were preserved during the user-authorized conflict-prevention reorganization. The layer is one commit,1e263b3bbac16c11f09212a40f62118b100f8310, directly on3e9acea71343da9f78a789d9aa3c3ca5bd52c9bc(amoshersch-fabric-list-capacities). Its parent already includes #3846, the #3855 shared foundation, and the #3854 validator fix. No native stack metadata was changed.prefer-workspace-specific-endpointspreserves the service default when omitted and forwards explicit true/false values.Retry-Afterguidance. No automatic retries.SendFabricHttpRequestAsyncandFabricCoreHttpHelpers.GetRetryAfter; capacity operations retain their explicit headers-first behavior. Workspace-specific metadata validation and throttling/error messages are unchanged.FabricCoreHttpMessageHandler. Renames the generic workspace service suite toWorkspaceGetServiceTestsand isolates its registered-handler coverage inWorkspaceGetMcpTests, preserving every meaningful test and avoiding collisions with later layers.eng, shared core/authentication, fixture/proxy, dependency, or project-configuration changes.The combined catalog contains 51 Fabric tools, with exactly these five Core names:
core_create-item,core_get-capacity,core_get-workspace,core_list-capacities, andcore_search-catalog.Cumulative validation on the rebased layer
Commands were run from this owning worktree with .NET SDK 10.0.401. Offline HTTP/credential substitutions are not live Fabric or OBO evidence.
dotnet build 'tools\Fabric.Mcp.Tools.Core\src\Fabric.Mcp.Tools.Core.csproj' --no-restore --nologo --verbosity quietdotnet build 'tools\Fabric.Mcp.Tools.Core\tests\Fabric.Mcp.Tools.Core.Tests\Fabric.Mcp.Tools.Core.Tests.csproj' --no-restore --nologo --verbosity quietdotnet test --project 'tools\Fabric.Mcp.Tools.Core\tests\Fabric.Mcp.Tools.Core.Tests\Fabric.Mcp.Tools.Core.Tests.csproj' --no-build --no-restore --verbosity quietdotnet build 'servers\Fabric.Mcp.Server\src\Fabric.Mcp.Server.csproj' --no-restore --nologo --verbosity quietdotnet build 'servers\Fabric.Mcp.Server\tests\Fabric.Mcp.Server.Tests\Fabric.Mcp.Server.Tests.csproj' --no-restore --nologo --verbosity quietdotnet test --project 'servers\Fabric.Mcp.Server\tests\Fabric.Mcp.Server.Tests\Fabric.Mcp.Server.Tests.csproj' --no-build --no-restore --verbosity quietdotnet build 'tools\Fabric.Mcp.Tools.DataFactory\tests\Fabric.Mcp.Tools.DataFactory.Tests\Fabric.Mcp.Tools.DataFactory.Tests.csproj' --nologo --verbosity quietdotnet test --project 'tools\Fabric.Mcp.Tools.DataFactory\tests\Fabric.Mcp.Tools.DataFactory.Tests\Fabric.Mcp.Tools.DataFactory.Tests.csproj' --no-build --no-restore --filter-class '*ProviderDelegatingCredentialTests' --verbosity quiet& '.\servers\Fabric.Mcp.Server\src\bin\Debug\fabmcp.exe' 'tools' 'list' '--name-only'& '.\servers\Fabric.Mcp.Server\src\bin\Debug\fabmcp.exe' 'core' 'get-workspace' '--help'.\eng\scripts\Test-ToolSelectionPrompts.ps1 -ServerName 'Fabric.Mcp.Server'.\eng\scripts\Process-PackageReadMe.ps1 -Command validate -InputReadMePath 'servers\Fabric.Mcp.Server\README.md'.\eng\scripts\Compile-Changelog.ps1 -ChangelogPath 'servers\Fabric.Mcp.Server\CHANGELOG.md' -DryRungit -c core.longpaths=true diff --checkChanged-file formatting commands — both passed. For each command,
$fileswas the.cspaths in that owning subtree returned bygit -c core.longpaths=true diff --name-only '3e9acea71343da9f78a789d9aa3c3ca5bd52c9bc' 'HEAD', converted to Windows separators:Spelling — passed, 21 files checked, 0 issues.
$fileswas the complete 21-file diff against the same immediate parent; the package and npm caches were isolated to this worktree and removed afterward:The former standalone-head stderr/JSON validator failure is resolved by inherited #3854, and the actual validator now passes. Earlier failure comments refer to the old head and are not a current local failure. Native AOT publish, broad package verification, and full-repository tests were not run.
CI and coverage limits
Recovery: the create-only local ref
refs/backup/fabric-stack-3841-20261005retains original headb2259418147d72e3030b2a61f37af59a1894bc5c. Only the owning branch was pushed, with an explicit lease against that original SHA.GitHub issue number?
No tracking issue was supplied or created. The contribution guide requests a linked issue; maintainer/coordinator guidance is still needed. No issue requirement exception is assumed.
Pre-merge Checklist
servers/Azure.Mcp.Server/README.mdand/orservers/Fabric.Mcp.Server/README.mddocumentationREADME.mdchanges running the script./eng/scripts/Process-PackageReadMe.ps1. See Package READMEToolDescriptionEvaluatorand obtained a score of0.4or more and a top 3 ranking for all related test prompts - Not run; score/ranking requirement waived for this PR by the Fabric MCP maintainer.consolidated-tools.json— N/A: Fabric uses a null consolidated-tool provider; Azure mappings do not include this tool.breaking-changelabel — N/A: no tool rename.servers/Azure.Mcp.Server/docs/azmcp-commands.md./eng/scripts/Update-AzCommandsMetadata.ps1to update tool metadata inservers/Azure.Mcp.Server/docs/azmcp-commands.md(required for CI)servers/Azure.Mcp.Server/docs/e2eTestPrompts.mdcrypto mining, spam, data exfiltration, etc.)/azp run mcp - pullrequest - liveto run Live Test PipelineInvoking Livetests
Copilot submitted PRs are not trustworthy by default. Users with
writeaccess to the repo need to validate the contents of this PR before leaving a comment with the text/azp run mcp - pullrequest - live. This will trigger the necessary livetest workflows to complete required validation.