How to debug Pega agent and Connect-MCP rule

I have an Agent smartshape in my case type which uses connect-MCP to send instructions to external MCP and capture the response back into the case. I can see the case is moving upto the shape, changes status to “Waiting for agent to process” and then eventually to Broken flow.
I am unable to find any log entry with Agent name and nothing in Sysadmin portal. Is there a queue processor which triggers the conect-mcp call which i can monitor and trace ?

Hi @Ashish_Pundir

Do you see any entry in instances of the Pega-Autopilot-Conversation class, usually Agent request and response is added in it.

Could you please confirm the tools available when you perform Test connectivity in your connector as a first step? I agree with @PIYUSH_SINHA to check Pega-Autopilot-Conversation.

If you want to debug in-depth, I would turn on MCP-related debuggers and test.

In Admin Studio > Log category, Pega ships with these two MCP log categories.

We can change the log level to ALL for pxIntegration.Connector.MCP or turn ALL for the both log categories if needed. You can also create a new log category and add more “mcp” related loggers.

I did the same earlier today to debug my MCP connector problem and they returned a good amount of debug details, which I provided to an expert assistant and led to a solution. Hope this helps.

thanks for pointing to this class. I was wondering where or if pega stores all converstations with AI assistant in the tool. I can see all instances of my interactions with AI assistant in infinity studio as well as in worker portal. But none showing the Agent call triggered from the case (Context IDs are mostly infinity studio and couple of UIPages, which i believe are from worker portal)

I can see Connectivity Success and one tool i configured in MCP server under available tools.

Pega-Autopilot-Conversation should display all the instances irrespective of Case level or portal level. If you’re not seeing Pega-Autopilot-Conversation, then enable GenAI on your tracer and @Will_Cho 's recommendation on the loggers to identify the rootcause. Please check the pega logs as well.