Skip to content

feat: live workload mode, MCP Docker/Railway deploy, new README#11

Merged
olyannaa merged 1 commit into
mainfrom
feature/live-mode-mcp-readme
Jul 1, 2026
Merged

feat: live workload mode, MCP Docker/Railway deploy, new README#11
olyannaa merged 1 commit into
mainfrom
feature/live-mode-mcp-readme

Conversation

@olyannaa

@olyannaa olyannaa commented Jul 1, 2026

Copy link
Copy Markdown
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>
@olyannaa
olyannaa merged commit 8c5a6d3 into main Jul 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant