You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Add Cloud Logger Commands for Observability

This PR adds new commands for configuring logging and retrieving logs from deployed MCP apps:
- Adds `mcp-agent cloud logger configure` to set up OTEL endpoints and headers for log collection
- Adds `mcp-agent cloud logger tail` to retrieve and stream logs from deployed apps
- Supports filtering logs by time duration with `--since` parameter
- Implements pattern matching with `--grep` to filter log messages
- Adds continuous log streaming with `--follow` flag
- Supports sorting logs by timestamp or severity with `--order-by`, `--asc`, and `--desc` options
- Provides multiple output formats: text (default), JSON, and YAML
- Automatically converts timestamps to local time for better readability
- Implements proper log level styling with color-coded output
- Handles graceful interruption of log streaming
- Adds utility functions for resolving app identifiers and server URLs
The implementation includes robust error handling, clear user feedback, and comprehensive help documentation.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- New Features
- Introduced a “cloud logger” CLI subgroup for logging and observability.
- Added a “configure” command to set OTEL logging endpoint and headers, with optional connection testing and saved configuration.
- Added a “tail” command to fetch or stream app logs with filters and formatting:
- Options: --follow, --since, --grep, --limit, --order-by (timestamp|severity), --asc/--desc
- Output formats: text, json, yaml (colorized text)
- Handles authentication, connectivity, and clear error messages.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
0 commit comments