
非官方Relace MCP客户端,具备AI功能。个人项目;与Relace无关或认可
概览
—— 个人项目,与Relace无关。—— 完全由AI协助开发(Antigravity、Codex、Cursor、Github Copilot、Windsurf)。 MCP服务器提供AI驱动的代码编辑和智能代码库探索工具。 - — 通过Relace API以每秒10,000+标记应用代码编辑 - — 带自然语言查询的代理代码库探索 - — 混合语义提示 + 实时代码探索,支持陈旧提示和显式云维护(启用时MCP_SEARCH_RETRIEVAL=1;后端选择MCP_RETRIEVAL_BACKEND) - — 云同步仓库的语义代码搜索 使用Relace后端(默认):从Relace Dashboard获取API密钥,然后添加到你的MCP客户端: * 可选:(1) APPLY_PROVIDER和SEARCH_PROVIDER非Relace提供者,且(2) MCP_RETRIEVAL_BACKEND为codanna、chunkhound或无。 关于.env的使用、编码设置、自定义LLM提供者等,请参见文档/advanced.md。 随时可用:fast_apply,agentic_search。
概述(AI 翻译)
英文 |简体中文
非官方Relace MCP服务器
非官方 — 个人项目,与Relace无关。
由AI构建 — 完全由AI协助开发(Antigravity、Codex、Cursor、Github Copilot、Windsurf)。
MCP服务器提供AI驱动的代码编辑和智能代码库探索工具。
| 没有 | 带有agentic_search + fast_apply |
|---|---|
| 手动 grep,错过相关文件 | 自然地问,获取精确位置 |
| 编辑 破坏导入 其他地方 | 追踪导入和调用链 |
| 完整重写 烧毁代币 | 描述更改,无行号 |
| 行号错误导致代码损坏 | 每秒10,000+令牌合并 |
特色
- 快速应用 — 通过Relace API以每秒10,000+令牌的速率应用代码编辑
- 代理搜索 — 带有自然语言查询的代理代码库探索
- 代理检索 — 混合语义提示+实时代码探索,支持陈旧提示和显式云维护(启用时为
MCP_SEARCH_RETRIEVAL=1;选择后端为MCP_RETRIEVAL_BACKEND) - 云搜索 — 云同步仓库上的语义代码搜索
快速启动
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
English | 简体中文
Unofficial Relace MCP Server
Unofficial — Personal project, not affiliated with Relace.
Built with AI — Developed entirely with AI assistance (Antigravity, Codex, Cursor, Github Copilot, Windsurf).
MCP server providing AI-powered code editing and intelligent codebase exploration tools.
| Without | With agentic_search + fast_apply |
|---|---|
| Manual grep, misses related files | Ask naturally, get precise locations |
| Edits break imports elsewhere | Traces imports and call chains |
| Full rewrites burn tokens | Describe changes, no line numbers |
| Line number errors corrupt code | 10,000+ tokens/sec merging |
Features
- Fast Apply — Apply code edits at 10,000+ tokens/sec via Relace API
- Agentic Search — Agentic codebase exploration with natural language queries
- Agentic Retrieval — Hybrid semantic hints + live code exploration, with stale-hint support and explicit cloud maintenance (enable with
MCP_SEARCH_RETRIEVAL=1; choose the backend withMCP_RETRIEVAL_BACKEND) - Cloud Search — Semantic code search over cloud-synced repositories
Quick Start
Prerequisites: uv, git, ripgrep (recommended)
Using the relace backend (default): get your API key from Relace Dashboard, then add to your MCP client:
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"relace": {
"command": "uv",
"args": ["tool", "run", "relace-mcp"],
"env": {
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"relace": {
"command": "uv",
"args": ["tool", "run", "relace-mcp"],
"env": {
"RELACE_API_KEY": "rlc-your-api-key",
"MCP_BASE_DIR": "/absolute/path/to/your/project"
}
}
}
}