Skip to content

[MCP] Add MCP Connection String Generation and Entra Application Management#6140

Merged
onbuyuka merged 7 commits intomainfrom
features/616112-MCP3PApps
Jan 16, 2026
Merged

[MCP] Add MCP Connection String Generation and Entra Application Management#6140
onbuyuka merged 7 commits intomainfrom
features/616112-MCP3PApps

Conversation

@onbuyuka
Copy link
Copy Markdown
Contributor

@onbuyuka onbuyuka commented Jan 13, 2026

Summary

This PR adds features to help users easily configure third-party MCP clients to connect to Business Central by providing connection string generation and Entra application management capabilities.

Changes

New Objects

  • Table 8351 "MCP Entra Application" - Stores registered third-party Entra applications with their Client IDs, names, and descriptions
  • Page 8357 "MCP Entra Application List" - List page for managing registered Entra applications for MCP client connections
  • Page 8358 "MCP Connection String" - Dialog page to display and download MCP connection strings in JSON format

Modified Objects

  • MCPConfigImplementation.Codeunit.al - Added new #region Connection String with:

    • GenerateConnectionString() - Builds formatted JSON connection string with tenant ID, environment name, company, and configuration name
    • ShowConnectionString() - Opens the connection string dialog
    • Auto-detection of TIE vs Production environments for correct MCP URL prefix
  • MCPConfigCard.Page.al - Added promoted actions:

    • "Entra Applications" - Navigate to Entra application list
    • "Connection String" - Generate connection string for current configuration
  • MCPConfigList.Page.al - Added same promoted actions as Config Card

  • Permission Sets (MCPObjects, MCPAdmin, MCPRead) - Added permissions for new table and pages

Features

  1. Connection String Generation - Automatically generates properly formatted JSON connection strings with:

    • Auto-detected MCP URL (TIE or Production)
    • Tenant ID, Environment Name, Company, and Configuration Name in headers
    • Pretty-printed JSON displayed using RichContent with <pre> tags
    • Download as .txt file with naming pattern mcp-config-{configname}.txt
  2. Entra Application Registry - Allows admins to register third-party Entra applications so users can easily find the Client IDs needed for MCP client configuration

Work Item(s)

Fixes AB#616112

@onbuyuka onbuyuka changed the title [WIP][MCP] Add MCP Connection String Generation and Entra Application Management [MCP] Add MCP Connection String Generation and Entra Application Management Jan 14, 2026
@onbuyuka onbuyuka marked this pull request as ready for review January 14, 2026 12:04
@onbuyuka onbuyuka requested review from a team as code owners January 14, 2026 12:04
@onbuyuka onbuyuka enabled auto-merge (squash) January 14, 2026 12:04
@onbuyuka onbuyuka requested a review from a team as a code owner January 14, 2026 13:41
JesperSchulz
JesperSchulz previously approved these changes Jan 15, 2026
@onbuyuka onbuyuka merged commit 823be84 into main Jan 16, 2026
48 checks passed
@onbuyuka onbuyuka deleted the features/616112-MCP3PApps branch January 16, 2026 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants