mcp-context-forge icon indicating copy to clipboard operation
mcp-context-forge copied to clipboard

[BUG]: Discovery and client registration fail for Microsoft servers

Open a-effort opened this issue 1 month ago • 0 comments

Summary microsoft-foundry, sentinel-data-exploration, power-bi and the agent365-* entries set issuer: "https://login.microsoftonline.com/{tenantid}/v2.0". Microsoft publishes this template, but no code substitutes the tenant ID. CatalogOAuthForm.tsx:29-36 parses the string without checking it, so registration stores an issuer the server cannot fetch, and discovery and client registration both fail.

Proposed solution Add a Tenant ID field to entries whose catalog issuer contains a placeholder. Make the field required, and substitute its value into the issuer before submit.

Note: Authorization and token URLs don't need changes. They use the Entra common and organizations endpoints, which accept any tenant, and dcr_service.py:607 compares only the origin, so a tenant-specific issuer still matches them. Discovery then fetches https://login.microsoftonline.com/<tenant>/v2.0/.well-known/openid-configuration, which returns the same issuer.

If this change ships without the Tenant ID field, check Issuer URL for the placeholder inline.

a-effort avatar Nov 06 '26 04:11 a-effort