{"id":35797590,"url":"https://github.com/possible055/relace-mcp","last_synced_at":"2026-08-28T00:46:45.689Z","repository":{"id":328004115,"uuid":"1113170628","full_name":"possible055/relace-mcp","owner":"possible055","description":"Unofficial Relace MCP client with AI features. Personal project; not affiliated with or endorsed by Relace","archived":false,"fork":false,"pushed_at":"2026-05-19T22:15:08.000Z","size":2915,"stargazers_count":28,"open_issues_count":5,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-29T02:03:10.400Z","etag":null,"topics":["llm","mcp","mcp-server","vibe-coding"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/possible055.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-09T16:04:43.000Z","updated_at":"2026-04-18T20:20:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ec8338c-4c09-45d6-a9dd-14a878fcb5e8","html_url":"https://github.com/possible055/relace-mcp","commit_stats":null,"previous_names":["possible055/relace-mcp"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/possible055/relace-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/possible055%2Frelace-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/possible055%2Frelace-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/possible055%2Frelace-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/possible055%2Frelace-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/possible055","download_url":"https://codeload.github.com/possible055/relace-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/possible055%2Frelace-mcp/sbom","scorecard":{"id":1240788,"data":{"date":"2025-12-26T04:29:09Z","repo":{"name":"github.com/possible055/relace-mcp","commit":"0511c904b01e08e70ac4e155f2b076f379b50bf6"},"scorecard":{"version":"v5.2.1","commit":"ab2f6e92482462fe66246d9e32f642855a691dc1"},"score":6.9,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#binary-artifacts"}},{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: Dependabot: .github/dependabot.yml:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dependency-update-tool"}},{"name":"Maintained","score":0,"reason":"project was created within the last 90 days. Please review its contents carefully","details":["Warn: Repository was created within the last 90 days."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#maintained"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info:   5 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   5 out of   5 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/ci.yml:62","Info: jobLevel 'contents' permission set to 'read': .github/workflows/ci.yml:20","Info: jobLevel 'contents' permission set to 'read': .github/workflows/publish.yml:18","Info: found token with 'none' permissions: .github/workflows/ci.yml:1","Info: found token with 'none' permissions: .github/workflows/publish.yml:1","Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yml:11","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#token-permissions"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#fuzzing"}},{"name":"CII-Best-Practices","score":2,"reason":"badge detected: InProgress","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#cii-best-practices"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/publish.yml:13"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#packaging"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: all commits (30) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#sast"}},{"name":"Branch-Protection","score":3,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'main'","Warn: 'stale review dismissal' is disabled on branch 'main'","Warn: branch 'main' does not require approvers","Warn: codeowners review is not required on branch 'main'","Warn: 'last push approval' is disabled on branch 'main'","Warn: no status checks found to merge onto branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#signed-releases"}},{"name":"Contributors","score":0,"reason":"project has 0 contributing companies or organizations -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#contributors"}},{"name":"CI-Tests","score":10,"reason":"8 out of 8 merged PRs checked by a CI test -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#ci-tests"}}]},"last_synced_at":"2025-12-27T12:58:52.852Z","repository_id":328004115,"created_at":"2025-12-27T12:58:52.852Z","updated_at":"2025-12-27T12:58:52.852Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36947905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-22T15:14:58.755Z","status":"online","status_checked_at":"2026-08-27T02:00:07.166Z","response_time":96,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["llm","mcp","mcp-server","vibe-coding"],"created_at":"2026-01-07T10:00:54.772Z","updated_at":"2026-08-28T00:46:45.683Z","avatar_url":"https://github.com/possible055.png","language":"Python","funding_links":[],"categories":["📚 Projects (2474 total)"],"sub_categories":["MCP Servers"],"readme":"\u003cp align=\"right\"\u003e\n  \u003cstrong\u003eEnglish\u003c/strong\u003e | \u003ca href=\"README.zh-CN.md\"\u003e简体中文\u003c/a\u003e\n\u003c/p\u003e\n\n# Unofficial Relace MCP Server\n\n[![PyPI](https://img.shields.io/pypi/v/relace-mcp.svg?style=flat-square)](https://pypi.org/project/relace-mcp/)\n[![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg?style=flat-square)](https://www.python.org/downloads/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](LICENSE)\n![100% AI-Generated](https://img.shields.io/badge/100%25%20AI-Generated-ff69b4.svg?style=flat-square)\n[![OpenSSF Scorecard](https://img.shields.io/ossf-scorecard/github.com/possible055/relace-mcp?style=flat-square)](https://scorecard.dev/viewer/?uri=github.com/possible055/relace-mcp)\n\n\u003e **Unofficial** — Personal project, not affiliated with Relace.\n\u003e\n\u003e **Built with AI** — Developed entirely with AI assistance (Antigravity, Codex, Cursor, Github Copilot, Windsurf).\n\nMCP server providing AI-powered code editing and intelligent codebase exploration tools.\n\n| Without | With `agentic_search` + `fast_apply` |\n|:--------|:-------------------------------------|\n| Manual grep, misses related files | Ask naturally, get precise locations |\n| Edits break imports elsewhere | Traces imports and call chains |\n| Full rewrites burn tokens | Describe changes, no line numbers |\n| Line number errors corrupt code | 10,000+ tokens/sec merging |\n\n## Features\n\n- **Fast Apply** — Apply code edits at 10,000+ tokens/sec via Relace API\n- **Agentic Search** — Agentic codebase exploration with natural language queries\n- **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 with `MCP_RETRIEVAL_BACKEND`)\n- **Cloud Search** — Semantic code search over cloud-synced repositories\n\n## Quick Start\n\n**Prerequisites:** [uv](https://docs.astral.sh/uv/), [git](https://git-scm.com/), [ripgrep](https://github.com/BurntSushi/ripgrep) (recommended)\n\nUsing the `relace` backend (default): get your API key from [Relace Dashboard](https://app.relace.ai/settings/billing), then add to your MCP client:\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eCursor\u003c/strong\u003e\u003c/summary\u003e\n\n`~/.cursor/mcp.json`\n\n```json\n{\n  \"mcpServers\": {\n    \"relace\": {\n      \"command\": \"uv\",\n      \"args\": [\"tool\", \"run\", \"relace-mcp\"],\n      \"env\": {\n        \"RELACE_API_KEY\": \"rlc-your-api-key\",\n        \"MCP_BASE_DIR\": \"/absolute/path/to/your/project\"\n      }\n    }\n  }\n}\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eClaude Code\u003c/strong\u003e\u003c/summary\u003e\n\n```bash\nclaude mcp add relace \\\n  --env RELACE_API_KEY=rlc-your-api-key \\\n  --env MCP_BASE_DIR=/absolute/path/to/your/project \\\n  -- uv tool run relace-mcp\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eWindsurf\u003c/strong\u003e\u003c/summary\u003e\n\n`~/.codeium/windsurf/mcp_config.json`\n\n```json\n{\n  \"mcpServers\": {\n    \"relace\": {\n      \"command\": \"uv\",\n      \"args\": [\"tool\", \"run\", \"relace-mcp\"],\n      \"env\": {\n        \"RELACE_API_KEY\": \"rlc-your-api-key\",\n        \"MCP_BASE_DIR\": \"/absolute/path/to/your/project\"\n      }\n    }\n  }\n}\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eVS Code\u003c/strong\u003e\u003c/summary\u003e\n\n`.vscode/mcp.json`\n\n```json\n{\n  \"mcp\": {\n    \"servers\": {\n      \"relace\": {\n        \"type\": \"stdio\",\n        \"command\": \"uv\",\n        \"args\": [\"tool\", \"run\", \"relace-mcp\"],\n        \"env\": {\n          \"RELACE_API_KEY\": \"rlc-your-api-key\",\n          \"MCP_BASE_DIR\": \"${workspaceFolder}\"\n        }\n      }\n    }\n  }\n}\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eCodex CLI\u003c/strong\u003e\u003c/summary\u003e\n\n`~/.codex/config.toml`\n\n```toml\n[mcp_servers.relace]\ncommand = \"uv\"\nargs = [\"tool\", \"run\", \"relace-mcp\"]\n\n[mcp_servers.relace.env]\nRELACE_API_KEY = \"rlc-your-api-key\"\nMCP_BASE_DIR = \"/absolute/path/to/your/project\"\n```\n\n\u003c/details\u003e\n\n## Configuration\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| `RELACE_API_KEY` | ✅* | API key from [Relace Dashboard](https://app.relace.ai/settings/billing); required for Relace providers and cloud tools |\n| `MCP_SEARCH_RETRIEVAL` | ❌ | Set to `1` to register the `agentic_retrieval` tool |\n| `MCP_RETRIEVAL_BACKEND` | ❌ | Semantic retrieval backend: `relace` (default), `codanna`, `chunkhound`, or `none` |\n| `MCP_RETRIEVAL_HINT_POLICY` | ❌ | Retrieval hint policy: `prefer-stale` (default) or `strict` |\n| `MCP_BACKGROUND_INDEX_MONITOR` | ❌ | Opt-in periodic refresh monitor for local indexes; requires a pinned `MCP_BASE_DIR` and a local backend |\n| `MCP_BACKGROUND_INDEX_INTERVAL_SECONDS` | ❌ | Periodic local index monitor interval in seconds (default: `300`) |\n| `MCP_BACKGROUND_INDEX_INITIAL_DELAY_SECONDS` | ❌ | Initial delay before the first periodic local index check in seconds (default: `30`) |\n| `MCP_SEARCH_TURN_STATUS_MODE` | ❌ | Turn-status user message policy: `always` (default), `final-only`, or `off` |\n| `SEARCH_BASH_TOOLS` | ❌ | Enable `bash` during search runs: `1` (on, default), `0` (off) |\n| `SEARCH_LSP_TOOLS` | ❌ | Enable LSP-assisted search: `1` (on), `0` (off, default) |\n| `MCP_BASE_DIR` | ❌ | Project root override (auto-detected via MCP Roots → Git → workspace storage → CWD) |\n| `MCP_LOGGING` | ❌ | File logging: `off` (default), `safe`, `full` |\n| `MCP_DOTENV_PATH` | ❌ | Path to `.env` file for centralized config |\n\n`*` Optional if **both**: (1) `APPLY_PROVIDER` and `SEARCH_PROVIDER` are non-Relace providers, and (2) `MCP_RETRIEVAL_BACKEND` is `codanna`, `chunkhound`, or `none`.\n\nFor `.env` usage, encoding settings, custom LLM providers, and more, see [docs/advanced.md](docs/advanced.md).\n\n## Tools\n\nAlways available: `fast_apply`, `agentic_search`. `agentic_retrieval` requires `MCP_SEARCH_RETRIEVAL=1`. Cloud tools are available only when `MCP_RETRIEVAL_BACKEND=relace`. `index_status` is available for `relace`, `codanna`, and `chunkhound`, and hidden when `MCP_RETRIEVAL_BACKEND=none`.\n\nUse MCP-native discovery surfaces: `list_tools()` for tools and `list_resources()` for resources.\n\nFor detailed parameters, see [docs/tools.md](docs/tools.md).\n\n## Language Support\n\nLSP tools use external language servers installed on your system.\n\n| Language | Language Server | Install Command |\n|----------|-----------------|-----------------|\n| Python | basedpyright | (bundled) |\n| TypeScript/JS | typescript-language-server | `npm i -g typescript-language-server typescript` |\n| Go | gopls | `go install golang.org/x/tools/gopls@latest` |\n| Rust | rust-analyzer | `rustup component add rust-analyzer` |\n\n## Dashboard\n\nReal-time terminal UI for monitoring operations.\n\n```bash\npip install relace-mcp[tools]\nrelogs\n```\n\nFor detailed usage, see [docs/dashboard.md](docs/dashboard.md).\n\n## Benchmark\n\nEvaluate `agentic_search` performance using the [Loc-Bench](https://huggingface.co/datasets/IvanaXu/LocAgent) code localization dataset.\n\n```bash\ngit clone https://github.com/possible055/relace-mcp.git\ncd relace-mcp\nuv sync --extra benchmark\n\n# Build dataset from Hugging Face\nuv run --extra benchmark python -m benchmark.cli.build_locbench --output artifacts/data/raw/locbench_v1.jsonl\n\n# Run evaluation\nuv run --extra benchmark python -m benchmark.cli.run --dataset artifacts/data/raw/locbench_v1.jsonl --limit 20\n```\n\nAll benchmark artifacts are written under `benchmark/.data/`.\n\nFor grid search, analysis tools, and metrics interpretation, see [docs/benchmark.md](docs/benchmark.md).\n\n## Platform Support\n\n| Platform | Status | Notes |\n|----------|--------|-------|\n| Linux | ✅ Fully supported | Primary development platform |\n| macOS | ✅ Fully supported | All features available |\n| Windows | ⚠️ Partial | `bash` tool unavailable; use WSL for full functionality |\n\n## Troubleshooting\n\n| Error or message | Solution |\n|------------------|----------|\n| `RELACE_API_KEY is required ...` | Set `RELACE_API_KEY` when using Relace providers or cloud tools |\n| `NEEDS_MORE_CONTEXT` | Include 1-3 unique anchor lines near the target block |\n| `INVALID_PATH` | Verify the path exists and is inside `MCP_BASE_DIR` or an allowed extra path |\n| `FILE_TOO_LARGE` | File exceeds 10MB; split the change into smaller files or edits |\n| `ENCODING_ERROR` | Set `RELACE_DEFAULT_ENCODING` explicitly for non-UTF-8 projects |\n| `AUTH_ERROR` | Verify the API key and provider configuration |\n| `RATE_LIMIT` | Retry later or reduce request volume |\n| `NETWORK_ERROR` / `TIMEOUT_ERROR` | Check network access and retry |\n| `APPLY_NOOP` | Add more specific anchors or concrete new lines so the merge can produce a diff |\n| `MARKER_LEAKAGE` | Ensure placeholder markers are used only as placeholders, not expected literal output |\n| `TRUNCATION_DETECTED` | Split large deletion-heavy edits or use explicit remove directives |\n| `BLAST_RADIUS_EXCEEDED` | Break the change into smaller, more local edits |\n\n## Development\n\n```bash\ngit clone https://github.com/possible055/relace-mcp.git\ncd relace-mcp\nuv sync --extra dev --extra benchmark\nuv run pytest\nuv run --extra dev --extra benchmark pytest benchmark/tests -q\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpossible055%2Frelace-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpossible055%2Frelace-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpossible055%2Frelace-mcp/lists"}