Skip to content

DCR not detected for MCP server despite valid /.well-known metadata #16135

@Nitin2108

Description

@Nitin2108

When adding the Production MCP server (https://cloudimanage.com/mcp/work) as a declarative agent using the M365 Agents Toolkit, VS Code does not detect that the server supports Dynamic Client Registration (DCR). Instead of auto-registering a client, it falls back to prompting for a static client configuration with an HTTP redirect URL.

The OAuth Authorization Server metadata is publicly accessible and correctly advertises DCR support:
https://cloudimanage.com/.well-known/oauth-authorization-server

Image

The same flow works correctly against our DEV environment (https://work-mcp-ue2-dev.imanage.work/mcp/work), where DCR is auto-detected and client registration completes without manual input.

Expected behavior:
VS Code should fetch the /.well-known/oauth-authorization-server metadata, detect the DCR endpoint, and automatically register itself as a client — consistent with the behavior observed on the DEV environment.

Actual behavior:
VS Code skips DCR detection on the Production URL and presents a static client registration form requiring an HTTP redirect URL.

Environment:
OS | macOS Tahoe 26.5.1
VS Code Version | 1.124.0
Extension | M365 Agents Toolkit
Production MCP URL | https://cloudimanage.com/mcp/work
DEV MCP URL | https://work-mcp-ue2-dev.imanage.work/mcp/work

Metadata

Metadata

Assignees

Labels

upstreamThe issue is tracked external dependency

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions