Skip to content

Add Fabric LRO tracking and bounded Create Item polling - #3892

Merged
Amos Hersch (AmosHersch) merged 3 commits into
mainfrom
amoshersch-fabric-lro-tools-and-polling
Oct 11, 2026
Merged

Amos Hersch (AmosHersch) merged 3 commits into
mainfrom
amoshersch-fabric-lro-tools-and-polling

Conversation

@AmosHersch

@AmosHersch Amos Hersch (AmosHersch) commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds core_get-operation-state and core_get-operation-result, a shared asynchronous response dispatcher/poller, and the first initiating integration in core_create-item.

This is one cohesive, user-approved multi-tool feature: the two read tools, shared infrastructure, and Create Item integration intentionally use one ordinary PR directly to main. The one-tool-per-PR convention is waived for this feature; there is no stack.

The October 11 follow-up normally merges current main (d302c6bc2cd23f2e2f3a6d4f74c8251e1ec517a6), including merged Get Item #3701 and its catalog-test refactor, without rebasing or rewriting the original feature commit. FabricCoreCatalogTests.ExpectedTools remains the single independent manifest: 16 Core tools / 9 read-only tools. All 48 prompts are retained (40 from current main plus 8 LRO additions). Host startup keeps representative schema/annotation and duplicate-name checks without fixed global tool totals.

  • Both new read-only tools take only a nonempty operation UUID and perform one GET, with no implicit polling or retries. They share the exact low-level state/result routines used by the poller.
  • Create Item defaults to sync=false; sync=true waits asynchronously after acceptance. max-wait-seconds defaults to 120 and accepts finite positive values up to 600 seconds (10 minutes), inclusive, including fractions. The shared options enforce this at both command and service boundaries before authentication or POST, in both sync modes. Over-limit values are rejected, never silently clamped. This user-approved server operational guard limits MCP waiting, not Fabric operation duration. Budget expiry still returns a resumable receipt rather than reporting mutation failure.
  • early-poll=true permits one initial probe after at most 3 seconds, deliberately overriding a longer successful 202 hint. early-poll=false honors the initial hint. Subsequent polls and 429/503 GET retries honor validated hints, with a 20-second fallback and a one-second floor for zero/past hints. POST is never resubmitted.
  • Create Item follows its endpoint-specific 201/202 contract. The shared infrastructure supports synchronous 200 or 201 only when an adapter declares that status. Both modes immediately return documented synchronous completion without operation reads. Unexpected Create Item success statuses produce sanitized unconfirmed-outcome errors, never fabricated items.
  • Existing synchronous results.item is preserved; accepted/pending/failed/result-unavailable outcomes add typed operation receipts. Failed state reads are distinguished from a Fabric operation whose status is Failed. Confirmed success is not downgraded when result retrieval or local waiting stops.
  • Generic operation results support JSON and empty bodies, preserving JSON null versus no body, with a 1 MiB byte limit. Binary, oversized, and malformed results produce explicit sanitized errors. Explicit no-result adapters complete without requesting /result; absence of a link or HTTP 404 is not evidence of no-result success.
  • Requests use the existing authenticated sender and configured fixed Fabric API base. Response URLs are not followed, redirects remain disabled, response IDs cannot replace the requested ID, and each poll resolves credentials in the current execution context.
  • Capacity assignment remains submit-only; Catalog Search retains results.results.value. Get Item, other Core command contracts, transport/proxy wrappers, permissions, and confirmation behavior are preserved. Existing regression fixtures are adjusted only where stricter Create Item response validation requires documented 201 metadata.

The follow-up is split into merge commit 1a84998e741caa63fb7003819c78dcfc06394f61 and wait-cap commit e67c4978faddde99cc5fbb07227c57ad0dd98c01 for reviewability. The cap replaces the initial feature's allowance for arbitrarily large finite waits; no additional configuration framework was added.

Authoritative API references:

GitHub issue number?

No linked issue. Implements the approved Fabric LRO feature.

Pre-merge Checklist

  • Required for All PRs
    • Read contribution guidelines
    • PR title clearly describes the change
    • Commit history is clean with descriptive messages (cleanup guide)
    • Added comprehensive tests for new/modified functionality
    • Created a changelog entry if the change falls among the following: new feature, bug fix, UI/UX update, breaking change, or updated dependencies. Follow the changelog entry guide
  • For MCP tool changes:
    • One tool per PR: This PR adds or modifies only one MCP tool for faster review cycles
    • Updated servers/Azure.Mcp.Server/README.md and/or servers/Fabric.Mcp.Server/README.md documentation
    • Validate README.md changes running the script ./eng/scripts/Process-PackageReadMe.ps1. See Package README
    • For new or modified tool descriptions (excluding Fabric MCP tools), ran ToolDescriptionEvaluator and obtained a score of 0.4 or more and a top 3 ranking for all related test prompts
    • For tools with new names, including new tools or renamed tools, update consolidated-tools.json
    • For renamed tools, follow the Tool Rename Checklist and tag the PR with the breaking-change label
    • For new tools associated with Azure services or publicly available tools/APIs/products, add URL to documentation in the PR description
  • Extra steps for Azure MCP Server tool changes:
    • Updated command list in servers/Azure.Mcp.Server/docs/azmcp-commands.md
    • Ran ./eng/scripts/Update-AzCommandsMetadata.ps1 to update tool metadata in azmcp-commands.md (required for CI)
    • Updated test prompts in servers/Azure.Mcp.Server/docs/e2eTestPrompts.md
    • 👉 For Community (non-Microsoft team member) PRs:
      • Security review: Reviewed code for security vulnerabilities, malicious code, or suspicious activities before running tests (crypto mining, spam, data exfiltration, etc.)
      • Manual tests run: added comment /azp run mcp - pullrequest - live to run Live Test Pipeline

Checklist applicability: the multi-tool exception is intentional. This is Fabric-only, with no tool renames; Azure command references/consolidated mappings are not applicable. Fabric registration, discovery expectations, README, e2e prompts, and changelog are updated. ToolDescriptionEvaluator is optional for Fabric and was not run.

Validation

Fresh validation on October 11 for the merged feature and 600-second cap, using .NET 10.0.401 and Microsoft.Testing.Platform. HTTP and credentials are substituted except for local server startup transports.

Command Result
dotnet build .\tools\Fabric.Mcp.Tools.Core\src\Fabric.Mcp.Tools.Core.csproj --no-restore --nologo -v:quiet Passed, 0 warnings / 0 errors
dotnet build .\tools\Fabric.Mcp.Tools.Core\tests\Fabric.Mcp.Tools.Core.Tests\Fabric.Mcp.Tools.Core.Tests.csproj --no-restore --nologo -v:quiet Passed, 0 warnings / 0 errors
dotnet test --project .\tools\Fabric.Mcp.Tools.Core\tests\Fabric.Mcp.Tools.Core.Tests\Fabric.Mcp.Tools.Core.Tests.csproj --no-build --no-restore Passed, 2,191 tests, 0 skipped
dotnet build .\servers\Fabric.Mcp.Server\src\Fabric.Mcp.Server.csproj --no-restore --nologo -v:quiet Passed, 0 warnings / 0 errors
dotnet build .\servers\Fabric.Mcp.Server\tests\Fabric.Mcp.Server.Tests\Fabric.Mcp.Server.Tests.csproj --no-restore --nologo -v:quiet Passed, 0 warnings / 0 errors
dotnet test --project .\servers\Fabric.Mcp.Server\tests\Fabric.Mcp.Server.Tests\Fabric.Mcp.Server.Tests.csproj --no-build --no-restore --filter-class '*ServerStartupTests' Passed, 5 tests covering actual stdio/HTTP startup and registration
dotnet build .\tools\Fabric.Mcp.Tools.Core\tests\Fabric.Mcp.Tools.Core.Tests\Fabric.Mcp.Tools.Core.Tests.csproj -c Release --no-restore --nologo -v:quiet Passed, 0 warnings / 0 errors
dotnet test --project .\tools\Fabric.Mcp.Tools.Core\tests\Fabric.Mcp.Tools.Core.Tests\Fabric.Mcp.Tools.Core.Tests.csproj -c Release --no-build --no-restore --filter-class '*FabricOperationRunnerTests' '*FabricOperationServiceTests' '*FabricCoreServiceItemCreateLroTests' Passed, 179 focused Release tests
dotnet test --project .\tools\Fabric.Mcp.Tools.Core\tests\Fabric.Mcp.Tools.Core.Tests\Fabric.Mcp.Tools.Core.Tests.csproj --no-build --no-restore --filter-class '*FabricCoreServiceItemCreateLroTests' '*FabricOperationMcpTests' '*ItemCreateCommandTests' '*FabricCoreCatalogTests' Passed, 213 focused cap/catalog/integration tests before the final full run
dotnet format .\tools\Fabric.Mcp.Tools.Core\tests\Fabric.Mcp.Tools.Core.Tests\Fabric.Mcp.Tools.Core.Tests.csproj --no-restore --verify-no-changes --include $files --verbosity quiet Passed; $files was the explicit Core C# PR diff relative to merged main d302c6bc
dotnet 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 Passed
git -c core.longpaths=true diff d302c6bc2cd23f2e2f3a6d4f74c8251e1ec517a6 --check and cap-only git diff --cached --check Passed
.\eng\scripts\Process-PackageReadMe.ps1 -Command validate -InputReadMePath .\servers\Fabric.Mcp.Server\README.md Same 14 pre-existing TOC/heading diagnostics as current main; compared directly with no new diagnostics

$files | .\eng\common\spelling\Invoke-Cspell.ps1 -PackageInstallCache <session-local-cache> -LeavePackageInstallCache passed all 53 PR-diff files with zero spelling issues, using the repository-pinned tool after a missing-tool probe. No global installation or package-manifest change was made.

Boundary coverage includes the unchanged default, positive fractions, exactly 600 seconds, the next representable value above 600, huge finite values, NaN, infinities, zero, and negatives. Command/service cases prove rejection before authentication/POST in both sync modes. Fake-clock cases exercise the entire allowed 600-second budget under early and strict initial polling, returning the operation ID and last-known Running state at expiry and making no later GETs. Existing cancellation, late-success, result retrieval, backoff, no-result, JSON limit, and per-user identity tests remain passing.

Historical evidence, not a fresh cap-run claim: the initial October 8 feature passed 2,001 Core tests, 5 startup tests, 280 focused Release tests, and 162 scoped reflection-disabled service/poller/serializer cases. A broader reflection-disabled experiment failed in existing shared reflection-based test helpers before tool execution. Those helpers are unchanged and that broader experiment was not repeated for this follow-up.

No native publish, full-repository/NPX suite, real Fabric operations, live/OBO authorization, recorded tests, deployments, or evaluator calls were run. Unrelated Azure/engineering changes from main are inherited unchanged, including existing whitespace in servers/Azure.Mcp.Server/SUPPORT.md; they are not part of this PR's delta against current main. The PR remains ready for review, with no auto-merge enabled. Hosted CI completion has not been awaited.

Invoking Livetests

Copilot submitted PRs are not trustworthy by default. Users with write access 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.

Add single-read operation state/result tools and shared endpoint-specific response handling with cancelable bounded polling. Preserve synchronous item output, return resumable accepted/pending outcomes, and reject unsupported or oversized results.

Co-authored-by: Copilot App <[email protected]>
@github-actions github-actions Bot added the server-Fabric.Mcp Microsoft Fabric MCP Server label Oct 8, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@AmosHersch
Amos Hersch (AmosHersch) marked this pull request as ready for review October 8, 2026 17:02
Copilot AI balanced review requested due to automatic review settings October 8, 2026 17:02
@AmosHersch
Amos Hersch (AmosHersch) requested a review from a team as a code owner October 8, 2026 17:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The 58-file mutation and polling change has intricate cancellation and identity behavior and still awaits hosted CI and live validation.

0 open findings

What changed in this PR

Adds Fabric long-running-operation tracking and bounded asynchronous polling for Create Item.

Changes:

  • Adds single-read operation state/result tools with sanitized, bounded responses.
  • Integrates optional polling, retry guidance, cancellation, and resumable receipts into Create Item.
  • Adds extensive registration, serialization, service, MCP, and documentation coverage.
File Description
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​WorkspaceListToolRegistrationTests.cs Updates read-only discovery expectations.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​WorkspaceDeleteToolRegistrationTests.cs Updates read-only tool catalog.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​WorkspaceCreateToolRegistrationTests.cs Updates complete and read-only catalogs.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​WorkspaceAssignToCapacityToolRegistrationTests.cs Updates cumulative discovery expectations.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​TestSupport/​OperationTestTimer.cs Adds deterministic timer test double.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​TestSupport/​OperationTestTimeProvider.cs Adds virtual-time polling support.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​TestSupport/​OperationTestStream.cs Adds bounded-read and cancellation stream support.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​TestSupport/​FabricOperationTestData.cs Adds shared LRO fixtures.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​Services/​WorkspaceGetServiceTests.cs Adapts Create Item regression coverage.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​Services/​ItemListServiceTests.cs Adapts Create Item response tests.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​Services/​FabricOperationServiceTests.cs Tests state/result HTTP contracts.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​Services/​FabricOperationRunnerTests.cs Tests dispatcher and poller behavior.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​Services/​FabricCoreServiceWorkspaceUpdateTests.cs Updates shared-service regressions.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​Services/​FabricCoreServiceWorkspaceListTests.cs Updates Create Item regression coverage.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​Services/​FabricCoreServiceWorkspaceDeleteTests.cs Updates result and failure assertions.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​Services/​FabricCoreServiceWorkspaceCreateTests.cs Updates shared POST behavior tests.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​Services/​FabricCoreServiceItemUpdateTests.cs Updates Create Item compatibility tests.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​Services/​FabricCoreServiceItemDeleteTests.cs Updates shared operation coverage.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​Services/​FabricCoreServiceItemCreateLroTests.cs Adds end-to-end service LRO tests.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​Services/​FabricCoreServiceCapacityListTests.cs Updates Create Item regressions.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​Services/​FabricCoreServiceBaselineTests.cs Updates baseline creation contracts.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​Services/​CapacityGetServiceTests.cs Updates shared POST regression tests.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​README.md Documents LRO test architecture.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​ItemDeleteToolRegistrationTests.cs Updates read-only catalog expectations.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​FabricOperationMcpTests.cs Tests MCP schemas and outcomes.
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/​ItemCreateCommandTests.cs Updates command result and service contracts.
tools/​Fabric.Mcp.Tools.Core/​src/​Services/​IFabricCoreService.cs Exposes LRO reads and wait options.
tools/​Fabric.Mcp.Tools.Core/​src/​Services/​FabricThrottledException.cs Preserves validated retry guidance.
tools/​Fabric.Mcp.Tools.Core/​src/​Services/​FabricOperationWaitOptions.cs Defines polling configuration.
tools/​Fabric.Mcp.Tools.Core/​src/​Services/​FabricOperationRunner.cs Implements dispatching and bounded polling.
tools/​Fabric.Mcp.Tools.Core/​src/​Services/​FabricOperationOutcome.cs Models internal operation outcomes.
tools/​Fabric.Mcp.Tools.Core/​src/​Services/​FabricOperationHttp.cs Implements bounded LRO HTTP parsing.
tools/​Fabric.Mcp.Tools.Core/​src/​Services/​FabricOperationException.cs Adds sanitized operation failures.
tools/​Fabric.Mcp.Tools.Core/​src/​Services/​FabricOperationErrors.cs Maps operation errors safely.
tools/​Fabric.Mcp.Tools.Core/​src/​Services/​FabricOperationContract.cs Defines endpoint completion contracts.
tools/​Fabric.Mcp.Tools.Core/​src/​Services/​FabricOperationCanceledException.cs Retains receipts on cancellation.
tools/​Fabric.Mcp.Tools.Core/​src/​Services/​FabricCoreService.Operations.cs Implements state and result reads.
tools/​Fabric.Mcp.Tools.Core/​src/​Services/​FabricCoreService.cs Integrates Create Item LRO handling.
tools/​Fabric.Mcp.Tools.Core/​src/​Options/​OperationGetOptions.cs Adds operation UUID input.
tools/​Fabric.Mcp.Tools.Core/​src/​Options/​ItemCreateOptions.cs Adds Create Item wait controls.
tools/​Fabric.Mcp.Tools.Core/​src/​Models/​OperationStateResult.cs Models state-read output.
tools/​Fabric.Mcp.Tools.Core/​src/​Models/​OperationResult.cs Models JSON or empty results.
tools/​Fabric.Mcp.Tools.Core/​src/​Models/​ItemCreateCommandResult.cs Adds item-or-receipt output.
tools/​Fabric.Mcp.Tools.Core/​src/​Models/​FabricOperationStatus.cs Defines receipt statuses.
tools/​Fabric.Mcp.Tools.Core/​src/​Models/​FabricOperationState.cs Models Fabric operation state.
tools/​Fabric.Mcp.Tools.Core/​src/​Models/​FabricOperationReceipt.cs Models resumable receipts.
tools/​Fabric.Mcp.Tools.Core/​src/​Models/​FabricOperationIssue.cs Models sanitized issues.
tools/​Fabric.Mcp.Tools.Core/​src/​Models/​FabricOperationError.cs Models safe failure metadata.
tools/​Fabric.Mcp.Tools.Core/​src/​Models/​CoreJsonContext.cs Registers new AOT serialization models.
tools/​Fabric.Mcp.Tools.Core/​src/​FabricCoreSetup.cs Registers and advertises new commands.
tools/​Fabric.Mcp.Tools.Core/​src/​Commands/​OperationStateGetCommand.cs Adds the state-read command.
tools/​Fabric.Mcp.Tools.Core/​src/​Commands/​OperationResultGetCommand.cs Adds the result-read command.
tools/​Fabric.Mcp.Tools.Core/​src/​Commands/​ItemCreateCommand.cs Exposes bounded waiting and receipts.
servers/​Fabric.Mcp.Server/​tests/​Fabric.Mcp.Server.Tests/​Infrastructure/​ServerStartupTests.cs Verifies server discovery schemas.
servers/​Fabric.Mcp.Server/​README.md Documents LRO behavior and usage.
servers/​Fabric.Mcp.Server/​docs/​e2eTestPrompts.md Adds tool-selection prompts.
servers/​Fabric.Mcp.Server/​changelog-entries/​amoshersch-fabric-lro.yaml Records features and fixes.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Preserve Get Item and LRO functionality, retain the centralized Core catalog manifest, and combine documentation and operation-specific coverage.

Co-authored-by: Copilot App <[email protected]>
Keep the 120-second default and positive fractional budgets. Reject waits above 600 seconds at command and service boundaries before authentication or POST, and cover resumable pending outcomes at the maximum deadline.

Co-authored-by: Copilot App <[email protected]>
@AmosHersch
Amos Hersch (AmosHersch) merged commit 6ef5a3d into main Oct 11, 2026
21 checks passed
@AmosHersch
Amos Hersch (AmosHersch) deleted the amoshersch-fabric-lro-tools-and-polling branch October 11, 2026 13:19
msalaman added a commit that referenced this pull request Oct 12, 2026
* Fix advisor remediation deserialization for double version (#3880)

* Update export tool discovery description for Azure Terraform tools (#3737)

* fix(azureterraform): clarify export tool discovery

Make export intent visible in namespace and individual tool descriptions while preserving local command generation. Cover discovery, routing, provider forwarding, installation help, and HTTP restrictions with regression tests.

Disambiguate tools that competed for the same prompts by keying each description on its distinguishing selection signal. The aztfexport resource tool leads with the full Azure resource ID shape and states it exports only that resource, while the resourcegroup tool keys on a named resource group. The azurerm and azapi documentation tools state that they read reference documentation rather than querying live Azure resources, and identify their inputs by the azurerm_ prefix and the ARM namespace format respectively. The conftest workspace and plan tools distinguish a folder of Terraform .tf source files from an already generated tfplan.json.

Validated with the tool description evaluator against the azureterraform prompts, which improved top-choice selection from 70.0% to 93.3%, with all prompts remaining above the 0.40 confidence bar.

Add a checked-in Vally specification covering the prompts reported in the issue plus the tool pairs that compete for similar prompts. The conftest prompts in e2eTestPrompts.md are marked context-required and are therefore skipped by generated specifications, so the checked-in specification is the only Vally coverage for them.

Pin the disambiguating phrases with unit tests so that rewording a description cannot silently regress tool selection.

Addresses #3553

Co-authored-by: Copilot App <[email protected]>

* Clarify AzAPI docs API version wording

Replace the ambiguous 'optionally for a specific API version' phrase with an explicit statement that the tool returns the latest stable API version schema unless a specific API version is requested.

Co-authored-by: Copilot App <[email protected]>

---------

Co-authored-by: Copilot App <[email protected]>

* feat(fabric): add read-only core_get-item tool (#3701)

* feat(fabric): add read-only core get-item tool

## Summary
Add core_get-item to retrieve generic Fabric item metadata using known workspace and item IDs. Include input validation, typed results, safe retry guidance, registration, tests, documentation, prompts, and a changelog entry.

## Prompting Intent
The contributor requested one focused Fabric MCP tool, aligned with existing repository patterns, with no item data or definition access and no authentication changes. Preserve the existing creation and catalog-search behavior, address review findings, and submit a draft PR with incomplete validation explicitly identified.

## Linked Sources
- Fabric Get Item API: https://learn.microsoft.com/rest/api/fabric/core/items/get-item
- Contribution guide: https://github.com/microsoft/mcp/blob/main/CONTRIBUTING.md
- Command options guide: https://github.com/microsoft/mcp/blob/main/docs/option-conversion.md
- Recorded test guide: https://github.com/microsoft/mcp/blob/main/docs/recorded-tests.md
- Description evaluator: https://github.com/microsoft/mcp/blob/main/eng/tools/ToolDescriptionEvaluator/Quickstart.md
- Fabric test infrastructure: #3686

## Rationale
Keep string service inputs consistent with existing Core operations while validating and normalizing UUIDs before authentication. Use a dedicated metadata projection so definitions and workload-specific fields cannot leak into the result. Factor HTTP sending only to let the new read inspect status and Retry-After while preserving existing create/search handling. Use source-generated JSON and the shared MCP loader rather than another schema or execution path. Keep backend bodies out of errors and validate the registered tool with offline HTTP and credential substitutes.

All 118 Core tests, owning-project formatting, the Fabric host build, XML documentation compilation, and spelling passed. Native validation and bounded manual live reads also passed before the documentation-only follow-up. Description scoring and the required Fabric integration coverage remain pending maintainer coordination.

Co-authored-by: Copilot <[email protected]>

* fix(ci): keep tool catalog stderr out of JSON

## Summary
Stop merging native stderr into the JSON consumed by the tool-selection prompt validator. Add four Pester regression tests for stdout parsing, visible stderr diagnostics, and rejection of invalid or contaminated stdout.

## Prompting Intent
The contributor asked to fix the failed Analyze check in PR #3701 and update the existing PR. Keep the change limited to the validator and regression coverage, preserve strict prompt validation, and do not change the Fabric tool or suppress validation errors.

## Linked Sources
- PR: #3701
- Failing Analyze check: https://github.com/microsoft/mcp/runs/105130046877
- Validator: https://github.com/microsoft/mcp/blob/3acf0c58036a14e9be308898153053fc98a33019/eng/scripts/Test-ToolSelectionPrompts.ps1

## Rationale
Fabric correctly writes its tool catalog to stdout and startup diagnostics to stderr. The validator's merged capture made valid JSON unparseable. Removing the redirection preserves diagnostics and existing exit handling while parsing only stdout. The regression tests execute the actual capture and parse statements rather than a duplicate implementation.

All four Pester tests passed. Build-Local.ps1 -ServerName Fabric.Mcp.Server -VerifyNpx passed in a non-interactive process. The full Fabric prompt validator passed with 49 tools, one server tested, zero skips, and zero violations. The negative check still rejected prompts for tools outside the Fabric catalog. Spelling and whitespace checks passed.

Co-authored-by: Copilot <[email protected]>

* feat(fabric): add read-only core_get-workspace tool

Co-authored-by: Copilot App <[email protected]>

* feat(fabric): add read-only core_list-workspaces tool

Co-authored-by: Copilot App <[email protected]>

* feat(fabric): add read-only core_list-items tool

Add paginated workspace and folder inventory with typed metadata, safe continuation encoding, and sanitized failures. Cover the command, service, MCP pipeline, and local discovery without live Fabric requests.

Co-authored-by: Copilot App <[email protected]>

* feat(fabric): add core_create-workspace with capacity support

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]>

* feat(fabric): add core_update-workspace tool

Co-authored-by: Copilot App <[email protected]>

* feat(fabric): add core_update-item tool

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]>

* feat(fabric): add core_delete-item with explicit hard-delete opt-in

Co-authored-by: Copilot App <[email protected]>

* feat(fabric): add core_delete-workspace tool

Co-authored-by: Copilot App <[email protected]>

* Add submit-only Fabric workspace capacity assignment

Co-authored-by: Copilot App <[email protected]>

* Format assignment registration coverage

Co-authored-by: Copilot App <[email protected]>

* fix(fabric): preserve create and catalog search HTTP errors

Preserve response status in EnsureSuccessAsync and add operation-local HTTP guidance without changing shared error handling, result shapes, or retries. Cover service and command regressions, update old status-loss assertions, and add a Fabric bug-fix changelog entry.

Co-authored-by: Copilot App <[email protected]>

* fix(fabric): sanitize errors and validate creation and paging

Sanitize Create Item and Catalog Search public errors without changing status mappings or success contracts. Validate workspace UUIDs with the compatible alias, reject mixed catalog continuation criteria, document verified requirements, and correct Update Item error punctuation. Cover serialized Debug/Release errors and command/service validation.

Co-authored-by: Copilot App <[email protected]>

* fix(fabric): honor workspace contracts and deletion safety

Make workspace type optional across get, list, create, and update; retain configured HTTP transports while disabling automatic redirects; preserve confirmed delete responses during late cancellation and improve upstream 400 guidance. Correct all 23 invalid prompt interaction cells without changing 37 prompts, and add regression coverage and documentation.

Co-authored-by: Copilot App <[email protected]>

* fix(fabric): share sanitized errors and retain missing-option guidance

Report only registered required option names for Create Item validation failures while keeping parser details private. Centralize null exception results in an AOT-safe Fabric command base and consolidate five identical throttling exceptions without changing operation-specific errors, retry contracts, or deletion modes.

Co-authored-by: Copilot App <[email protected]>

* fix(fabric): sanitize shared Core parser errors

Sanitize structured parser failures after the framework handler while preserving required-option guidance and command-specific overrides. Cover real Boolean binding, unknown options, required-name allowlisting, and blank workspace-name parser failures without changing services or legacy creation behavior.

Co-authored-by: Copilot App <[email protected]>

* test(fabric): centralize Core catalog expectations

Keep one independent expected catalog for exact command and MCP discovery, read-only membership, singleton registration, and schema consistency. Preserve operation-specific tests while removing unrelated catalog copies and fragile host totals. Cover missing, extra, duplicate, and misclassified entries in both catalog modes and document the one-entry workflow for future tools.

Co-authored-by: Copilot App <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Amos Hersch <[email protected]>

* Add Fabric LRO tracking and bounded Create Item polling (#3892)

Add Fabric operation-state and operation-result tools, shared hybrid LRO handling, and optional bounded Create Item polling.

Keep a 120-second default with a server-enforced 600-second maximum, resumable receipts, and no automatic resubmission of the initiating mutation. Integrate the merged Get Item tooling and centralized catalog coverage.

Co-authored-by: Copilot App <[email protected]>

* Update Fabric REST API specifications and item definition documentation (#3914)

* Refresh Fabric static resources with a reusable updater

Refresh pinned REST API specifications and item-definition articles, preserve source bytes and attribution, and add a guarded two-step manual refresh with focused regression coverage.

Co-authored-by: Copilot App <[email protected]>

* Remove generated Fabric resource metadata

Keep source revisions in refresh results and required attribution in the existing Docs README. Stop embedding license and source manifests without changing API specifications or article content.

Co-authored-by: Copilot App <[email protected]>

* Limit Fabric refresh PR to updated resources

Remove repository maintenance tooling and restore baseline attributes and tests. Exclude the legacy Ontology article while preserving all remaining resource blobs.

Co-authored-by: Copilot App <[email protected]>

---------

Co-authored-by: Copilot App <[email protected]>

* Add URL validation for all ArmClient uses and add DNS->IP address resolution SSRF protections. (#3884)

* Add URL validation for all ArmClient uses and add DNS->IP address resolution SSRF protections. Introduce IEndpointValidator for improved unit testing and parallel test execution. Update documentation accordingly.

And a bunch of follow up squashed commits below...

Fix Fabric test compilation errors

Remove added difficulty around ServiceStartCommand testing.

Slight tinkering to HttpClientFactoryConfigurator.

Fix using sorting in NamespaceUpdateCommandTests.cs

Fix Speech live test regression caused by #3282.

Stabilize LoopbackHttpServer on macOS.

Application of IP address vs DefaultProxy is now calculated per-request due to dynamic nature of DefaultProxy, PACs, etc. Also other PR feedback.

More doc updates for using a proxy vs not and IP address filtering applied.

Remove NoSsrfClientName and disable auto-redirect for _all_ HttpClient instances of DI.

Enable NO_PROXY to hit the IP address filtering logic just like if a system/PAC proxy allows for bypassing a destination.

Clarify known limitation around a system-level dynamic proxies that change bypassing answers mid-request.

Fix networking unit tests by adding explicit proxy in DI. CI builds were picking up proxy setting from the host machine which prevented code paths related to our IP address filtering tests.

* Fix spelling error in FabricCoreSetupTests comment (rquests -> requests)

---------

Co-authored-by: Vinay Gera <[email protected]>

* Sync skill references from GitHub-Copilot-for-Azure (#3901)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Sync eng/common directory with azure-sdk-tools for PR 17165 (#3919)

* Remove only the DevOps release work item update functionality

---------

Co-authored-by: Jigyasa Chopra <[email protected]>
Co-authored-by: Yun Liu <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Hasan Abo-Shally <[email protected]>
Co-authored-by: Amos Hersch <[email protected]>
Co-authored-by: Amos Hersch <[email protected]>
Co-authored-by: Steven Vukelich <[email protected]>
Co-authored-by: Vinay Gera <[email protected]>
Co-authored-by: ghcp4a-bot[bot] <288718659+ghcp4a-bot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: azure-sdk-automation[bot] <191533747+azure-sdk-automation[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

server-Fabric.Mcp Microsoft Fabric MCP Server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants