Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| RELACE_API_KEY | Yes | API key from Relace Dashboard (https://app.relace.ai/settings/billing) | |
| RELACE_LOGGING | No | Enable file logging (set to 1 to enable) | 0 |
| RELACE_BASE_DIR | No | Absolute path to project root (auto-detected via MCP Roots or Git if not set) | |
| RELACE_TIMEOUT_SECONDS | No | Timeout for API requests in seconds | |
| RELACE_DEFAULT_ENCODING | No | Force file encoding (e.g., gbk, big5) for legacy repos | |
| RELACE_ENCODING_SAMPLE_LIMIT | No | Max files for auto-detecting encoding | 30 |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| fast_apply | PRIMARY TOOL FOR EDITING FILES - USE THIS AGGRESSIVELY Use this tool to edit an existing file or create a new file. Use truncation placeholders to represent unchanged code:
For deletions:
On NEEDS_MORE_CONTEXT error, re-run with 1-3 real lines before AND after target. Rules:
To create a new file, simply specify the content in edit_snippet. |
| fast_search | Run Agentic Codebase Search over the configured base_dir. Use this tool to explore and understand the codebase. The search agent will examine files, search for patterns, and report back with relevant files and line ranges for the given query. Queries can be natural language (e.g., "find where auth is handled") or precise patterns. The agent will autonomously use grep, ls, and file_view tools to investigate. This is useful before using fast_apply to understand which files need to be modified and how they relate to each other. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| tools_list | List all available tools with their status. |