ARO-HCP IntelHub captures releases, incidents, and documentation into a change-aware knowledge fabric. It links pull requests, deployments, and operational notes so SREs can ask what changed, why it changed, and how to respond, all through the MCP interface.
flowchart TD
GH[GitHub API] -->|PR metadata| INGEST[cmd/ingest<br/>batch modes]
INGEST -->|Fetch & checkout| CLONES[Local repo cache]
CLONES -->|Diffs & docs| INGEST
INGEST -->|Embeddings & summaries| DB[(internal/db<br/>Postgres + pgvector)]
subgraph Serving
direction TB
DB --> MCP[cmd/mcp-server<br/>search_prs / search_docs / get_pr_details / trace_images]
MCP --> CLIENTS[MCP clients]
end
cmd/ingestruns as a batch job: it pulls PR metadata from GitHub, syncs local clones, computes diffs/docs, and generates embeddings via Ollama.internal/dbstores the precomputed metadata, embeddings, and document chunks in Postgres with pgvector for serving.cmd/mcp-serverruns continuously, exposingsearch_prs,search_docs,get_pr_details, andtrace_imagesbacked entirely by precomputed content.
- Configure: Copy and tweak environment defaults (
cp config.env config.local.env) or export variables directly. - Start Postgres:
make compose-uplaunches the pgvector-enabled database via docker-compose. - Bootstrap Schema:
make db-bootstrap(ormake compose-db-bootstrap) applies migrations usingcmd/dbctl. - Ingest Data:
- Fast metadata only:
EXECUTION_MODE=CACHE make run-ingest - Full pipeline:
make run-ingest
- Fast metadata only:
- Run MCP Server:
make run-mcpstarts the JSON-RPC endpoint for MCP clients. - Cleanup:
make compose-downstops the local Postgres container when you are done.
Additional tooling: make db-status checks connectivity, make db-verify validates migrations, and make trace-images offers a CLI for image-to-source tracing.