Repository navigation
feat(fabric): add core_create-workspace with capacity support - #3853
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-create-workspace
branch
from
October 5, 2026 22:42
0822498 to
dd17c52
Compare
Amos Hersch (AmosHersch)
changed the base branch from
main
to
amoshersch-fabric-list-items
October 5, 2026 22:42
This was referenced Oct 5, 2026
Amos Hersch (AmosHersch)
force-pushed
the
amoshersch-fabric-create-workspace
branch
2 times, most recently
from
October 6, 2026 12:28
88d5454 to
60be5f8
Compare
Amos Hersch (AmosHersch)
force-pushed
the
amoshersch-fabric-create-workspace
branch
2 times, most recently
from
October 7, 2026 11:49
56b5c46 to
e7e4562
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
The response model incorrectly requires an optional API field, causing valid successful responses to be reported as failures.
Review effort: Balanced
Findings: 1
What changed in this PR
Adds the Fabric Core core_create-workspace tool with optional capacity and domain assignment.
Changes:
- Implements validated workspace creation and typed responses.
- Registers the tool with read-only safeguards and documentation.
- Adds comprehensive offline, serialization, and discovery tests.
| File | Description |
|---|---|
WorkspaceCreateToolRegistrationTests.cs |
Tests MCP registration and behavior. |
WorkspaceCreateTestData.cs |
Provides creation test fixtures. |
WorkspaceCreateCancellationStream.cs |
Supports cancellation testing. |
FabricCoreServiceWorkspaceCreateTests.cs |
Tests service request and response handling. |
tests/README.md |
Documents creation tests. |
WorkspaceCreateSerializationTests.cs |
Tests JSON contracts. |
FabricCoreSetupTests.cs |
Verifies command registration. |
WorkspaceCreateCommandTests.cs |
Tests command validation and failures. |
WorkspaceCreateInputValidator.cs |
Validates creation inputs. |
WorkspaceCreateRequestException.cs |
Carries status and retry guidance. |
IFabricCoreService.cs |
Adds the creation service contract. |
FabricCoreService.cs |
Implements the Fabric API request. |
WorkspaceCreateOptions.cs |
Defines command options. |
WorkspaceCreateResult.cs |
Defines the typed result. |
CreateWorkspaceRequest.cs |
Defines the request payload. |
CreatedWorkspaceTag.cs |
Defines returned tag metadata. |
CreatedWorkspaceMetadata.cs |
Defines returned workspace metadata. |
CoreJsonContext.cs |
Registers new serialization types. |
FabricCoreSetup.cs |
Registers and advertises the command. |
WorkspaceCreateCommand.cs |
Implements command execution and errors. |
ServerStartupTests.cs |
Verifies host discovery metadata. |
Fabric.Mcp.Server/README.md |
Documents usage and permissions. |
e2eTestPrompts.md |
Adds tool-selection prompts. |
amoshersch-fabric-core-create-workspace.yaml |
Adds the feature changelog entry. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
KupoCat
approved these changes
Oct 8, 2026
Create Fabric workspaces in one synchronous request with optional capacity and domain assignment, typed metadata, guarded inputs, sanitized errors, and offline coverage. Co-authored-by: Copilot App <[email protected]>
Amos Hersch (AmosHersch)
force-pushed
the
amoshersch-fabric-create-workspace
branch
from
October 8, 2026 08:29
e7e4562 to
5907b68
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_create-workspace(fabmcp core create-workspace), implementing the synchronous Create Workspace REST API.Depends directly on #3843, List Items; 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-list-itemsat38e5a09ecf14ba1129e666a7a5d9df3c377eadc4; this layer is one commit,dd17c5230fbcdb28f5b78d0baf0cf11cdbdc9ca7, changing 24 files relative to that parent. No replacement PR, merge, closure, or native-stack metadata change was made.display-nameand optionaldescription,capacity-id, anddomain-id. Validates the 256/4000-character limits, reserved workspace name, and nonempty UUIDs before authentication. Omits unspecified fields and preserves an explicitly empty description.POST /v1/workspaces, including optional capacity/domain assignment in that request. No capacity/domain provisioning, name resolution, availability lookup,assignToCapacitycall, automatic retry, or LRO polling.201 Createdand returns source-generated workspace management metadata plus optional Location. Missing Location is valid. Returned URLs are never followed; no operation handle or capacity-completion state is invented.This layer reuses the #3855 foundation's private authenticated send with explicit
ResponseHeadersReadand named cancellation,FabricCoreHttpHelpers.GetRetryAfter, and the thread-safeFabricCoreHttpMessageHandler. The duplicate creation-specific parser/handler and send extraction are removed. Creation request/output DTOs, options, validator, command/error behavior, response ownership, and specialized cancellation double remain operation-specific. Six additional boundary cases verify retry-header normalization, integer limits, and rejection behavior. Legacy create-item/search-catalog and inherited read operations are unchanged.The lower chain includes the #3854 stdout/stderr validator fix. There are no additional engineering, shared framework, production host/proxy, authentication, project, or dependency changes in this layer. Existing host discovery tests retain all five default/all-tools cases and now verify the cumulative catalog and new mutation annotations.
GitHub issue number?
No tracking issue was supplied or created for this user-requested single-tool change 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 PipelineThe consolidated mapping, rename checklist, and Azure MCP-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. 916 focused offline tests passed, zero failed/skipped: 909 Core, five host, and two credential-bridge cases. The Core total retains all 749 parent cases and includes 160 creation cases. Discovery contains eight Core tools / 54 total Fabric tools; all 21 prompt rows are present, including the inherited 17 and the four creation prompts.
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 '38e5a09ecf14ba1129e666a7a5d9df3c377eadc4..HEAD'$source,$tests, and$pathswere explicit layer-relative changed-file arrays, including new files.$cachewas an isolated session-local package-tooling cache.$outputwasJoin-Path $PWD '.work\stack-3853-prompt-build', verified absent before the fresh validator build. Git's long-path setting was a per-invocation override, not a configuration-file change.The original stderr/JSON validator limitation is resolved by the inherited #3854 fix, and the actual script now passes on this branch. This is catalog-name validation, not a ToolDescriptionEvaluator score. No additional engineering workaround was introduced here.
Recovery and publication
The create-only local recovery ref
refs/backup/fabric-stack-3853-20261005retains the original head08224980aa6de61c0f688b17e5b9eeb55de92ab6. Only the original tool slice after historical forkd4df988aae3ba1de008efe10f664f12817bdcc24was rebased onto the frozen List Items tip. Publication used an explicit force-with-lease against that original remote head. Both PRs' open/draft/unlocked state, absence of auto-merge/queue, empty native-stack membership, and exact live refs were revalidated before publication and retargeting.Live
mainat0fa879ecf7c51946fa17e73304e468558c351b6cwas observed only, not imported or used as a new rebase target. Earlier layers and their frozen refs were not mutated.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.