feat: Add upload_entries MCP tool and push CLI command#96
Conversation
For multi-machine setups where session JSONL files live on client machines: - upload_entries: MCP tool that accepts raw JSONL entries and parses server-side - push: CLI command that reads local files and uploads to remote server Raw entries are sent (not pre-parsed) so future parser improvements apply to historical data. Deduplication via existing UUID logic. Usage: export AGENT_SESSION_ANALYTICS_URL=https://server.tailnet.ts.net/mcp agent-session-analytics-cli push --days 7 Part of #93 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Code ReviewSummaryThis PR adds remote ingestion support for multi-machine setups via a new Issues FoundCriticalNone Important
Suggestions
VerdictREQUEST_CHANGES - Missing tests, documentation, and benchmark entry per CLAUDE.md guidelines. Also has a bug where Automated review by Claude Code |
- Add get_sync_status MCP tool to return latest timestamp per session - Client queries server before sending to find what's new - Only uploads entries newer than server's latest per session - Change default --days to 365 (incremental sync makes this cheap) Flow: 1. Client reads local files, groups by session_id 2. Calls get_sync_status(session_ids) to get server's latest 3. Filters to only entries after server's timestamp 4. Uploads only the delta Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Code ReviewSummaryThis PR adds remote ingestion support for multi-machine setups via two new MCP tools ( Issues FoundCriticalNone Important
Suggestions
Previously Addressed (Filtered)
VerdictREQUEST_CHANGES - Missing tests, documentation, and benchmark entry per CLAUDE.md guidelines. Automated review by Claude Code |
- Add tests for get_sync_status and upload_entries - Document remote sync tools in guide.md - Add local_parse_errors counter to push command - Note sync tools in benchmark skip list Addresses claude-review feedback on PR #96. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Code ReviewSummaryThis PR adds remote ingestion support for multi-machine setups via two new MCP tools ( Issues FoundCriticalNone ImportantNone SuggestionsNone Previously Addressed (Filtered)
VerdictAPPROVE - All previous feedback has been addressed. The implementation is clean, secure (uses parameterized queries), well-tested, and properly documented. The PR correctly marks itself as "Part of #93" since hook integration and TAILSCALE_SETUP.md documentation are separate tasks. Automated review by Claude Code |
Feedback AddressedImplemented
|
Code ReviewSummaryThis PR adds remote ingestion support for multi-machine setups via two new MCP tools ( Issues FoundCriticalNone ImportantNone SuggestionsNone Previously Addressed (Filtered)
VerdictAPPROVE - All previous feedback has been addressed. The implementation is clean: uses parameterized SQL queries, has proper error handling with logging, includes 4 tests for the new functionality, and is well documented in guide.md. Automated review by Claude Code |
Summary
Adds remote ingestion support for multi-machine setups (issue #93).
New MCP tool:
upload_entriesNew CLI command:
pushUsage
Test plan
make checkpasses (384 tests)Part of #93
🤖 Generated with Claude Code