Skip to content

MCP resources

The opencodehub MCP server publishes seven resources alongside its tools. Clients that honour MCP resources (Claude Code, Cursor) can read them directly; clients that do not can usually reach the same data via the corresponding tool.

URIPurpose
codehub://reposAll repos registered on this machine.
codehub://repo-contextHigh-level profile for one repo: language mix, entry points, top processes.
codehub://repo-schemaThe graph schema (node kinds, edge kinds) for one repo.
codehub://repo-clustersAll clusters (communities) detected for one repo.
codehub://repo-clusterOne cluster with its members and connecting edges.
codehub://repo-processesAll execution-flow processes detected for one repo.
codehub://repo-processOne process with its ordered steps, files, and participating symbols.

Each resource returns JSON. Implementations live under packages/mcp/src/resources/.

Per-repo resources accept the same repo (registry name) or repo_uri (Sourcegraph-style URI) qualifier as the per-repo tools, and surface the same AMBIGUOUS_REPO envelope when neither is provided and more than one repo is registered. See MCP overview for the resolution rules.