Back to Search
neo_dev_smart_patcher
0.1.0Applies targeted SEARCH/REPLACE patches to files to drastically reduce output tokens.
$0.002 / call (Standard Tier)
Updated: Apr 30, 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 for safer, faster refactoring. 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://workspace/math.js",
"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. Output tokens saved: ~2450"
}Setup Configuration
Add the following configuration to your MCP general settings or mcp_config.json:
{
"mcpServers": {
"neonia": {
"serverUrl": "https://mcp.neonia.io/mcp?tools=neo_dev_smart_patcher",
"headers": {
"Authorization": "Bearer API_KEY"
}
}
}
}