Setup
The hub is published to PyPI aspipecat-ai-context-hub and runs with uv, no clone required. The examples on this page use uvx, uv’s one-shot runner, which fetches and runs the hub on demand. Build the local index once:
Tools
| Tool | Use it to |
|---|---|
search_docs | Find guides and conceptual docs (“how do I …?”) |
search_examples | Find working example code by task or component |
search_api | Find class definitions, method signatures, frame types, and inheritance |
get_doc | Fetch a full doc page by ID or path |
get_example | Fetch the full source files for an example |
get_code_snippet | Fetch targeted code by symbol, intent, or file and line range |
check_deprecation | Check whether an import path is deprecated or removed (can evaluate lifecycle at a specific version) |
get_hub_status | Report index health, freshness, and the indexed Pipecat version |
search_* tools return a ranked list of hits, each with a relevance score. Each response also carries an evidence report with an overall confidence, a low_confidence flag, and suggested follow-up queries. The agent triages that list, picks the best fit, then calls a get_* tool to pull the full content. The coding agent can pass your pipecat_version to score and filter results for compatibility with the version you target. The remaining two tools stand alone: check_deprecation reports a symbol’s lifecycle, and get_hub_status reports index health.
To make your coding agent reach for these tools automatically, add the recommended CLAUDE.md / AGENTS.md instructions to your project.
CLI lookups
Every tool is also a one-shot CLI command, so you can query the index from a shell with no MCP setup. Reach for this when you need a single answer fast, like a deprecation check, an API signature, or an index health check. Each command prints the tool’s JSON to stdout:MCP server
For a longer build or debugging session where the model probes the index repeatedly, add the hub as an MCP server instead of shelling out per query. It keeps the index warm for the whole session and exposes the same tools to your coding tool directly.- Claude Code
- Codex
- Cursor
- VS Code
Next steps
Build with a Coding Agent
The full agent-driven workflow:
pipecat init, the Context Hub, and your
first coding session