Back to Search
neonia_dev_smart_patcher
0.3.0Computes a unique byte-range text edit using explicit matching semantics.
$0.002 / call (Standard Tier)
Updated: Sep 21, 2026
Overview
A fail-closed text transformation utility that rejects zero or multiple matches and exposes exact edit coordinates.
Example Input
JSON payload sent to this tool:
{
"original_content": "fn main() {\n old();\n}\n",
"search_block": " old();",
"replace_block": " new();",
"match_mode": "exact",
"output_mode": "edit"
}Example Output
Formatted JSON response returned by this tool:
{
"status": "success",
"match_mode": "exact",
"output_mode": "edit",
"edit": {"start_byte": 12, "end_byte": 22, "replacement": " new();", "matched_text": " old();"},
"message": "Patch computed successfully via exact matching",
"source_bytes": 25,
"patched_bytes": 25
}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"
}
}
}
}