Skip to content

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

Merged
Amos Hersch (AmosHersch) merged 20 commits into
microsoft:mainfrom
HasanAboShally:feat/fabric-core-get-item
Oct 11, 2026
Merged

Amos Hersch (AmosHersch) merged 20 commits into
microsoft:mainfrom
HasanAboShally:feat/fabric-core-get-item

Conversation

@HasanAboShally

@HasanAboShally Hasan Abo-Shally (HasanAboShally) commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Built on #3887, which merged into main on October 8, 2026 at ddc99c03e2cd9516195fa275753d8dc1ff35e551. The user has marked this PR ready for review; that state is preserved.

Adds one read-only Fabric Core tool, core_get-item, for the Fabric Get Item API.

Current focused diff against landed main · Original infrastructure integration comparison · Test-only follow-up

  • Accepts required workspace and item UUID strings; validates and normalizes them before authentication or HTTP.
  • Returns only item ID, display name, type, workspace ID, and optional description. Both returned IDs must match the request. Future nonempty item types remain supported; no data, definitions, default identity, name resolution, or workload-specific properties are returned.
  • Accepts only the documented HTTP 200 metadata response, preserves HTTP failures, and gives validated delta/date Retry-After guidance without retries, redirects, or raw backend bodies.
  • Preserves the original command ID and read-only/idempotent annotations. Default MCP output remains content-only; compact and duplicated modes expose the typed schema and structuredContent.item.
  • Adds command/service and registered-handler coverage using substituted credentials and HTTP. Preserves the other 13 Core tools and the exact 37 prerequisite prompt rows; Get Item adds the 14th tool and three prompts, for 40 rows total.

Reuse of the current Fabric Core infrastructure

Get Item now inherits FabricCoreCommand<ItemGetOptions, ItemGetCommandResult>, including sanitized command validation and the registered-required-option allowlist. It uses the existing authenticated HTTP sender with named cancellation, caller-owned response/stream disposal, FabricCoreHttpHelpers.GetRetryAfter, and FabricThrottledException. Tests reuse the thread-safe FabricCoreHttpMessageHandler and shared sanitized-error assertions. The duplicate sender extraction, per-item throttling exception, and stub HTTP handler are not reintroduced. Authentication continues to use the host-configured credential provider per request.

The original Hasan Abo-Shally commits 3acf0c58036a14e9be308898153053fc98a33019 and 0c8bc64a3bf5e80928bbcb9b904a9aa777acba21 remain in ancestry. Integration merge b536c2dcdb73bda7ec21e3e076471c4a57e871f5 incorporates the verified prerequisite baf52180ff56bd128f4f4e1827f996e4e4e87361; merge 2314ad1fcc53a479a9bd2cccdaffe56d9b67d6cd also incorporates the actual squash-merged main. Both integration commits have the same tested tree, e80363ac6610176277bce7d9230c331d3a5984eb.

The original integration at 2314ad1f had a main-relative change of 22 files, +1,272/-11, limited to Get Item, its registration/schema tests, and Fabric documentation/changelog. The test-only follow-up below does not change its production behavior. There is no engineering, shared framework, dependency, project configuration, or other-toolset delta. Existing Create Item/LRO behavior, catalog nesting, workspace aliases, specialized retry-header semantics, consent, and authentication infrastructure remain unchanged.

Test-only catalog follow-up (October 8, 2026)

User-approved commit 5e4d3afa2, parent 2314ad1fcc53a479a9bd2cccdaffe56d9b67d6cd, changes 12 test-code/documentation files, +187/-163. Production source, command IDs/descriptions/options/models, authentication/HTTP/error handling, product documentation, all prompt rows, changelog entries, project files, and dependencies are byte-identical to the parent.

FabricCoreCatalogTests.ExpectedTools is the one independent test-owned manifest of MCP names, command types, and read-only eligibility. Adding a future Core tool requires one manifest entry plus its own implementation, registration, and tests, not edits to unrelated tools' catalogs or numeric totals. The manifest independently covers all 14 Core tools and the seven read-only tools. Exact comparisons test both CommandFactory and registered MCP discovery, including singleton registration, annotations, and schema consistency across legacy/compact/duplicated output. Eight negative cases prove missing, unexpected, duplicate, and misclassified entries fail in both catalog modes.

Per-tool schemas, metadata-only output, safe errors, validation before I/O, consent, and mutation rejection remain covered. Assignment read-only rejection now explicitly covers stdio and HTTP configuration before authentication, HTTP, or consent requests. Server startup tests retain actual stdio/HTTP startup, legacy initialization, representative Core schemas/annotations, and duplicate-name detection, without hard-coded global/Core totals or an exhaustive catalog copy. The existing Core test README documents this convention.

Fresh validation used .NET 10.0.401 and Microsoft.Testing.Platform:

Command Result
dotnet build tools\Fabric.Mcp.Tools.Core\tests\Fabric.Mcp.Tools.Core.Tests\Fabric.Mcp.Tools.Core.Tests.csproj --no-restore --verbosity 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 --filter-class '*FabricCoreCatalogTests' '*FabricCoreSetupTests' '*ItemDeleteToolRegistrationTests' '*ItemGetToolRegistrationTests' '*ItemUpdateToolRegistrationTests' '*WorkspaceAssignToCapacityToolRegistrationTests' '*WorkspaceCreateToolRegistrationTests' '*WorkspaceDeleteToolRegistrationTests' '*WorkspaceListToolRegistrationTests' '*WorkspaceUpdateToolRegistrationTests' 287 passed, 0 failed/skipped.
dotnet build servers\Fabric.Mcp.Server\tests\Fabric.Mcp.Server.Tests\Fabric.Mcp.Server.Tests.csproj --no-restore --verbosity 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 1,926 passed, 0 failed/skipped.
dotnet test --project servers\Fabric.Mcp.Server\tests\Fabric.Mcp.Server.Tests\Fabric.Mcp.Server.Tests.csproj --no-build --no-restore --filter-class '*ServerStartupTests' 5 passed, 0 failed/skipped.
git -c core.longpaths=true diff --check 2314ad1fcc53a479a9bd2cccdaffe56d9b67d6cd..5e4d3afa201510765a0bc48ae73e9a7aa0892096 Passed. The complete changed-path list is confined to Core test code, its README, and Fabric ServerStartupTests.cs.

The full Core count increases from 1,914 to 1,926: two separate setup/catalog cases are subsumed by six central discovery cases plus eight catalog-negative cases; the two old assignment catalog cases are replaced by two focused read-only transport cases. This is a coverage reorganization, not a production change or a claim that case counts alone prove coverage.

Both owning test projects passed dotnet format <project> --no-restore --verify-no-changes --include <changed C# paths> --verbosity quiet. .\eng\common\spelling\Invoke-Cspell.ps1 -FileList $files -PackageInstallCache <isolated session cache> passed for the 12 follow-up paths, with 0 spelling issues; $files was the parent-relative changed-file list. The missing pinned spelling tooling was restored into that temporary cache and removed afterward. Its unchanged lockfile still reported one moderate npm audit advisory; no repository/global dependencies were changed. Existing NuGet assets were reused.

No new Release, full-repository, native, NPX, evaluator, live Fabric, OBO/RBAC, or recorded-playback run was performed for this test-only follow-up. The integration and original-author evidence below is retained separately, not represented as freshly rerun.

Integration validation (October 8, 2026, at 2314ad1f)

All checks below ran during the infrastructure integration in the owning Windows worktree with .NET SDK 10.0.401 and Microsoft.Testing.Platform. Tests are offline unless explicitly identified as historical evidence below.

Command Result
dotnet build tools\Fabric.Mcp.Tools.Core\src\Fabric.Mcp.Tools.Core.csproj --no-restore --verbosity quiet Passed; 0 warnings, 0 errors, including after the main merge.
dotnet build tools\Fabric.Mcp.Tools.Core\tests\Fabric.Mcp.Tools.Core.Tests\Fabric.Mcp.Tools.Core.Tests.csproj --no-restore --verbosity 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 1,914 passed, 0 failed, 0 skipped: the prerequisite's 1,771 cases plus 143 Get Item cases.
dotnet build tools\Fabric.Mcp.Tools.Core\tests\Fabric.Mcp.Tools.Core.Tests\Fabric.Mcp.Tools.Core.Tests.csproj --configuration Release --no-restore --verbosity 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 --configuration Release --no-build --no-restore --filter-class '*ItemGetCommandTests' '*ItemGetToolRegistrationTests' 70 passed, including sanitized serialized errors and actual registered output schemas.
dotnet build servers\Fabric.Mcp.Server\src\Fabric.Mcp.Server.csproj --no-restore --verbosity quiet Passed; 0 warnings, 0 errors.
dotnet build servers\Fabric.Mcp.Server\tests\Fabric.Mcp.Server.Tests\Fabric.Mcp.Server.Tests.csproj --no-restore --verbosity 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' 5 passed; actual stdio/HTTP startup and the then-current cumulative catalog assertions.
.\servers\Fabric.Mcp.Server\src\bin\Debug\fabmcp.exe tools list --name-only Passed; 60 total tools, exactly 14 Core tools. All 40 prompt rows map to the catalog with valid interaction cells.
.\eng\scripts\Process-PackageReadMe.ps1 -Command validate -InputReadMePath servers\Fabric.Mcp.Server\README.md Passed with the same 14 inherited TOC heading-level warnings.
.\eng\scripts\Compile-Changelog.ps1 -ChangelogPath servers\Fabric.Mcp.Server\CHANGELOG.md -DryRun Passed; the original habos-fabric-core-get-item.yaml entry is retained and valid. No changelog files rewritten.
git -c core.longpaths=true diff --check ddc99c03e2cd9516195fa275753d8dc1ff35e551..2314ad1fcc53a479a9bd2cccdaffe56d9b67d6cd Passed.

Formatting passed using dotnet format with --no-restore --include limited to the Get Item layer's changed C# files in the Core source/test projects and ServerStartupTests.cs; the final Get Item command/service/registration test files also passed --verify-no-changes. .\eng\common\spelling\Invoke-Cspell.ps1 checked the 22 changed files with 0 spelling issues, using an explicitly isolated temporary -PackageInstallCache, removed after the run. Its unchanged locked tooling reported one moderate npm audit advisory; no repository dependencies were changed or upgraded.

The fresh worktree initially lacked NuGet assets; the existing Core and Fabric test dependencies were restored only after the corresponding NETSDK1004 failures. No full-repository build, native publishing, NPX verification, live Fabric/resource operations, real OBO/RBAC checks, recorded playback, or ToolDescriptionEvaluator run was performed for the integration. Registered-handler tests cover legacy/compact/duplicated output, stdio/HTTP configuration, and read-only filtering; they are not evidence of live authorization. Fabric tools are exempt from the mandatory ToolDescriptionEvaluator score under the current template. Ordinary required CI and human review still apply.

Historical author evidence (original September 17 commits; live checks September 16, 2026)

The following evidence is retained from Hasan Abo-Shally's original PR description, not claimed as newly run:

  • 118 Core tests passed, 0 failed, 0 skipped.
  • Formatting passed for both complete owning projects, without include filters.
  • Core XML-documentation compilation, Fabric host build, and spelling passed.
  • Native macOS arm64 publish passed after the runtime changes, with two existing compiler-cache warnings and no C# or AOT diagnostics. It preceded the final XML-documentation and indentation-only follow-up.
  • Package README validation retained 14 pre-existing TOC heading-level warnings, with no new warnings.
  • Manual native MCP discovery/schema checks and approved test-account live metadata/404 checks passed on September 16. Only metadata was read; no resources were changed. No live identifiers or response dumps are included.

The original Analyze failure and commit 0c8bc64a3 separated tool-catalog stderr from stdout and added four Pester regression tests. The author reported those four tests, Build-Local.ps1 -ServerName Fabric.Mcp.Server -VerifyNpx, and prompt validation with 49 tools, one server tested, zero skips and violations, plus rejection of an unknown tool in the negative check. That shared validator work is already landed through #3854 and is unchanged in this Get Item layer; its regression tests remain intact.

GitHub issue number?

No new tracking issue. The Fabric maintainer explicitly authorized this scoped adaptation of the existing #3701 and the push to its contributor branch, without a new issue or live-test infrastructure, and subsequently approved the test-only catalog refactor. This does not waive ordinary CI or human review.

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 (N/A: Fabric exemption; not run.)
    • For tools with new names, including new tools or renamed tools, update consolidated-tools.json (N/A: Azure-only mapping.)
    • For renamed tools, follow the Tool Rename Checklist and tag the PR with the breaking-change label (N/A: no renames.)
    • 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

The Azure-only checklist block above is not applicable to this Fabric-only change. This automated follow-up did not post live-pipeline comments, request reviewers, resolve threads, alter reviews/readiness/auto-merge, or merge the PR. The user's ready-for-review state is preserved; ordinary required CI and human review still apply.

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.

## 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: microsoft#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]>
@github-actions github-actions Bot added the server-Fabric.Mcp Microsoft Fabric MCP Server label Sep 17, 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.

## 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 microsoft#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: microsoft#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]>
Amos Hersch (AmosHersch) added a commit that referenced this pull request Oct 6, 2026
Read the tool catalog only from stdout while leaving stderr diagnostics visible. Add focused native-process Pester coverage for valid, malformed, and contaminated stdout without changing exit-code handling.

Adapted the engineering fix and regression tests from Hasan Abo-Shally's #3701 (commit 0c8bc64). No Fabric tool implementation is included.

Co-authored-by: Hasan Abo-Shally <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Amos Hersch (AmosHersch) and others added 14 commits October 8, 2026 11:29
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
…cture

Preserve the original Get Item commits while integrating PR microsoft#3887 at baf5218. Reuse shared sanitized command errors, authenticated HTTP, validated throttling, and the thread-safe test handler. Extend cumulative catalogs and retain metadata-only output, 40 prompt rows, and offline regression coverage.

Co-authored-by: Copilot App <[email protected]>
Record the actual squash-merged PR microsoft#3887 baseline without rewriting the original contributor or prerequisite history. Resolve duplicate-history conflicts using the tested integration because landed main and baf5218 have identical trees.

Co-authored-by: Copilot App <[email protected]>
@AmosHersch
Amos Hersch (AmosHersch) marked this pull request as ready for review October 8, 2026 12:09
@AmosHersch
Amos Hersch (AmosHersch) requested a review from a team as a code owner October 8, 2026 12:09
Copilot AI balanced review requested due to automatic review settings October 8, 2026 12:09

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

Required CI remains pending, and current offline tests do not establish live caller-authorization behavior.

0 open findings

What changed in this PR

Adds read-only core_get-item to the existing Fabric Core infrastructure, retrieving generic item metadata by workspace and item UUIDs.

Changes:

  • Adds validated metadata retrieval with sanitized errors and typed output.
  • Adds command, service, schema, and registration coverage.
  • Updates documentation, prompts, and the changelog.
File Description
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​WorkspaceListToolRegistrationTests.cs Updates read-only catalog expectations.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​WorkspaceDeleteToolRegistrationTests.cs Updates read-only catalog expectations.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​WorkspaceCreateToolRegistrationTests.cs Updates full and read-only catalogs.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​WorkspaceAssignToCapacityToolRegistrationTests.cs Updates cumulative catalog assertions.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​Services/​FabricCoreServiceItemGetTests.cs Tests retrieval, validation, errors, and cancellation.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​README.md Documents offline coverage and limitations.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​ItemGetToolRegistrationTests.cs Tests schemas and registered output modes.
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/​FabricCoreSetupTests.cs Verifies registration and tool count.
tools/​Fabric.Mcp.Tools.Core/​tests/​Fabric.Mcp.Tools.Core.Tests/​Commands/​ItemGetCommandTests.cs Tests command validation and sanitized failures.
tools/​Fabric.Mcp.Tools.Core/​src/​Services/​IFabricCoreService.cs Declares metadata retrieval contract.
tools/​Fabric.Mcp.Tools.Core/​src/​Services/​FabricCoreService.cs Implements validated single-request retrieval.
tools/​Fabric.Mcp.Tools.Core/​src/​Options/​ItemGetOptions.cs Defines required UUID inputs.
tools/​Fabric.Mcp.Tools.Core/​src/​Models/​ItemGetCommandResult.cs Defines typed result envelope.
tools/​Fabric.Mcp.Tools.Core/​src/​Models/​FabricItemMetadata.cs Defines metadata-only response model.
tools/​Fabric.Mcp.Tools.Core/​src/​Models/​CoreJsonContext.cs Registers source-generated serialization.
tools/​Fabric.Mcp.Tools.Core/​src/​FabricCoreSetup.cs Registers the new command.
tools/​Fabric.Mcp.Tools.Core/​src/​Commands/​ItemGetCommand.cs Implements read-only command handling.
servers/​Fabric.Mcp.Server/​tests/​Fabric.Mcp.Server.Tests/​Infrastructure/​ServerStartupTests.cs Verifies discovery, annotations, and inputs.
servers/​Fabric.Mcp.Server/​README.md Documents usage and behavior.
servers/​Fabric.Mcp.Server/​docs/​e2eTestPrompts.md Adds three selection prompts.
servers/​Fabric.Mcp.Server/​changelog-entries/​habos-fabric-core-get-item.yaml Records the new feature.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

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]>
@AmosHersch
Amos Hersch (AmosHersch) merged commit d302c6b into microsoft:main Oct 11, 2026
21 checks passed
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.

4 participants