Skip to content

MCP Server

The MCP server exposes 19 tools over stdio, enabling Claude and other AI agents to query, annotate, and audit repos conversationally.

Add to .claude.json:

{
"mcpServers": {
"repo-knowledge": {
"command": "rk",
"args": ["mcp"],
"env": {}
}
}
}

Add to claude_desktop_config.json:

{
"mcpServers": {
"repo-knowledge": {
"command": "node",
"args": ["node_modules/@mcptoolshop/repo-knowledge/dist/mcp/server.js"]
}
}
}

The MCP server reads rk.config.json from the working directory at startup. Ensure the config file exists in the directory where the server process runs.

ToolDescription
get_repoFull knowledge dump for a repo
find_reposFilter repos by owner, status, language, framework, shape
search_reposFull-text search across all indexed content
related_reposShow repos related to a given repo
repos_by_stackFind repos using a specific tech stack combination
repos_needing_workFind repos that need attention: stale, unaudited, warnings
repo_summaryOne-paragraph summary of a repo
add_repo_noteAdd a typed knowledge note to a repo
add_relationshipRecord a relationship between two repos
knowledge_statsDatabase statistics
sync_reposTrigger a full sync cycle
sync_dogfoodSync dogfood evidence from dogfood-lab/testing-os into repo facts
ToolDescription
audit_submitSubmit audit results for a repo
audit_postureGet audit posture for one repo
audit_portfolioPortfolio-wide audit posture grouped by health
audit_findingsList open findings, filterable by severity and domain
audit_detailFull audit report for a repo
audit_controls_listList canonical controls by domain
audit_unauditedList repos with no audit runs

repo-knowledge is designed for parallel multi-Claude operations. Multiple agents can:

  1. Audit — claim repos from a worklist, run the 80-control audit, submit via audit_submit
  2. Enrich — add thesis, architecture notes, and relationship mappings
  3. Remediate — fix findings using a scored workflow

See templates/claude-games/ in the repo for full playbook templates.