# Rock Agent Knowledge Base

> A searchable reference and MCP toolset that tells Rock RMS developers and AI coding agents exactly which Lava fields exist in a given template on a specific Rock version, linked directly to pinned C# source lines.

- URL: https://bscottdavis.com/work/rock-agent-knowledge-base
- Category: Knowledge System & MCP Server
- Role: Architect & Builder (ONE&ALL Church, 2026)
- Topics: Rock RMS, AI systems, MCP, Developer tools
- Stack: Python, TypeScript, MCP, Rock Source Extraction, CLI (uvx)
- Repository: https://github.com/ONE-ALL-Church/rock-agent-kb

In Rock RMS, a property can exist in the C# codebase and still be unreachable from the Lava template you are editing. Generic AI answers regularly invent merge fields across Rock releases or mix variables from unrelated template contexts.

Rock Agent Knowledge Base solves that by indexing template-scoped Lava contexts with explicit Rock version observations and pinned GitHub source links. Developers in a terminal and AI agents over MCP query the exact same store.

## Concrete check: does a checkout label see `CheckoutDateTime`?

```sh
uvx rock-kb lava-context get check-in-label-checkout-dynamic-text \
  --root CheckoutDateTime --rock-version 19.0.11
```

Instead of a vague *"Yes, try `{{ CheckoutDateTime }}`"*, the lookup returns the exact template context (`check-in-label-checkout-dynamic-text`), a version observation confirming `CheckoutDateTime` as a `DateTime` in Rock `19.0.11` when rendered via `CheckoutLabelData`, and a pinned GitHub link straight to `Rock/CheckIn/v2/Labels/CheckoutLabelData.cs#L63-L68`.

Each entry also records a coverage status (*complete* or *partial*), so neither a developer nor an agent mistakes an unindexed property for a nonexistent one.

> [Interactive component: SystemDiagram (open in browser to run)]

> **Why evidence labels matter for agents**

<p>A GitHub community issue is a useful clue, not proof for Rock 19.0.11. Labeling the evidence class in every search result lets both agents and engineers inspect the pinned C# source before recommending an edit to a live check-in label.</p>

## Sources

1. [Lava context directory and checkout label runbook](https://github.com/ONE-ALL-Church/rock-agent-kb/blob/c3b36112772de30a3d7d9dbd859b467e0994ded5/docs/runbooks/lava-context-directory.md#L3-L67)
2. [MCP Lava context tool definitions](https://github.com/ONE-ALL-Church/rock-agent-kb/blob/c3b36112772de30a3d7d9dbd859b467e0994ded5/src/rock_kb/serve/server.py#L59-L82)
3. [CheckoutDateTime in Rock 19.0.11 source](https://github.com/SparkDevNetwork/Rock/blob/1e9327c66aca5e5d8222b3b7527ed08e6e9938e6/Rock/CheckIn/v2/Labels/CheckoutLabelData.cs#L63-L68)
