{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_qx5nb6b8qnaw","handle":"lra-code-review-mcp","url":"https://wellknown.network/agents/lra-code-review-mcp","links":{"self":"https://wellknown.network/agents/lra-code-review-mcp/record.json","html":"https://wellknown.network/agents/lra-code-review-mcp","markdown":"https://wellknown.network/agents/lra-code-review-mcp/record.md","api":"https://wellknown.network/api/v1/agents/lra-code-review-mcp","status":"https://wellknown.network/api/v1/agents/lra-code-review-mcp/status","claim":"https://wellknown.network/agents/lra-code-review-mcp/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/lra-code-review-mcp/claim.json","badge":"https://wellknown.network/agents/lra-code-review-mcp/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/lra-code-review-mcp/history","tools":"https://wellknown.network/api/v1/agents/lra-code-review-mcp/tools"},"ard":{"identifier":"urn:air::server:lra-code-review-mcp","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"lra-code-review-mcp","summary":"MCP server exposing the lra-code-review code review agent as read-only tools","description":"# lra-code-review-mcp\n\n[lra-code-review](https://github.com/030603-ccf/code-review-agent)（基于 LangGraph 的代码审查智能体）的 MCP server。它把 lra-code-review 包装成只读工具，任何 MCP 客户端（Claude Desktop、Cursor、Windsurf……）都能通过 LLM 审查代码。\n\n通过 stdio 暴露 4 个只读工具：\n\n| 工具 | 用途 |\n| --- | --- |\n| `review_project` | 全量代码审查，返回 findings 摘要 |\n| `review_diff` | 只审 git diff 变更 |\n| `get_finding` | 按 id 取单条 finding 的完整证据 |\n| `generate_fix_prompt` | 生成单文件的修复任务 prompt（零 LLM token） |\n\n## 安装\n\n需要 Python 3.11+。\n\n```bash\n# 临时跑一次\nuvx lra-code-review-mcp\n\n# 或安装\npip install lra-code-review-mcp\nlra-code-review-mcp\n```\n\n`lra-code-review` 是依赖项，会从 PyPI 自动安装。\n\n## Docker\n\n每次打 tag 都会发布一个容器镜像到 GHCR，无需安装 Python 就能跑：\n\n```bash\ndocker run -i --rm \\\n  -v /absolute/path/to/lra/config.yaml:/config.yaml \\\n  -e LRA_MCP_CONFIG=/config.yaml \\\n  -e LRA_MCP_PROFILE=deepseek \\\n  -e DEEPSEEK_API_KEY=\"$DEEPSEEK_API_KEY\" \\\n  ghcr.io/030603-ccf/dsh-cra-plugin\n```\n\n- `-i` 保持 stdio 打开——MCP 传输走 stdin/stdout。\n- 挂载你的 lra `config.yaml`，并把 `LRA_MCP_CONFIG` 指向 `/config.yaml`。\n- 用 `-e`（或 `--env-file`）传 API key；绝不要把 key 打进镜像。\n\n## 配置\n\nserver 的一切配置都来自环境变量；工具参数从不携带 API key。\n\n| 变量 | 必填 | 说明 |\n| --- | --- | --- |\n| `LRA_MCP_CONFIG` | 是 | `config.yaml` 的路径——复制本仓库的 `config.example.yaml` 并填自己的 profile |\n| `LRA_MCP_PROFILE` | 否 | 该 config 里的 profile 名（默认用它的 `default_profile`） |\n| `LRA_MCP_RUNS_DIR` | 否 | 审查产物的存放目录（默认 `~/.lra-code-review-mcp/runs`） |\n\n### API key\n\n你的 key 存在环境变量里，由 config 中的 `api_key_env` 声明变量名：\n\n```yaml\nprofiles:\n  deepseek:\n    api_key_env: \"DEEPSEEK_API_KEY\"\n```\n\n三种方式设置这个变量：\n\n1. **Shell**（CLI）：`export DEEPSEEK_API_KEY=sk-...`\n2. **MCP 客户端的 `env` 块**（Claude Desktop / Cursor）：在 server 的 `env` 里加 `\"DEEPSEEK_API_KEY\": \"sk-...\"`\n3. **Docker**：`docker run -i --rm ... -e DEEPSEEK_API_KEY=\"$DEEPSEEK_API_KEY\" ...`\n\n要求（继承自 lra）：\n\n- `api_key` 必须来自 `api_key_env`，不能内联写在文件里。\n- `lsp.enabled` 必须是 `false`。\n\n## MCP 客户端配置\n\n让任意 MCP 客户端指向这个 stdio server：\n\n```json\n{\n  \"mcpServers\": {\n    \"lra\": {\n      \"command\": \"uvx\",\n      \"args\": [\"lra-code-review-mcp\"],\n      \"…","publisher":null,"homepage":"https://github.com/030603-ccf/dsh-cra-plugin","repository":"https://github.com/030603-ccf/dsh-cra-plugin","version":"0.1.0","license":"MIT","protocols":["mcp"],"tags":["mcp","code-review","langgraph","lra","stdio"],"pricing":null,"endpoints":[{"url":"pypi:lra-code-review-mcp","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","license":"pypi","repoUrl":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi"}},"derived":{"capabilities":[{"slug":"code.review","name":"Code Review","confidence":1,"provenance":"derived"},{"slug":"dev.version-control","name":"Version Control","confidence":0.745,"provenance":"derived"},{"slug":"dev.terminal","name":"Terminal & Shell","confidence":0.745,"provenance":"derived"}],"categories":["code","dev"],"language":"fr"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"lra-code-review-mcp","registry":"pypi","observedAt":"2026-10-28T09:22:59.530Z","publishedAt":"2026-08-16T16:01:06.231659Z","latestVersion":"0.1.0"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"lra-code-review-mcp","url":"https://pypi.org/project/lra-code-review-mcp/","firstSeenAt":"2026-09-09T23:26:13.623Z","fetchedAt":"2026-10-28T09:21:20.735Z","normalizedAt":"2026-10-28T09:21:20.735Z"}]},"firstSeenAt":"2026-09-09T23:26:13.623Z","updatedAt":"2026-10-28T09:22:59.530Z"}