Repository navigation
feat(fabric): add core_update-workspace tool - #3851
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-update-workspace
branch
from
October 5, 2026 23:20
8a4a6c1 to
946865b
Compare
Amos Hersch (AmosHersch)
changed the base branch from
main
to
amoshersch-fabric-create-workspace
October 5, 2026 23:22
This was referenced Oct 5, 2026
Amos Hersch (AmosHersch)
force-pushed
the
amoshersch-fabric-update-workspace
branch
2 times, most recently
from
October 6, 2026 12:28
0730746 to
30cf162
Compare
Amos Hersch (AmosHersch)
force-pushed
the
amoshersch-fabric-update-workspace
branch
2 times, most recently
from
October 7, 2026 11:49
01bc8db to
f946ea5
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
Supplied evidence leaves required CI incomplete and real Fabric mutation and authorization unvalidated, requiring human review.
Review effort: Balanced
Findings: None
What changed in this PR
Adds core_update-workspace to Fabric Core, building on the Create Workspace layer to support partial workspace metadata updates.
Changes:
- Adds validated name/description updates through a single application-level PATCH.
- Registers typed output, mutation safeguards, and sanitized error handling.
- Adds offline coverage, discovery assertions, documentation, prompts, and a changelog entry.
| File | Description |
|---|---|
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/WorkspaceUpdateToolRegistrationTests.cs | Tests schemas, consent, output, and read-only enforcement. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/WorkspaceCreateToolRegistrationTests.cs | Extends cumulative discovery expectations. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/TestSupport/WorkspaceUpdateTestData.cs | Supplies update fixtures and credentials. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/TestSupport/WorkspaceUpdateCancellationContent.cs | Supports cancellation and disposal assertions. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Services/FabricCoreServiceWorkspaceUpdateTests.cs | Tests PATCH behavior, failures, and isolation. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/README.md | Documents coverage and validation boundaries. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Models/WorkspaceUpdateSerializationTests.cs | Tests field omission and restricted output. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/FabricCoreSetupTests.cs | Verifies update command registration. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Commands/WorkspaceUpdateCommandTests.cs | Tests validation, metadata, and sanitized failures. |
| tools/Fabric.Mcp.Tools.Core/src/Validation/WorkspaceUpdateInputValidator.cs | Validates identifiers and supplied fields. |
| tools/Fabric.Mcp.Tools.Core/src/Services/WorkspaceUpdateThrottledException.cs | Provides validated retry guidance. |
| tools/Fabric.Mcp.Tools.Core/src/Services/IFabricCoreService.cs | Declares the update service contract. |
| tools/Fabric.Mcp.Tools.Core/src/Services/FabricCoreService.cs | Implements PATCH and response validation. |
| tools/Fabric.Mcp.Tools.Core/src/Options/WorkspaceUpdateOptions.cs | Defines partial-update inputs. |
| tools/Fabric.Mcp.Tools.Core/src/Models/WorkspaceUpdateResponse.cs | Limits returned workspace metadata. |
| tools/Fabric.Mcp.Tools.Core/src/Models/WorkspaceUpdateCommandResult.cs | Defines the typed result wrapper. |
| tools/Fabric.Mcp.Tools.Core/src/Models/UpdateWorkspaceRequest.cs | Represents optional update properties. |
| tools/Fabric.Mcp.Tools.Core/src/Models/CoreJsonContext.cs | Registers source-generated serialization. |
| tools/Fabric.Mcp.Tools.Core/src/FabricCoreSetup.cs | Registers and describes the new command. |
| tools/Fabric.Mcp.Tools.Core/src/Commands/WorkspaceUpdateCommand.cs | Implements command execution and error handling. |
| servers/Fabric.Mcp.Server/tests/Fabric.Mcp.Server.Tests/Infrastructure/ServerStartupTests.cs | Extends host discovery and annotation checks. |
| servers/Fabric.Mcp.Server/README.md | Documents update usage and limitations. |
| servers/Fabric.Mcp.Server/docs/e2eTestPrompts.md | Adds four update-selection prompts. |
| servers/Fabric.Mcp.Server/changelog-entries/amoshersch-fabric-core-update-workspace.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-update-workspace
branch
from
October 8, 2026 08:29
f946ea5 to
cecbfde
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_update-workspace(fabmcp core update-workspace), for the synchronous Update Workspace REST API.Depends directly on #3853, Create Workspace; the ultimate target remains
main. This existing PR and branch were rebased in place for the user-authorized conflict-prevention chain. The immediate base isamoshersch-fabric-create-workspaceatdd17c5230fbcdb28f5b78d0baf0cf11cdbdc9ca7. This layer is one commit,946865bd09d184929650ed3c8ee6eb54b6144cf9, changing 24 files relative to that parent. No replacement PR, merge, closure, or native-stack metadata mutation was made.The adaptation reuses the #3855 foundation's private authenticated send with its original buffered
ResponseContentReaddefault and named cancellation,FabricCoreHttpHelpers.GetRetryAfter, and thread-safeFabricCoreHttpMessageHandler. The duplicate send extraction and update-specific test HTTP handler are removed. The original command, options, input validator, request/result DTOs, and throttling exception are byte-for-byte unchanged; specialized cancellation content and all prior assertions remain. Nine additional Retry-After boundary cases cover normalization, integer limits, dates, and invalid values. Existing operations retain their own completion settings and error/output contracts.The lower chain includes the #3854 stdout/stderr validator fix. This layer adds no engineering, shared framework, production host/proxy, authentication, project, or dependency changes. Cumulative discovery assertions are extended rather than relaxed, and all five inherited default/all-tools host cases remain.
GitHub issue number?
N/A. No tracking issue was supplied or created for this user-requested tool and authorized in-place reorganization.
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 PipelineConsolidated mappings, the rename checklist, and Azure-server-specific items are not applicable: this adds one Fabric tool, renames none, and the Fabric host uses
NullConsolidatedToolDefinitionProvider. Prompts are in the Fabric server's own documentation.Cumulative validation after adaptation
.NET SDK 10.0.401. 1,056 focused offline tests passed, zero failed/skipped: 1,049 Core, five host, and two credential-bridge cases. All 909 parent Core cases remain, with 140 Update Workspace cases. The named
WorkspaceGetMcpTests,WorkspaceGetServiceTests,ItemListMcpTests, andItemListServiceTestsfiles are unchanged from the frozen parent. Discovery contains nine Core tools / 55 total Fabric tools. All 25 prompt rows match the catalog, including all 21 inherited rows retained unchanged.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 --no-progressdotnet 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 --no-progressdotnet test --project 'tools\Fabric.Mcp.Tools.DataFactory\tests\Fabric.Mcp.Tools.DataFactory.Tests\Fabric.Mcp.Tools.DataFactory.Tests.csproj' --no-restore --filter-class '*ProviderDelegatingCredentialTests' --no-progressdotnet format 'tools\Fabric.Mcp.Tools.Core\src\Fabric.Mcp.Tools.Core.csproj' --no-restore --verify-no-changes --include $source --verbosity quietdotnet format 'tools\Fabric.Mcp.Tools.Core\tests\Fabric.Mcp.Tools.Core.Tests\Fabric.Mcp.Tools.Core.Tests.csproj' --no-restore --verify-no-changes --include $tests --verbosity quietdotnet format 'servers\Fabric.Mcp.Server\tests\Fabric.Mcp.Server.Tests\Fabric.Mcp.Server.Tests.csproj' --no-restore --verify-no-changes --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.md'.\eng\scripts\Compile-Changelog.ps1 -ChangelogPath 'servers\Fabric.Mcp.Server\CHANGELOG.md' -DryRun& '.\servers\Fabric.Mcp.Server\src\bin\Debug\fabmcp.exe' 'tools' 'list' '--name-only'& '.\eng\scripts\Test-ToolSelectionPrompts.ps1' -ServerName 'Fabric.Mcp.Server' -OutputPath $outputgit -c core.longpaths=true diff --check 'dd17c5230fbcdb28f5b78d0baf0cf11cdbdc9ca7..HEAD' --$source,$tests, and$pathswere explicit layer-relative changed-file arrays.$cachewas an isolated session-local spelling directory.$outputwasJoin-Path $PWD '.work\stack-3851-prompt-build', verified absent before the fresh validator build. Git long-path support was process-local, not a configuration-file change.Coverage retains omitted/null/empty fields, UUID and length boundaries, four-field schemas, response validation, sanitized HTTP/Retry-After failures, cancellation/disposal, concurrent credentials, simulated consent/decline, legacy/compact/duplicated output, and existing POST regressions. Read-only discovery excludes
core_create-item,core_create-workspace, andcore_update-workspaceand blocks update execution without authentication or HTTP.The old stderr/JSON validator limitation is resolved by inherited #3854, and the actual script now passes here. This is catalog-name validation, not a ToolDescriptionEvaluator score. Historical standalone evidence included a startup timeout followed by a passing isolated rerun; the current cumulative five-case host run passed. No timeout or specialized output assertions were relaxed.
Recovery and publication
The create-only local recovery ref
refs/backup/fabric-stack-3851-20261005retains original head8a4a6c1ad2ba6b349246268133c3aa29b3de4c42. Only its verified single tool commit after historical forkd4df988aae3ba1de008efe10f664f12817bdcc24was rebased onto the exact frozen Create Workspace tip. Publication used only the explicit lease--force-with-lease=refs/heads/amoshersch-fabric-update-workspace:8a4a6c1ad2ba6b349246268133c3aa29b3de4c42.Own/lower PR states, refs, locks, auto-merge/merge-queue absence, and empty filtered native-stack membership were revalidated before publication and retargeting and verified afterward. The original PR number and branch are preserved; lower refs were not mutated. Live
mainat0fa879ecf7c51946fa17e73304e468558c351b6c, including GitHub's refresh of the old main-based PR metadata, was recorded separately and not imported or used as a rebase target.Pending and not performed
6920075had cancelled Initialize and SDL Sources Analysis stages while the aggregatemcp - pullrequestcheck remained queued. No CI retry or live pipeline was requested. Actual required CI and human review remain applicable.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.