codebase_search (WarpGrep exploration subagent) and edit_file (10,500 tok/s partial edits) with zero code changes.
| Tool | Default | Description |
|---|---|---|
codebase_search | Enabled | WarpGrep exploration subagent for your local workspace. Takes a natural-language query (“How does auth work?”) and runs parallel grep + file reads over multiple turns to find relevant files and line ranges. Use first when exploring unfamiliar code. |
github_codebase_search | Enabled | WarpGrep exploration for public GitHub repositories — no clone required. Takes owner/repo plus a natural-language query. Use when debugging third-party dependencies or investigating upstream bugs. |
edit_file | Disabled | Morph Fast Apply: 10,500+ tok/s partial edits using // ... existing code ... placeholders. Off by default so it doesn’t collide with client-native editors — enable by setting DISABLED_TOOLS="" in the MCP env. |
Logged in? Your API key auto-fills above. Otherwise, get it from your dashboard.
| Tool | Default | Description |
|---|---|---|
codebase_search | Enabled | WarpGrep exploration subagent for your local workspace. Takes a natural-language query (“How does auth work?”) and runs parallel grep + file reads over multiple turns to find relevant files and line ranges. Use first when exploring unfamiliar code. |
github_codebase_search | Enabled | WarpGrep exploration for public GitHub repositories — no clone required. Takes owner/repo plus a natural-language query. Use when debugging third-party dependencies or investigating upstream bugs. |
edit_file | Disabled | Morph Fast Apply: 10,500+ tok/s partial edits using // ... existing code ... placeholders. Off by default so it doesn’t collide with client-native editors — enable by setting DISABLED_TOOLS="" in the MCP env. |
Installation (All Clients)
1. Get Your API Key
Get your API key from the dashboard.
2. Configure Your MCP Client
- Claude Code
- Codex
- Cursor
- Claude Desktop
- VS Code
- Manual
One-liner Installation (Recommended):Manual Config File Method:Create or edit
Configure Claude to prefer Morph: Add this to your global Claude config:
.claude.json in your workspace:3. Test Installation
Claude Code: Type
Codex: Run
Cursor/VS Code: Make any code edit request - should use Morph automatically
Manual: Check server logs show “MCP Server started successfully”
/mcp and /tools to see Morph’s edit_file toolCodex: Run
codex mcp list to verify server is configured, then make edit requestsCursor/VS Code: Make any code edit request - should use Morph automatically
Manual: Check server logs show “MCP Server started successfully”
Configuration
| Variable | Default | Description |
|---|---|---|
MORPH_API_KEY | Required | Your API key |
WORKSPACE_MODE | "true" | Auto workspace detection |
DEBUG | "false" | Debug logging |
Advanced Configuration
| Variable | Default | Description |
|---|---|---|
MORPH_API_URL | https://api.morphllm.com | Override the Morph API base URL (for proxies) |
MORPH_WARP_GREP_TIMEOUT | 30000 | Timeout for Warp Grep model calls in milliseconds |
/v1/chat/completions with the token in the Authorization: Bearer header. Forward these to https://api.morphllm.com/v1/chat/completions after handling auth/billing.
Warp Grep timeout — Increase for large codebases or slow networks:
Available Tools
codebase_search and github_codebase_search are enabled out of the box. edit_file ships disabled to avoid conflicting with client-native editors — opt in by setting DISABLED_TOOLS="" (or any value that doesn’t include edit_file) in the MCP server env.
Troubleshooting
Server won’t start: Check API key, Node.js 16+, runnpm cache clean --forceTools missing: Restart client, validate JSON config
Workspace issues: Add
.git or package.json, or set WORKSPACE_MODE="false"Slow performance: Use
edit_file over write_file, check network to api.morphllm.com
Performance Optimization
Best Practices
- Use
edit_filefor modifications: Much faster than reading + writing entire files - Minimize edit scope: Include only the sections that need changes
- Batch related edits: Make multiple changes in a single
edit_filecall
Performance Comparison
| Method | Speed | Use Case |
|---|---|---|
edit_file (Morph) | ~11 seconds | Code modifications, updates |
| Search & replace | ~20 seconds | Simple text substitutions |
| Traditional read/write | ~60 seconds | Full file rewrites |