Repository navigation
feat(fabric): add core_delete-workspace tool - #3847
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-delete-workspace
branch
from
October 6, 2026 00:25
2696016 to
83da052
Compare
Amos Hersch (AmosHersch)
changed the base branch from
main
to
amoshersch-fabric-delete-item
October 6, 2026 00:25
10 of 21 tasks
Amos Hersch (AmosHersch)
force-pushed
the
amoshersch-fabric-delete-workspace
branch
2 times, most recently
from
October 6, 2026 12:28
bc6e926 to
942381b
Compare
Amos Hersch (AmosHersch)
force-pushed
the
amoshersch-fabric-delete-workspace
branch
2 times, most recently
from
October 7, 2026 11:49
71d2721 to
e0c7276
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
🟡 Changes recommended
Automatic redirects can issue an additional DELETE, and upstream HTTP 400 responses currently produce misleading UUID guidance.
Review effort: Balanced
Findings: 1
Open (2)
What changed in this PR
Adds the Fabric Core core_delete-workspace tool with validated UUID targeting, destructive-operation safeguards, and typed acknowledgement output.
Changes:
- Implements and registers workspace deletion.
- Adds comprehensive mocked command, service, consent, and discovery tests.
- Updates Fabric documentation, prompts, and changelog.
| File | Description |
|---|---|
WorkspaceUpdateToolRegistrationTests.cs |
Verifies read-only exclusion. |
WorkspaceDeleteToolRegistrationTests.cs |
Tests MCP registration and safeguards. |
WorkspaceCreateToolRegistrationTests.cs |
Updates expected tool catalog. |
TestSupport/WorkspaceDeleteTestData.cs |
Adds deletion fixtures. |
TestSupport/WorkspaceDeleteResponseContent.cs |
Tests response disposal. |
Services/FabricCoreServiceWorkspaceDeleteTests.cs |
Tests HTTP deletion behavior. |
tests/README.md |
Documents deletion tests. |
ItemUpdateToolRegistrationTests.cs |
Extends read-only assertions. |
FabricCoreSetupTests.cs |
Tests command registration. |
Commands/WorkspaceDeleteCommandTests.cs |
Tests command contract and failures. |
WorkspaceDeleteThrottledException.cs |
Adds throttling guidance. |
IFabricCoreService.cs |
Adds deletion service contract. |
FabricCoreService.cs |
Implements authenticated DELETE request. |
WorkspaceDeleteOptions.cs |
Defines required workspace UUID option. |
WorkspaceDeleteCommandResult.cs |
Defines typed acknowledgement. |
CoreJsonContext.cs |
Registers result serialization. |
FabricCoreSetup.cs |
Registers and advertises the command. |
WorkspaceDeleteCommand.cs |
Implements tool behavior and errors. |
ServerStartupTests.cs |
Verifies host discovery metadata. |
servers/Fabric.Mcp.Server/README.md |
Documents tool usage and risks. |
docs/e2eTestPrompts.md |
Adds selection prompts. |
amoshersch-fabric-core-delete-workspace.yaml |
Adds feature changelog entry. |
💡 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-delete-workspace
branch
from
October 8, 2026 08:29
e0c7276 to
b291d71
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 exactly one Fabric Core tool,
core_delete-workspace, for the Delete Workspace REST API.Dependency: This existing PR is now the next sequential layer above #3848 (Delete Item). Its immediate base is
amoshersch-fabric-delete-itematb1aa5b024f228be6a38eebf8eec8824298d2f62f; the ultimate target remainsmain. Review this PR's one-commit, 22-file diff relative to that parent. The PR number and branch are preserved; no replacement PR, merge, or native stack metadata was created.Tool contract
DELETE /v1/workspaces/{workspaceId}with no request body. Only HTTP 200 OK, the documented synchronous response with no body, produces the source-generated acknowledgement{ "workspaceId": "<canonical UUID>", "deleted": true }. No empty-body deserialization as a workspace, prefetch, item-by-item deletion, permission changes, retries, follow-up requests, or polling.Workspace.ReadWrite.All. No recovery, retention, or permanent-deletion guarantees are added. A 403/404 is never fabricated as success; cancellation, timeout, and post-send failures do not assert a definite deletion outcome.Rebase adaptation
SendFabricHttpRequestAsyncsignature with explicitResponseHeadersReadand named cancellation. All sibling completion choices remain unchanged.FabricCoreHttpHelpers.GetRetryAfterwhile retainingWorkspaceDeleteThrottledExceptionand deletion-specific status/unknown-outcome messages. Replaces the duplicate test handler with inheritedFabricCoreHttpMessageHandler; keeps the specialized no-body-read/disposal content double and original semantic cases.cancellationToken.ThrowIfCancellationRequested()immediately after credential acquisition. This preserves the existing regression requiring zero HTTP sends if a credential returns after cancellation. The signature, authentication selection, and noncancelled behavior are unchanged; no lower branch or foundation was rewritten.The Workspace Delete command, options, result, throttling exception, command tests, and specialized content/test data are byte-identical to the original reviewed commit. Only shared-helper use and cumulative integration assertions/documentation were adapted. The layer does not change shared HTTP helper definitions, authentication, option binding, production host/proxy infrastructure, project/package files, or engineering scripts.
GitHub issue number?
No tracking issue was supplied or created. This is the user-authorized reorganization of the existing single-tool PR; #3848 is its dependency, not a replacement tracking issue.
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.jsonbreaking-changelabelservers/Azure.Mcp.Server/docs/azmcp-commands.md./eng/scripts/Update-AzCommandsMetadata.ps1to update tool metadata inazmcp-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 PipelineThe consolidated mapping, rename checklist, and Azure-specific items are not applicable: this layer adds one Fabric tool, renames none, and the Fabric host uses
NullConsolidatedToolDefinitionProvider. Fabric prompts are maintained cumulatively inservers/Fabric.Mcp.Server/docs/e2eTestPrompts.md. Evaluator scoring was not run and is waived for this PR by the Fabric MCP maintainer.Validation at the rebased head
All results below were rerun for
83da05281e680f9716b1408f710a8a0aa308d8dawith .NET SDK 10.0.401, not copied from the old standalone checks. 1,475 focused tests passed, zero failed/skipped: 1,468 Core, five inherited Fabric host tests, and two credential-bridge tests. API-level tests use substituted HTTP/credentials only; local host tests perform discovery, not Fabric resource operations.dotnet 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-build --no-restore --verbosity quietdotnet 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 --no-restore --filter-class '*ServerStartupTests' --verbosity quietdotnet test --project '.\tools\Fabric.Mcp.Tools.DataFactory\tests\Fabric.Mcp.Tools.DataFactory.Tests\Fabric.Mcp.Tools.DataFactory.Tests.csproj' --filter-class '*ProviderDelegatingCredentialTests' --verbosity quietdotnet format '.\tools\Fabric.Mcp.Tools.Core\src\Fabric.Mcp.Tools.Core.csproj' --verify-no-changes --no-restore --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 --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 $files -PackageInstallCache $cache.\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' -DryRun.\eng\scripts\Test-ToolSelectionPrompts.ps1 -ServerName 'Fabric.Mcp.Server' -OutputPath $promptOutput.\servers\Fabric.Mcp.Server\src\bin\Debug\fabmcp.exe tools list --name-onlygit -c core.longpaths=true --no-pager diff --check 'b1aa5b024f228be6a38eebf8eec8824298d2f62f...HEAD'$fileswas the exact output ofgit -c core.longpaths=true diff --name-only 'b1aa5b024f228be6a38eebf8eec8824298d2f62f...HEAD', normalized to Windows paths.$cachewas the dedicated session-artifact directoryfiles\stack-3847-cspell;$promptOutputwas the absolute path to this worktree's.work\stack-3847-promptsdirectory. The prompt script was run without-SkipServerBuild, so it produced fresh branch artifacts. No tracked configuration was changed.CI and evidence limits
mcp - pullrequestaggregate was queued, with its Initialize and SDL Sources jobs cancelled in that run. Required hosted CI is not claimed green; final CI and human review still apply.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.