Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 946 Bytes

File metadata and controls

34 lines (26 loc) · 946 Bytes

OpenCode Integration

Türkçe sürüm: docs/tr/integration/opencode.md

Use mcp-code in OpenCode when the agent needs semantic repository workflows instead of low-level file manipulation.

Suggested OpenCode MCP entry

{
  "mcpServers": {
    "mcp-code": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-code/dist/index.js"],
      "env": {
        "MCP_CODE_CONFIG": "/absolute/path/to/mcp-code.config.json"
      }
    }
  }
}

The repository includes the same shape in examples/hosts/opencode.json.

Recommended workflow

  1. Resolve the target area with resolve_code_slice.
  2. Summarize responsibilities and risks with explain_slice.
  3. Plan the intended change with plan_safe_edit.
  4. Apply only approved edits through apply_safe_edit.
  5. Inspect dependents with analyze_impact.
  6. Validate touched scope through verify_slice.

Last updated: 2026-03-10