{"repo":"oxhq/morfx","free":true,"listed":false,"github":"https://github.com/oxhq/morfx","clone":"git clone https://github.com/oxhq/morfx.git","description":"Safe AST-based code transformations for MCP agents, standalone tools, and automation runtimes.","language":"Go","stars":12,"topics":["ai-agents","ast","automation","code-transformation","developer-tools","mcp","refactoring","tree-sitter"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Morfx Safe AST-based code transformations for MCP agents, with standalone JSON tools when you want direct automation. Morfx gives AI agents a deterministic way to query and rewrite code by AST node instead of raw text. It ships as morfx mcp for MCP clients such as Claude Desktop and Codex, and as standalone JSON tools such as query , replace , file query , recipe , and apply for direct local automation. 30-Second Quick Win If you want to understand Morfx fast, do not start by building from source. Download a release, point query at a real file, and get back structured AST matches: You get JSON back with the matched node, confidence details, and file metadata. The same engine is what morfx mcp exposes to MCP clients when you ask an agent to replace, delete, insert, run a recipe, or stage a change safely. Why AI agents edit code by generating diffs or full-file rewrites. That works until it doesn't: off-by-one replacements, broken scope, wrong indentation, silent failures. Morfx solves this by operating on the actual syntax tree. Every transform is targeted by AST node, confidence-scored, and optionally staged for review before applying. What it does - Query — Find functions, structs, classes, methods, interfaces by type and name pattern (wildcards supported) - Replace — Swap a matched code element with new code - Delete — Remove a matched element cleanly - Insert before / after — Add code relative to a target element - Append — Smart placement at end of file or scope - Stage /","default_branch":null,"files":null,"tree":[],"storefront":"/r/oxhq","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/oxhq/morfx/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}