Tried exposing pega as mcp by connecting with Copilot Studio but facing issue with authorization flow issue (attached). Tried client registration both as public and confidential in OAuth profile. Using community edition.
If the OAuth client is configured as a public client, connecting to the MCP URL from an external AI agent will prompt you to log in to Pega. Pega MCP supports both Authorization Code and Client Credentials OAuth grant types. Is it asking you to launch Pega for authorization?
When using the Authorization Code grant, you’ll be required to authenticate through Pega manually to exchange the authorization code for an access token, and a valid redirect URI must also be configured.
If your AI agent supports the Client Credentials grant type, try creating a confidential OAuth client in Pega and configure the agent with the corresponding client ID and client secret and access token URLs.
Tried the both grant types but the issue is same. Yes when using client credentials it is launching pega to provide credentials, after providing credentials, i m getting above error in client side.
Is it form a Pega Labs instance? If so, they have an issue with IP whitelisting I guess. It did not work for Pega Labs instance for me as well. But, worked fine with Community edition.
Pega labs instance did not worked for me as well, but same issue with comunity edition. Are you trying to access MCP via copiolet studio or claude? Can you please provide the steps you followed?

