-
Notifications
You must be signed in to change notification settings - Fork 412
[MCP] Server Features in MCP configuration: API Tools, Dynamic Tool Mode, Data Query Tools (Preview) #8085
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
onbuyuka
wants to merge
25
commits into
main
Choose a base branch
from
private/onbuyuka/631012-al-query-mcp-config-ui
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[MCP] Server Features in MCP configuration: API Tools, Dynamic Tool Mode, Data Query Tools (Preview) #8085
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
1835be5
[MCP] Prototype AL Query Server (Preview) feature in MCP configuratio…
onbuyuka 36d32d0
Merge remote-tracking branch 'origin/main' into private/onbuyuka/6310…
onbuyuka c9cbb4a
[MCP] Add mock facade APIs for AL Query Server (Preview)
onbuyuka b8e124e
[MCP] Drop AL Query Server design/mock markdown docs
onbuyuka 59fe84d
Merge remote-tracking branch 'origin/main' into private/onbuyuka/6310…
onbuyuka 3fe6525
[MCP] Iterate AL Query Tools UX (rename, Dynamic Tool Mode back as fe…
onbuyuka be58cfb
[MCP] Add API Tools as a Server Feature; rename sub-part to "Availabl…
onbuyuka 70a4a06
[MCP] Refactor Server Features to interface-based handlers
onbuyuka fb83ac6
[MCP] Iterate Server Features interface: rename, impl delegation, sys…
onbuyuka d856bb2
[MCP] Add Server Features tests; fix stale card TestPage assertions
onbuyuka bf28b17
Merge branch 'main' of https://github.com/microsoft/BCApps into priva…
onbuyuka d71487c
[MCP] Mock-persist feature activation; enforce Dynamic Tool Mode gate
onbuyuka 217071e
[MCP] Mock-comment cleanup + shorten Read-Only Objects caption
onbuyuka 49b399f
[MCP] Renumber MCP Feature Activation table 8360 -> 8356
onbuyuka 31cd774
[MCP] Config UX feedback + quality-pass cleanup
onbuyuka be70b85
[MCP] Pre-stage productionized code (commented) against BC-Platform #…
onbuyuka 2f3e8b8
[MCP] Productionize Server Features against BC-Platform #44811
onbuyuka 6bbb977
Merge branch 'main' of https://github.com/microsoft/BCApps into priva…
onbuyuka c660951
[MCP] Address PR review: telemetry dimensions, API Tools disable casc…
onbuyuka 77eff29
[MCP] Obsolete per-type lookup pages instead of deleting them (AS0029)
onbuyuka 5c3e69f
Merge branch 'main' of https://github.com/microsoft/BCApps into priva…
onbuyuka b9eb271
Apply suggestion from @onbuyuka
onbuyuka ef20fde
Merge branch 'main' into private/onbuyuka/631012-al-query-mcp-config-ui
onbuyuka 70be5a9
Address PR review: add missing tooltips, align API terminology, fix a…
onbuyuka dd77184
Delete docs/features/al-query-mcp-config-ui/design.md
onbuyuka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
53 changes: 53 additions & 0 deletions
53
src/System Application/App/MCP/src/Configuration/Codeunits/MCPApiToolsFeature.Codeunit.al
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| // ------------------------------------------------------------------------------------------------ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||
| // ------------------------------------------------------------------------------------------------ | ||
|
|
||
| namespace System.MCP; | ||
|
|
||
| codeunit 8369 "MCP API Tools Feature" implements "MCP Server Features" | ||
| { | ||
| Access = Internal; | ||
|
|
||
| procedure SetActive(ConfigId: Guid; Active: Boolean) | ||
| var | ||
| MCPConfigImplementation: Codeunit "MCP Config Implementation"; | ||
| begin | ||
| MCPConfigImplementation.EnableAPITools(ConfigId, Active); | ||
| end; | ||
|
|
||
| procedure IsActive(ConfigId: Guid): Boolean | ||
| var | ||
| MCPConfigImplementation: Codeunit "MCP Config Implementation"; | ||
| begin | ||
| exit(MCPConfigImplementation.IsAPIToolsEnabled(ConfigId)); | ||
| end; | ||
|
|
||
| procedure HasSettings(): Boolean | ||
| begin | ||
| exit(false); | ||
| end; | ||
|
|
||
| procedure OpenSettings(ConfigId: Guid) | ||
| begin | ||
| // No configurable settings. | ||
| end; | ||
|
|
||
| procedure Description(): Text[500] | ||
| begin | ||
| exit(DescriptionLbl); | ||
| end; | ||
|
|
||
| procedure LoadSystemTools(var MCPSystemTool: Record "MCP System Tool") | ||
| begin | ||
| // API Tools exposes no system tools. | ||
| end; | ||
|
|
||
| procedure TryGetParentFeature(var ParentFeature: Enum "MCP Server Feature"): Boolean | ||
| begin | ||
| exit(false); | ||
| end; | ||
|
|
||
| var | ||
| DescriptionLbl: Label 'Exposes the API Tools list on this configuration so the admin can curate which API pages and queries the MCP client can reach. Dynamic Tool Mode requires this feature to be enabled.'; | ||
| } |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.