[MCP] Hide codeunit APIs from Available APIs (AB#650771) - #11666
Draft
Divyanshu Kapoor (divyanshukapoor) wants to merge 2 commits into
Draft
Divyanshu Kapoor (divyanshukapoor) wants to merge 2 commits into
Divyanshu Kapoor (divyanshukapoor) wants to merge 2 commits into
Conversation
Remove Codeunit choices from the MCP Configuration Available APIs lookup while compiler support is pending. Page and Query selection and all dormant Codeunit validation, tool, and version plumbing remain unchanged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Divyanshu Kapoor (divyanshukapoor)
deployed
to
triage
September 21, 2026 13:41 — with
GitHub Actions
Active
Restrict the Object Type field on the Available APIs page to Page and Query using ValuesAllowed, so Codeunit is no longer selectable in the dropdown while remaining a valid Platform table option. Reverts the prior PopulateAPIObjects() population-block deletion, which is no longer needed with this approach; all dormant Codeunit validation/tool/version plumbing remains unchanged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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 & why
Platform compiler support for API codeunits is still pending. This removes Codeunit choices from the MCP Configuration Available APIs lookup to avoid presenting customers with options that cannot yet be used.
Page and Query lookup behavior is unchanged. All dormant Codeunit validation, tool creation, helper, and version plumbing remains in place so the option can be re-enabled when compiler support is available.
Linked work
N/A (no GitHub issue)
AB#650771
How I validated this
What I tested and the outcome (required - be specific: scenarios, commands, screenshots for UI changes)
origin/main: one MCP file changed, with four deletions and no insertions.Risk & compatibility
Low risk. The change only hides Codeunit choices from the Available APIs picker while compiler support is pending. It does not change Page or Query behavior, persisted configuration data, upgrade behavior, or dormant Codeunit validation/tool/version support.