Repository navigation
feat(fabric): add read-only core_list-workspaces tool - #3842
Closed
Amos Hersch (AmosHersch) wants to merge 1 commit into
Closed
Amos Hersch (AmosHersch) wants to merge 1 commit into
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. |
5 of 21 tasks
Amos Hersch (AmosHersch)
force-pushed
the
amoshersch-fabric-list-workspaces
branch
from
October 5, 2026 22:11
dd91695 to
f3bde1c
Compare
Amos Hersch (AmosHersch)
changed the base branch from
main
to
amoshersch-fabric-get-workspace
October 5, 2026 22:11
This was referenced Oct 5, 2026
Amos Hersch (AmosHersch)
force-pushed
the
amoshersch-fabric-list-workspaces
branch
2 times, most recently
from
October 6, 2026 12:28
e8433eb to
38440e0
Compare
Amos Hersch (AmosHersch)
force-pushed
the
amoshersch-fabric-list-workspaces
branch
2 times, most recently
from
October 7, 2026 11:49
10f0ef5 to
94207d7
Compare
Amos Hersch (AmosHersch)
marked this pull request as ready for review
October 7, 2026 12:53
Contributor
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
Required CI and real-service authorization remain unverified, leaving final validation to human review.
Review effort: Balanced
Findings: None
What changed in this PR
Adds read-only core_list-workspaces to Fabric Core, building on #3841 and reusing its HTTP infrastructure.
Changes:
- Adds single-page workspace discovery with role filtering, continuation tokens, and optional endpoint metadata.
- Provides typed output, input validation, cancellation, and sanitized errors.
- Adds offline tests, transport discovery checks, documentation, prompts, and a changelog entry.
| File | Description |
|---|---|
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/WorkspaceListToolRegistrationTests.cs | Tests discovery, schemas, output modes, and failures. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/TestSupport/WorkspaceListTestData.cs | Supplies workspace fixtures and mock credentials. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/TestSupport/WorkspaceListCancellationStream.cs | Supports deserialization cancellation tests. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Services/FabricCoreServiceWorkspaceListTests.cs | Tests requests, pagination, validation, and isolation. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/README.md | Documents tests and validation boundaries. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Models/WorkspaceListSerializationTests.cs | Tests metadata and continuation serialization. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/FabricCoreSetupTests.cs | Verifies command registration. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Commands/WorkspaceListCommandTests.cs | Tests options, results, and sanitized errors. |
| tools/Fabric.Mcp.Tools.Core/src/Validation/WorkspaceListInputValidator.cs | Normalizes roles and validates cursors. |
| tools/Fabric.Mcp.Tools.Core/src/Services/WorkspaceListThrottledException.cs | Formats validated throttling guidance. |
| tools/Fabric.Mcp.Tools.Core/src/Services/IFabricCoreService.cs | Adds the listing service contract. |
| tools/Fabric.Mcp.Tools.Core/src/Services/FabricCoreService.cs | Implements single-page requests and response validation. |
| tools/Fabric.Mcp.Tools.Core/src/Options/WorkspaceListOptions.cs | Defines optional listing inputs. |
| tools/Fabric.Mcp.Tools.Core/src/Models/WorkspaceListResponse.cs | Models the API response page. |
| tools/Fabric.Mcp.Tools.Core/src/Models/WorkspaceListCommandResult.cs | Defines typed command output. |
| tools/Fabric.Mcp.Tools.Core/src/Models/FabricWorkspaceListTag.cs | Models workspace tags. |
| tools/Fabric.Mcp.Tools.Core/src/Models/FabricWorkspaceListEntry.cs | Models workspace management metadata. |
| tools/Fabric.Mcp.Tools.Core/src/Models/CoreJsonContext.cs | Registers source-generated serialization types. |
| tools/Fabric.Mcp.Tools.Core/src/FabricCoreSetup.cs | Registers and describes the new command. |
| tools/Fabric.Mcp.Tools.Core/src/Commands/WorkspaceListCommand.cs | Implements the read-only tool and error mapping. |
| servers/Fabric.Mcp.Server/tests/Fabric.Mcp.Server.Tests/Infrastructure/ServerStartupTests.cs | Checks Core discovery over HTTP and stdio. |
| servers/Fabric.Mcp.Server/README.md | Documents usage, pagination, and permissions. |
| servers/Fabric.Mcp.Server/docs/e2eTestPrompts.md | Adds four tool-selection prompts. |
| servers/Fabric.Mcp.Server/changelog-entries/amoshersch-fabric-core-list-workspaces.yaml | Records the new feature. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
KupoCat
approved these changes
Oct 8, 2026
Co-authored-by: Copilot App <[email protected]>
Amos Hersch (AmosHersch)
force-pushed
the
amoshersch-fabric-list-workspaces
branch
from
October 8, 2026 08:29
94207d7 to
708459e
Compare
9 of 21 tasks
Contributor
Author
|
Superseded by #3887, which has merged into |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds
core_list-workspaces(fabmcp core list-workspaces) for the Fabric Core List Workspaces REST API.Retry-Afterguidance. No automatic page traversal, retries, LRO handling, mutations, or returned-URL following.Dependency: this existing draft now targets
amoshersch-fabric-get-workspace, the branch for #3841, at frozen parent1e263b3bbac16c11f09212a40f62118b100f8310. The ultimate target ismain. This is the next sequential conflict-prevention layer; review its one commit / 24 changed files relative to #3841, not the cumulative lower-layer implementation. The PR number and owning branch are preserved, and no native stack metadata or automatic merge is configured.GitHub issue number?
N/A — scoped tool addition requested directly; no issue was created.
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 README — exits 0 with 14 pre-existing TOC warnings, verified identical to the frozen parent.ToolDescriptionEvaluatorand 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 registersNullConsolidatedToolDefinitionProvider; this is not an Azure-server tool.breaking-changelabel — N/A: no tool rename.servers/Azure.Mcp.Server/docs/azmcp-commands.md— N/A../eng/scripts/Update-AzCommandsMetadata.ps1to update tool metadata inazmcp-commands.md(required for CI) — N/A.servers/Azure.Mcp.Server/docs/e2eTestPrompts.md— N/A; Fabric-specific prompts were added instead.crypto mining, spam, data exfiltration, etc.) — N/A to this Azure-only subsection./azp run mcp - pullrequest - liveto run Live Test Pipeline — not invoked.Validation
Re-run against the combined layer with .NET SDK 10.0.401. The Fabric host is built through its test project's project reference and through the fresh Fabric-only publish used by the prompt validator.
dotnet build .\tools\Fabric.Mcp.Tools.Core\src\Fabric.Mcp.Tools.Core.csproj --nologo --verbosity quietdotnet build .\tools\Fabric.Mcp.Tools.Core\tests\Fabric.Mcp.Tools.Core.Tests\Fabric.Mcp.Tools.Core.Tests.csproj --nologo --verbosity quietdotnet test --project .\tools\Fabric.Mcp.Tools.Core\tests\Fabric.Mcp.Tools.Core.Tests\Fabric.Mcp.Tools.Core.Tests.csproj --no-builddotnet build .\servers\Fabric.Mcp.Server\tests\Fabric.Mcp.Server.Tests\Fabric.Mcp.Server.Tests.csproj --nologo --verbosity quietdotnet test --project .\servers\Fabric.Mcp.Server\tests\Fabric.Mcp.Server.Tests\Fabric.Mcp.Server.Tests.csproj --no-build --filter-class '*ServerStartupTests'dotnet test --project .\tools\Fabric.Mcp.Tools.DataFactory\tests\Fabric.Mcp.Tools.DataFactory.Tests\Fabric.Mcp.Tools.DataFactory.Tests.csproj --filter-class '*ProviderDelegatingCredentialTests'dotnet format .\tools\Fabric.Mcp.Tools.Core\src\Fabric.Mcp.Tools.Core.csproj --verify-no-changes --no-restore --include $source --verbosity quietdotnet format .\tools\Fabric.Mcp.Tools.Core\tests\Fabric.Mcp.Tools.Core.Tests\Fabric.Mcp.Tools.Core.Tests.csproj --verify-no-changes --no-restore --include $tests --verbosity quietdotnet format .\servers\Fabric.Mcp.Server\tests\Fabric.Mcp.Server.Tests\Fabric.Mcp.Server.Tests.csproj --verify-no-changes --no-restore --include .\servers\Fabric.Mcp.Server\tests\Fabric.Mcp.Server.Tests\Infrastructure\ServerStartupTests.cs --verbosity quiet.\eng\common\spelling\Invoke-Cspell.ps1 -FileList $paths -PackageInstallCache $cache.\eng\scripts\Process-PackageReadMe.ps1 -Command validate -InputReadMePath .\servers\Fabric.Mcp.Server\README.md1e263b3b..\eng\scripts\Test-ToolSelectionPrompts.ps1 -ServerName Fabric.Mcp.Server -OutputPath .\.work\stack-3842-prompts.\.work\stack-3842-prompts\Fabric.Mcp.Server\windows-x64\fabmcp.exe tools list --name-onlygit diff --cached --check$source,$tests, and$pathswere explicit changed-file arrays relative to the frozen parent, including added files;$cachedenotes an isolated temporary tooling directory. The changelog entry retains its previously validated schema.The six cumulative Core commands are
core_create-item,core_search-catalog,core_get-capacity,core_list-capacities,core_get-workspace, andcore_list-workspaces.Coverage includes all role values/normalization/invalid combinations; nullable endpoint preference; escaped and hostile cursor inputs; normal unreserved-character URI canonicalization; first/final/empty/continuation pages; nullable and future metadata; malformed payloads; HTTP status and validated single/multiple
Retry-Aftervalues; cancellation during credentials, HTTP, and deserialization; concurrent request isolation; response disposal; existing POST regressions; and typed MCP legacy/compact/duplicated output. Workspace-specific and continuation URLs remain output metadata, never request targets.Pending and not performed
Invoking 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.