Repository navigation
feat(fabric): add read-only core_list-items tool - #3843
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-list-items
branch
from
October 5, 2026 22:26
4dd8b88 to
38e5a09
Compare
Amos Hersch (AmosHersch)
changed the base branch from
main
to
amoshersch-fabric-list-workspaces
October 5, 2026 22:26
This was referenced Oct 5, 2026
Amos Hersch (AmosHersch)
force-pushed
the
amoshersch-fabric-list-items
branch
2 times, most recently
from
October 6, 2026 12:28
9c44ba1 to
94040f4
Compare
Amos Hersch (AmosHersch)
force-pushed
the
amoshersch-fabric-list-items
branch
2 times, most recently
from
October 7, 2026 11:49
9f2a58b to
7b763d7
Compare
Amos Hersch (AmosHersch)
marked this pull request as ready for review
October 7, 2026 12:53
Contributor
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
The supplied validation evidence leaves required hosted CI and final maintainer review of the stacked change outstanding.
Review effort: Balanced
Findings: None
What changed in this PR
Adds read-only core_list-items to Fabric Core, building on the List Workspaces dependency to support workspace and folder inventory.
Changes:
- Adds single-page listing with optional filters, typed metadata, and continuation information.
- Preserves shared authentication and HTTP handling, with input validation and sanitized errors.
- Adds offline tests, discovery assertions, documentation, prompts, and a changelog entry.
| File | Description |
|---|---|
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/WorkspaceListToolRegistrationTests.cs | Updates cumulative discovery expectations. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/TestSupport/ItemListTestData.cs | Adds shared item-list fixtures. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/TestSupport/CancellationHttpContent.cs | Supports cancellation testing. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Services/ItemListServiceTests.cs | Tests requests, pagination, validation, and failures. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/README.md | Documents coverage and validation boundaries. |
| tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/ItemListMcpTests.cs | Tests registered tool schemas and calls. |
| 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/ItemListCommandTests.cs | Tests options, results, and error mapping. |
| tools/Fabric.Mcp.Tools.Core/src/Services/IFabricCoreService.cs | Defines the listing service contract. |
| tools/Fabric.Mcp.Tools.Core/src/Services/FabricItemListThrottledException.cs | Provides validated throttling guidance. |
| tools/Fabric.Mcp.Tools.Core/src/Services/FabricCoreService.cs | Implements single-page item retrieval. |
| tools/Fabric.Mcp.Tools.Core/src/Options/ItemListOptions.cs | Defines workspace and filter inputs. |
| tools/Fabric.Mcp.Tools.Core/src/Models/ItemListResponse.cs | Models the REST response page. |
| tools/Fabric.Mcp.Tools.Core/src/Models/ItemListCommandResult.cs | Models typed tool output. |
| tools/Fabric.Mcp.Tools.Core/src/Models/FabricItemTag.cs | Models item tags. |
| tools/Fabric.Mcp.Tools.Core/src/Models/FabricItemSummary.cs | Defines permitted inventory metadata. |
| tools/Fabric.Mcp.Tools.Core/src/Models/FabricItemSensitivityLabel.cs | Models sensitivity-label metadata. |
| tools/Fabric.Mcp.Tools.Core/src/Models/CoreJsonContext.cs | Registers source-generated serialization. |
| tools/Fabric.Mcp.Tools.Core/src/FabricCoreSetup.cs | Registers and advertises the tool. |
| tools/Fabric.Mcp.Tools.Core/src/Commands/ItemListCommand.cs | Implements validation and command handling. |
| servers/Fabric.Mcp.Server/tests/Fabric.Mcp.Server.Tests/Infrastructure/ServerStartupTests.cs | Checks discovery and parses event-stream responses. |
| servers/Fabric.Mcp.Server/README.md | Documents usage, pagination, and permissions. |
| servers/Fabric.Mcp.Server/docs/e2eTestPrompts.md | Adds four tool-selection prompts. |
| servers/Fabric.Mcp.Server/changelog-entries/amoshersch-fabric-core-list-items.yaml | Records the new feature. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
KupoCat
approved these changes
Oct 8, 2026
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]>
Amos Hersch (AmosHersch)
force-pushed
the
amoshersch-fabric-list-items
branch
from
October 8, 2026 08:29
7b763d7 to
234c114
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 one read-only Fabric Core tool,
core_list-items, for the List Items REST API.Depends on #3842 (List Workspaces). This existing draft now targets
amoshersch-fabric-list-workspacesat frozen parentf3bde1c0278f94841aa8b7aee3bccc2eeeb739bb; the stack's ultimate target ismain. The layer is one commit,38e5a09ecf14ba1129e666a7a5d9df3c377eadc4, across 24 files relative to that parent. Earlier layers supply the other workspace/capacity tools, shared Core foundations, and prompt-validator fix; this PR's delta adds only List Items.true), and continuation token.%3Dtoken representation rather than double-escaping it to%253D, safely encodes raw delimiters, and retains ordinary .NET URI normalization of unreserved characters (%41toA,%7eto~). Output tokens remain unchanged. Never decodes Base64 or follows returned URIs.DefaultIdentity: the expansion is neither requested nor serialized. Also excludes item data, definitions, workload-specific properties, writes, automatic pagination/retries, and LRO polling.The rebased implementation reuses
FabricCoreService.SendFabricHttpRequestAsyncwith its existing bufferedResponseContentReaddefault and named cancellation argument, plusFabricCoreHttpHelpers.GetRetryAfter/EncodeContinuationToken. It keeps the List Items-specific throttled exception and status/message contract. No duplicated send helper or legacy create/search changes.Offline tests reuse
FabricCoreHttpMessageHandler; item-specific service and registered-handler tests now live inItemListServiceTestsandItemListMcpTests. Every original item test case/assertion is retained, with one added unreserved-URI-normalization case. Cumulative registration assertions, lower-layer documentation/prompts, and the five default/all-mode host tests are preserved. No production host/authentication, shared framework, engineering-script, dependency, or project-configuration changes are introduced by this layer.Verification rerun on the combined branch
Commands ran from the repository root against the rebased head. 756 tests passed, zero failed/skipped: 749 Core, five Fabric host, two credential-delegation tests.
dotnet build tools\Fabric.Mcp.Tools.Core\src\Fabric.Mcp.Tools.Core.csproj --nologo --verbosity quietdotnet build tools\Fabric.Mcp.Tools.Core\tests\Fabric.Mcp.Tools.Core.Tests\Fabric.Mcp.Tools.Core.Tests.csproj --nologo --verbosity quietdotnet build servers\Fabric.Mcp.Server\src\Fabric.Mcp.Server.csproj --nologo --verbosity quietdotnet test --project tools\Fabric.Mcp.Tools.Core\tests\Fabric.Mcp.Tools.Core.Tests\Fabric.Mcp.Tools.Core.Tests.csproj --no-build --filter-not-trait "TestType=Live" --no-progressdotnet test --project servers\Fabric.Mcp.Server\tests\Fabric.Mcp.Server.Tests\Fabric.Mcp.Server.Tests.csproj --filter-not-trait "TestType=Live" --no-progressdotnet test --project tools\Fabric.Mcp.Tools.DataFactory\tests\Fabric.Mcp.Tools.DataFactory.Tests\Fabric.Mcp.Tools.DataFactory.Tests.csproj --filter-class "Fabric.Mcp.Tools.DataFactory.Tests.ProviderDelegatingCredentialTests" --no-progressdotnet format tools\Fabric.Mcp.Tools.Core\src\Fabric.Mcp.Tools.Core.csproj --verify-no-changes --no-restore --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 --verbosity quietdotnet format servers\Fabric.Mcp.Server\tests\Fabric.Mcp.Server.Tests\Fabric.Mcp.Server.Tests.csproj --verify-no-changes --no-restore --verbosity quietgit --no-pager diff --name-only f3bde1c0278f94841aa8b7aee3bccc2eeeb739bb...HEAD -- | ForEach-Object { $_.Replace('/', '\') } | .\eng\common\spelling\Invoke-Cspell.ps1 -PackageInstallCache .work\fabric-stack-3843-cspell.\eng\scripts\Process-PackageReadMe.ps1 -Command validate -InputReadMePath servers\Fabric.Mcp.Server\README.md.\eng\scripts\Test-ToolSelectionPrompts.ps1 -ServerName Fabric.Mcp.Server -OutputPath .work\fabric-stack-3843-validation.\.work\fabric-stack-3843-validation\Fabric.Mcp.Server\windows-x64\fabmcp.exe tools list --name-onlyfabmcp.exe server start --mode all --namespace core --structured-output-mode compact --disable-proxy-tools, with localtools/listand malformed-UUIDtools/callrequestsThe exact Core set is
core_create-item,core_search-catalog,core_get-capacity,core_list-capacities,core_get-workspace,core_list-workspaces, andcore_list-items.The earlier prompt-validator stderr/JSON failure is no longer current: the fix inherited through #3854 passes on this combined branch. No additional engineering-script fix was made here.
Explicit validation boundaries and current CI
ToolDescriptionEvaluator: not run; maintainer exemption. The Fabric MCP maintainer has waived the score/ranking requirement for this PR. Configuration is unavailable; no score or top-three ranking is claimed. The checkbox remains unchecked because the evaluator was not run. Normal code review and required CI still apply.
Live Fabric requests, real OBO token exchange/authorization, and recorded playback were not exercised. Offline substitutions do not establish real service behavior, tenant isolation, or RBAC enforcement. The user scoped Fabric live/recorded infrastructure and real-service/OBO evidence out of this tool PR's gates; no such infrastructure, deployments, credentials, or shared Azure host/proxy changes are added or awaited.
Broad NPX packaging and native AOT publication were not rerun for this rebase, as requested. Their earlier results apply only to original head
4dd8b885de889e4ecb8204df29e793767eb0f620, not this combined branch. The current checks include the fresh trimmed publish invoked by the prompt validator. The historicalBuild-Local.ps1 -VerifyNpxcache-clear failure is not relabeled as a pass.At the post-retarget CI snapshot for
38e5a09ecf14ba1129e666a7a5d9df3c377eadc4, SpellCheck, license/CLA, and the agentless tag check passed; ADO initialization/source-analysis checks were cancelled, while the overall ADO check and remaining GitHub checks were queued. Required hosted CI is not complete or claimed green. Maintainer review and actual required CI still apply.Rebase safety
The original single-tool slice was rebased onto the exact frozen parent, without importing later
mainchanges. Local create-only recovery refrefs/backup/fabric-stack-3843-20261005retains original head4dd8b885de889e4ecb8204df29e793767eb0f620. Publication used an explicit lease against that original remote head, followed by verification of the same PR/branch, exact new head/base, draft status, no auto-merge/queue, and empty native stack membership. No PR replacement, merge, closure, or native stack registration was performed.GitHub issue number?
No linked tracking issue was provided for this approved single-tool change. No issue was 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 PipelineThe consolidated mapping, rename checklist, and Azure MCP-specific items above are not applicable: this layer adds one Fabric tool, renames none, and the Fabric host uses
NullConsolidatedToolDefinitionProvider. Four List Items prompts are appended to the inherited Fabric prompts rather than replacing them.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.