Loading...
Loading...
Install and configure the Repo-Native Alignment (RNA) MCP server. Downloads the binary, configures the MCP server, pre-warms the code index, and updates AGENTS.md with tool guidance.
npx skill4agent add open-horizon-labs/repo-native-alignment setupwhich repo-native-alignment 2>/dev/null~/.cargo/bin/OS=$(uname -s)
ARCH=$(uname -m)
CHIP=$(sysctl -n machdep.cpu.brand_string 2>/dev/null || echo "")
mkdir -p ~/.cargo/binDarwinarm64curl -L https://github.com/open-horizon-labs/repo-native-alignment/releases/latest/download/repo-native-alignment-darwin-arm64-fast.tar.gz | tar xz -C ~/.cargo/binDarwinarm64curl -L https://github.com/open-horizon-labs/repo-native-alignment/releases/latest/download/repo-native-alignment-darwin-arm64.tar.gz | tar xz -C ~/.cargo/binLinuxx86_64curl -L https://github.com/open-horizon-labs/repo-native-alignment/releases/latest/download/repo-native-alignment-linux-x86_64.tar.gz | tar xz -C ~/.cargo/bincargo install --locked --git https://github.com/open-horizon-labs/repo-native-alignment~/.cargo/binexport PATH="$HOME/.cargo/bin:$PATH".mcp.jsonrna-mcpclaude mcp addclaude mcp add rna-mcp --scope project -- repo-native-alignment --repo ..mcp.json{
"mcpServers": {
"rna-mcp": {
"command": "repo-native-alignment",
"args": ["--repo", "."]
}
}
}.mcp.jsonrna-mcpmcpServersrepo-native-alignment scan --repo . --full.oh/.cache/lance/<!-- RNA MCP tool guidance --><!-- RNA MCP tool guidance -->
## Code Exploration (use RNA MCP tools, not grep/Read)
| Instead of... | Use this MCP tool |
|---|---|
| `Grep` for symbol names | `search_symbols(query, kind, language, file)` |
| `Read` to trace function calls | `graph_query(node_id, mode: "neighbors")` |
| `Grep` for "who calls X" | `graph_query(node_id, mode: "impact")` |
| `Read` to find .oh/ artifacts | `oh_search_context(query)` |
| `Bash` with `grep -rn` | `search_symbols` or `oh_search_context` |
| Recording learnings/signals | Write to `.oh/metis/`, `.oh/signals/`, `.oh/guardrails/` (YAML frontmatter + markdown) |
| Searching git history | `oh_search_context(query)` -- returns hash; use `git show <hash>` via Bash for diffs |
<!-- end RNA MCP tool guidance -->oh_get_contextoh_search_contextsearch_symbolsgraph_queryoutcome_progresslist_roots