See what your AI agent does, why it decides, and where it fails.
MCP server CLI viewer zero dependencies file-based MIT licensenpm install -g @ura-dev/agentrace
Add to your AI tool config:
{
"mcpServers": {
"agentrace": { "command": "agentrace-mcp" }
}
}
Start a new trace session for a task
Log each action: tool call, file read, code change
Record decision points with options and reasoning
Capture errors with context and recoverability
End a trace with status and summary
List recent traces across sessions
agentrace list # Recent traces
agentrace view <trace-id> # Full trace with all events
agentrace watch <trace-id> # Real-time tail of active trace
agentrace stats # Trace statistics
const { createTrace, addStep, addDecision, endTrace } = require('@ura-dev/agentrace');
const { id } = createTrace({ name: 'deploy', agent: 'my-agent' });
addStep(id, { action: 'build', tool: 'npm', output: 'ok' });
addDecision(id, {
question: 'Deploy target?',
chosen: 'staging',
reasoning: 'Friday — no prod deploys'
});
endTrace(id, { status: 'completed' });