Date: 2025-12-27 Feature: 017-activity-cli-commands
- MCPProxy daemon running (
mcpproxy serveor tray app) - At least one upstream server configured
- Some tool calls made (to generate activity data)
# Show last 50 activities
mcpproxy activity list
# Show last 10 tool calls only
mcpproxy activity list --type tool_call --limit 10
# Show errors from specific server
mcpproxy activity list --server github --status error# Stream all activity in real-time
mcpproxy activity watch
# Watch only github server
mcpproxy activity watch --server github
# Press Ctrl+C to stop# Get ID from list command, then show details
mcpproxy activity show 01JFXYZ123ABC
# Include full response body
mcpproxy activity show 01JFXYZ123ABC --include-response# 24-hour summary (default)
mcpproxy activity summary
# Weekly summary
mcpproxy activity summary --period 7d# Export to JSON Lines file
mcpproxy activity export --output activity.jsonl
# Export to CSV
mcpproxy activity export --format csv --output activity.csv
# Export specific date range
mcpproxy activity export \
--start-time 2025-01-01T00:00:00Z \
--end-time 2025-01-31T23:59:59Z \
--output january.jsonlAll commands support multiple output formats:
# Table (default, human-readable)
mcpproxy activity list
# JSON (for scripting/AI agents)
mcpproxy activity list -o json
mcpproxy activity list --json # shorthand
# YAML
mcpproxy activity list -o yaml# 1. Find recent errors
mcpproxy activity list --status error --limit 5
# 2. Get details for specific error
mcpproxy activity show <id-from-step-1># Watch what an AI agent is doing in real-time
mcpproxy activity watch
# Or filter to specific session
mcpproxy activity list --session <session-id># Monthly audit export
mcpproxy activity export \
--start-time "$(date -u -d '1 month ago' +%Y-%m-%dT00:00:00Z)" \
--include-bodies \
--output audit-$(date +%Y-%m).jsonl- Use
--jsonoutput for piping tojqfor complex filtering - The watch command automatically reconnects on network issues
- Export streams directly to file without loading all records in memory
- Time filters use RFC3339 format:
2025-12-27T10:30:00Z