Back to Search

neonia_dev_smart_patcher

0.2.0

Applies targeted SEARCH/REPLACE patches to files to drastically reduce output tokens.

$0.002 / call (Standard Tier)
Updated: Jul 16, 2026

Overview

A precision code-editing utility. Instead of rewriting entire files from scratch, this tool applies exact search-and-replace blocks to existing code, preserving indentation and minimizing token output. Smart Match handles whitespace differences gracefully. Supports internal resource URIs for massive datasets.

Example Input

JSON payload sent to this tool:

  {
    "original_content": "function add(a, b) {\n  return a + b;\n}",
    "search_block": "return a + b;",
    "replace_block": "return a + b + 0;"
  }


  {
    "resource_uri": "neonia://resource/uuid",
    "search_block": "return a + b;",
    "replace_block": "return a + b + 0;"
  }

Example Output

Formatted JSON response returned by this tool:

{
  "status": "success",
  "patched_content": "fn main() { ... }",
  "message": "Patched successfully via Exact Match. Output tokens saved: ~250"
}

Setup Configuration

Add the following configuration to your MCP general settings or mcp_config.json:

{
  "mcpServers": {
    "neonia": {
      "serverUrl": "https://mcp.neonia.io/mcp?tools=neonia_dev_smart_patcher",
      "headers": {
        "Authorization": "Bearer API_KEY"
      }
    }
  }
}