OpenCode Morph Fast Apply

v1.0.0Coding Agentsstable

OpenCode plugin for Morph Fast Apply - 10x faster code editing with lazy edit markers. No MCP server needed.

opencode-morph-fast-applymcpai-integration
Share:
139
Stars
0
Downloads
0
Weekly
0/5

What is OpenCode Morph Fast Apply?

OpenCode Morph Fast Apply is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to opencode plugin for morph fast apply - 10x faster code editing with lazy edit markers. no mcp server needed.

OpenCode plugin for Morph Fast Apply - 10x faster code editing with lazy edit markers. No MCP server needed.

This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • OpenCode plugin for Morph Fast Apply - 10x faster code editi

Use Cases

Apply 10x faster code edits using lazy edit markers.
Streamline code editing workflows in OpenCode integration.
JRedeker

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx opencode-morph-fast-apply

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use OpenCode Morph Fast Apply

opencode-morph-fast-apply is an OpenCode plugin that integrates Morph's Fast Apply API into the OpenCode AI coding assistant, enabling AI-driven code edits at over 10,500 tokens per second using lazy edit markers instead of exact string matching. The plugin exposes a `morph_edit` tool that intelligently merges partial code snippets containing `// ... existing code ...` markers with original file content, returning a unified diff for review. It is particularly effective for large files, scattered multi-location changes, and whitespace-sensitive edits where native edit tools are less reliable.

Prerequisites

  • OpenCode installed and configured on your machine
  • A Morph API key (obtain free from morphllm.com/dashboard/api-keys)
  • Node.js available in your PATH (used by the OpenCode plugin system)
  • MORPH_API_KEY environment variable set in your shell profile
1

Obtain a Morph API key

Sign up at morphllm.com and generate an API key from the dashboard. Copy the key — it starts with `sk-`.

2

Set the MORPH_API_KEY environment variable

Add the API key to your shell profile so it is available when OpenCode starts.

export MORPH_API_KEY="sk-your-key-here"
3

Add the plugin to your OpenCode config

Edit your global OpenCode config at ~/.config/opencode/opencode.json and add the plugin and the packaged instruction file that guides the model on when to use morph_edit.

{
  "instructions": [
    "~/.config/opencode/instructions/morph-tools.md"
  ],
  "plugin": [
    "github:JRedeker/opencode-morph-fast-apply"
  ]
}
4

Restart OpenCode

Restart OpenCode. The `morph_edit` tool will be available in the active agent's tool manifest. Confirm by asking OpenCode to list available tools.

5

Use morph_edit for large or scattered code changes

For files over 500 lines or changes spanning multiple locations, use morph_edit. Use the native `edit` tool for small, exact string replacements where no API round-trip is needed.

OpenCode Morph Fast Apply Examples

Client configuration

OpenCode global config enabling the morph-fast-apply plugin with instruction routing.

{
  "instructions": [
    "~/.config/opencode/instructions/morph-tools.md"
  ],
  "plugin": [
    "github:JRedeker/opencode-morph-fast-apply"
  ]
}

Prompts to try

Example tasks where morph_edit delivers the most benefit over native editing.

- "Add error handling to all async functions in src/api/client.ts"
- "Refactor the authentication module to use the new token format across all files"
- "Add TypeScript types to the 600-line utils.js file"
- "Update all console.log statements to use the logger utility in src/services/"
- "Add JSDoc comments to every exported function in lib/helpers.ts"

Troubleshooting OpenCode Morph Fast Apply

morph_edit tool not appearing in the agent's tool manifest

Ensure the active OpenCode agent profile does not have `morph_edit: false` set. The plugin installs the tool, but individual agent profiles can suppress it. Check your agent config and enable it explicitly.

API authentication errors when using morph_edit

Verify MORPH_API_KEY is exported in the shell profile that launches OpenCode. Run `echo $MORPH_API_KEY` in your terminal to confirm it is set. Keys start with `sk-`.

morph_edit deletes file content instead of merging correctly

The plugin includes pre-flight validation that rejects edits where lazy markers (`// ... existing code ...`) cover the entire file without any concrete new content. If this triggers, provide more concrete code in the update block alongside the markers.

Frequently Asked Questions about OpenCode Morph Fast Apply

What is OpenCode Morph Fast Apply?

OpenCode Morph Fast Apply is a Model Context Protocol (MCP) server that opencode plugin for morph fast apply - 10x faster code editing with lazy edit markers. no mcp server needed. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install OpenCode Morph Fast Apply?

Follow the installation instructions on the OpenCode Morph Fast Apply GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with OpenCode Morph Fast Apply?

OpenCode Morph Fast Apply works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is OpenCode Morph Fast Apply free to use?

Yes, OpenCode Morph Fast Apply is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Coding Agents MCP Servers

Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "opencode-morph-fast-apply": { "command": "npx", "args": ["-y", "opencode-morph-fast-apply"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use OpenCode Morph Fast Apply?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides