feat: live workload mode, MCP Docker/Railway deploy, new README#11
Merged
Conversation
olyannaa
commented
Jul 1, 2026
Owner
- Add clickadvisor/workload/live_reader.py: ClickHouse HTTP live reader that queries system.query_log and returns rows in the same dict format as CSV import, keeping analyzer.py unchanged
- Refactor analyzer.py: extract _accumulate_rows/_build_report helpers, add analyze_query_log_rows() for in-memory row lists (live mode)
- Update workload CLI command: add --connect, --since, --user, --password flags for live mode; --query-log is now optional; both modes share the same analysis/rendering path
- Add clickadvisor/mcp_server/main.py: supports --transport stdio|sse, --host, --port; SSE mode starts a Starlette+uvicorn server with /sse and /health endpoints for Docker/Railway deployment
- Replace Dockerfile: python:3.11-slim, poetry install (no venv), PORT env var, CMD runs python -m clickadvisor.mcp_server --transport sse
- Add railway.toml: one-click Railway deploy pointing at the Dockerfile
- Replace README.md: new user-facing README covering all three usage modes, MCP hosting options (remote/local/stdio), architecture, DS layer, rule catalog, security posture, and roadmap
- Add clickadvisor/workload/live_reader.py: ClickHouse HTTP live reader that queries system.query_log and returns rows in the same dict format as CSV import, keeping analyzer.py unchanged - Refactor analyzer.py: extract _accumulate_rows/_build_report helpers, add analyze_query_log_rows() for in-memory row lists (live mode) - Update workload CLI command: add --connect, --since, --user, --password flags for live mode; --query-log is now optional; both modes share the same analysis/rendering path - Add clickadvisor/mcp_server/__main__.py: supports --transport stdio|sse, --host, --port; SSE mode starts a Starlette+uvicorn server with /sse and /health endpoints for Docker/Railway deployment - Replace Dockerfile: python:3.11-slim, poetry install (no venv), PORT env var, CMD runs python -m clickadvisor.mcp_server --transport sse - Add railway.toml: one-click Railway deploy pointing at the Dockerfile - Replace README.md: new user-facing README covering all three usage modes, MCP hosting options (remote/local/stdio), architecture, DS layer, rule catalog, security posture, and roadmap Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.