Debug with Agent
User wants to debug an error using an external AI agent.
Instructions
- •
Parse the user's input to extract:
- •agent: the agent to use (
codex,gemini, orcopilot) - •error: the error message or description
- •If no agent is specified, ask the user which agent to use
- •agent: the agent to use (
- •
Gather additional context:
- •If there's relevant code in the conversation, include it as
code - •If there's a stack trace or logs, include as
context
- •If there's relevant code in the conversation, include it as
- •
Call the MCP tool
mcp__all-agents-mcp__debug_withwith:- •
agent: target agent ID - •
error: the error message - •
code(optional): relevant code context - •
context(optional): stack trace, logs, or other context
- •
- •
Display the debug analysis as-is. The response includes root cause analysis, fix steps, and prevention recommendations.
Examples
- •
/all-agents-mcp:debug codex TypeError: Cannot read property 'map' of undefined - •
/all-agents-mcp:debug gemini ECONNREFUSED when connecting to database