Repository navigation
feat(fabric): add core_update-item tool - #3849
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-item
branch
from
October 5, 2026 23:49
469f14c to
a92fad0
Compare
Amos Hersch (AmosHersch)
changed the base branch from
main
to
amoshersch-fabric-update-workspace
October 5, 2026 23:49
This was referenced Oct 6, 2026
Amos Hersch (AmosHersch)
force-pushed
the
amoshersch-fabric-update-item
branch
2 times, most recently
from
October 6, 2026 12:28
e30a385 to
873b645
Compare
Amos Hersch (AmosHersch)
force-pushed
the
amoshersch-fabric-update-item
branch
2 times, most recently
from
October 7, 2026 11:49
68e8c27 to
6101a0c
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 PR description’s head/base SHAs and draft status no longer match the current GitHub state.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Adds the Fabric Core core_update-item tool for synchronous item metadata updates.
Changes:
- Adds validated PATCH handling, typed output, and sanitized errors.
- Registers and documents the new tool.
- Adds comprehensive offline tests.
| File | Description |
|---|---|
WorkspaceUpdateToolRegistrationTests.cs |
Extends read-only assertions. |
WorkspaceCreateToolRegistrationTests.cs |
Updates expected catalog. |
TestSupport/ItemUpdateTestData.cs |
Adds shared fixtures. |
TestSupport/ItemUpdateCancellationStream.cs |
Adds cancellation fixture. |
Services/FabricCoreServiceItemUpdateTests.cs |
Tests service behavior. |
tests/README.md |
Documents test coverage. |
Models/ItemUpdateSerializationTests.cs |
Tests serialization. |
ItemUpdateToolRegistrationTests.cs |
Tests MCP registration. |
FabricCoreSetupTests.cs |
Verifies setup registration. |
Commands/ItemUpdateCommandTests.cs |
Tests command behavior. |
Validation/ItemUpdateInputValidator.cs |
Validates update inputs. |
Services/ItemUpdateRequestException.cs |
Represents HTTP failures. |
Services/IFabricCoreService.cs |
Adds update contract. |
Services/FabricCoreService.cs |
Implements PATCH operation. |
Options/ItemUpdateOptions.cs |
Defines tool options. |
Models/UpdateItemRequest.cs |
Defines request payload. |
Models/ItemUpdateMetadata.cs |
Defines response metadata. |
Models/ItemUpdateCommandResult.cs |
Defines tool result. |
Models/CoreJsonContext.cs |
Registers serialization types. |
FabricCoreSetup.cs |
Registers the command. |
Commands/ItemUpdateCommand.cs |
Implements tool behavior. |
ServerStartupTests.cs |
Updates discovery assertions. |
Fabric.Mcp.Server/README.md |
Documents the tool. |
docs/e2eTestPrompts.md |
Adds selection prompts. |
changelog-entries/amoshersch-fabric-core-update-item.yaml |
Records the 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
Add validated metadata-only item updates with omitted and empty description semantics, source-generated output, and offline command/service/MCP coverage. Co-authored-by: Copilot App <[email protected]>
Amos Hersch (AmosHersch)
force-pushed
the
amoshersch-fabric-update-item
branch
from
October 8, 2026 08:29
6101a0c to
370dd2d
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-item(fabmcp core update-item), implementing the synchronous Update Item REST API.Depends directly on #3851, Update Workspace; the ultimate target remains
main. The immediate base isamoshersch-fabric-update-workspace. This PR is ready for review and belongs to native stack 3860. GitHub's current head/base refs identify the revision under review. The validation and recovery details below document historical snapshots from the original stack adaptation, not the current commit IDs or readiness state.display-nameordescription. Validation runs before credentials or HTTP. IDs are normalized before URL construction.displayName/descriptionproperties. Omission/null preserves existing values; an explicitly empty description clears it. Descriptions are limited to 256 characters. Display names must not be empty/whitespace; item-type naming rules remain service-defined, without an invented universal length limit.{ item: ... }metadata: ID, display name, type, workspace ID, and optional description. Both returned IDs must match the request. Definitions, data, permissions, tags, identity, and workload-specific properties are excluded. Invalid/incomplete responses fail explicitly rather than returning an empty success.Retry-Afterseconds. The original uncertain-update warnings and error messages are preserved.Item.ReadWrite.Allor the corresponding item-specific scope; service-principal/managed-identity support depends on item type. The host provider -> DataFactory per-request delegating credential -> Core typed-client DI bridge is unchanged.Adaptation to the shared foundation
Uses #3855's private
SendFabricHttpRequestAsync, explicitly retainingResponseHeadersReadand namedcancellationToken:. The single shared send and legacy create/search wrapper remain intact; no duplicate authentication/send helper is added.GetUpdateRetryAfterSecondsprojects onlyDeltavalues in0..int.MaxValuefromFabricCoreHttpHelpers.GetRetryAfter: dates remain ignored and header support/error wording are not widened. Nine added boundary cases cover normalization, signs, overflow, empty values, and past dates.Tests reuse thread-safe
FabricCoreHttpMessageHandler.CallCountinstead of a copied handler, while retainingItemUpdateCancellationStreamand every operation-specific case. The original command, options, validator, request/result/metadata models, exception, and specialized cancellation stream are byte-for-byte unchanged. Update Item output stays deliberately separate from List Items' richer whitelist.All lower-layer operations, tests, docs, prompts, and changelog entries are retained. Cumulative setup/discovery assertions are extended, not relaxed. Read-only discovery excludes every mutating Core tool. The named
WorkspaceGetMcpTests,WorkspaceGetServiceTests,ItemListMcpTests, andItemListServiceTestsfiles are unchanged; all five inherited host cases remain.The lower chain includes #3854's stdout/stderr validator fix. This layer adds no engineering, shared framework, production host/proxy, authentication, project, dependency, or live/recording infrastructure changes. Only host discovery-test assertions are extended for the new tool.
GitHub issue number?
N/A — this tool and in-place reorganization were requested directly. No tracking issue was supplied or created implicitly.
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 PipelineAzure-only checklist items and consolidated mappings are not applicable: Fabric registers
NullConsolidatedToolDefinitionProvider. No tool was renamed. Fabric-specific prompts are included instead; no live-test pipeline was invoked.Historical validation after stack adaptation
Recorded for head
a92fad0120739d227ab2aa867ec4c6d5fb4a9390on base946865bd09d184929650ed3c8ee6eb54b6144cf9, before subsequent stack rebases. These are the original commands and results, not a fresh run on the current PR revision..NET SDK 10.0.401. 1,206 focused offline tests passed, zero failed/skipped: 1,199 Core, five host, and two credential-bridge cases. All 1,049 parent Core cases remain, with 150 Update Item cases including nine new Retry-After boundary cases. Discovery contains 10 Core tools / 56 total Fabric tools. All 28 prompt rows match the catalog, including the 25 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' --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 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' --no-progressdotnet 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' --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 --no-pager diff --check '946865bd09d184929650ed3c8ee6eb54b6144cf9..HEAD' --$source,$tests, and$pathswere explicit layer-relative file arrays; formatting included all corresponding C# files.$cachewas an isolated session-local spelling directory, cleaned by the script.$outputwasJoin-Path $PWD '.work\stack-3849-prompt-build', verified absent before the fresh validator build. Git long-path support was process-local, not a repository/global configuration change.Coverage retains omitted/null/empty/whitespace descriptions, exact request keys, 256/257-character boundaries, unsupported arguments, validation before I/O, permission/status errors, invalid/missing/mismatched response metadata, cancellation during credentials/HTTP/deserialization, disposal, concurrent request isolation, existing create/search regressions, registered schemas, legacy/compact/duplicated output, and read-only exclusion/rejection. The read-only checks exclude create-item, create-workspace, update-workspace, and update-item without changing any existing assertion.
The former stderr/JSON prompt-validator failure is resolved by inherited #3854; the actual script now passes here. This is catalog-name validation, not a ToolDescriptionEvaluator score. No engineering workaround or additional script change is included in this layer.
Historical recovery and publication
The create-only local recovery ref
refs/backup/fabric-stack-3849-20261005retains original head469f14c23e244b04d42cb28f6328c7b308068327. Only its verified single tool commit after historical forkd4df988aae3ba1de008efe10f664f12817bdcc24was rebased onto the exact frozen Update Workspace tip. Publication used only the explicit lease--force-with-lease=refs/heads/amoshersch-fabric-update-item:469f14c23e244b04d42cb28f6328c7b308068327and the owning branch refspec.Own/lower PR states, refs, locks, auto-merge/merge-queue absence, and empty filtered native-stack membership were revalidated before publication/retargeting and verified afterward. The same PR number/branch remain. No lower refs were mutated. GitHub refreshed the old main-based PR metadata to
0fa879ecf7c51946fa17e73304e468558c351b6c; that was recorded as observation only, not imported or used as the rebase target.Explicit validation boundaries
6920249has 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.