genify

genify

genify•bydaxartio

An MCP server and CLI that lets AI coding agents plan, diff, and apply structured file changes confined to a project root.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Offers MCP tools to plan operations, produce dry-run unified diffs, and apply changes only with explicit approval or a confirm token.
  • •Supports many rule types including write, delete, move/copy, mkdir, chmod, append/prepend, insert around markers, replace, and managed blocks.
  • •Restricts all filesystem access to the configured root and supports a read-only mode for agent sessions.
  • •Accepts config directly as JSON in MCP tool arguments, requiring no temporary TOML config or template file.

BEST FOR

  • •AI coding agents that need to safely edit files inside a project with dry-run previews before applying changes.
  • •Developers generating or updating a full project structure consistently from a single source file.

ABOUT GENIFY

genify is cataloged as an MCP server attributed to daxartio. An MCP server and CLI that lets AI coding agents plan, diff, and apply structured file changes confined to a project root. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for genify are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can genify preview changes before writing files?

Yes. The genify_diff tool runs generation in dry-run mode and returns a unified diff, and genify_plan returns planned operations without writing files.

What does genify_apply require to make changes?

It applies changes only when explicit_approval is true or confirm_token is "apply".

Can the MCP server be restricted to read-only use?

Yes, genify mcp supports a --read-only flag for read-only agent sessions.

Upstream README

View this exact version on GitHub

README.md · 30879e87750e · Fetched 2026-11-13 13:43:31 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

genify

MCP tool for AI coding agents to safely plan, diff, and apply structured file changes inside a project root.

Use genify for repeatable codebase edits: writing files, replacing text, inserting blocks around markers, moving/copying/deleting paths, creating directories, changing modes, and generating dry-run diffs before applying changes.

Crates.io Docs.rs CI Coverage Status

Turn one file into a complete project

The main idea is to have a single source file that can be used to generate or update a full project structure quickly and consistently using different configuration files.

There are three modes:

  • CLI interactive mode – for manual use and quick input.
  • Code mode – for automated and configurable project generation.
  • MCP server mode – for AI coding agents that call structured tools over STDIO.

Features:

  • Create files from templates based on config.
  • Replace content using regular expressions.
  • Append or prepend content to existing files.
  • Easily update multiple projects using shared configs.

Installation

Cargo

  • Install the rust toolchain in order to have cargo installed by following this guide.
  • run
    cargo install genify --features cli
    

Get Started

CLI

Turn one file into a complete project

Usage: genify [OPTIONS] [PATH]
       genify <COMMAND>

Arguments:
  [PATH]  Path to a config file or http(s) URL

Options:
  -p, --props-json <JSON>  Override props using a JSON object (Array/Map supported)
  -n, --no-interaction     Do not ask any interactive question
  -h, --help               Print help
  -V, --version            Print version

Commands:
  mcp   Start genify as an MCP server over STDIO
  help  Print this message or the help of the given subcommand(s)

example.toml

[props]
value = "value"
dir = "tmp"
val = "val"
other = "{{ val }}"
override = "1"

[[rules]]
type = "write"
path = "{{ dir }}/some.txt"  # if the file exists will be error
content = "{{ val }} {{ value }} {{ other | pascal_case }} {{ override }} - should be replaced"
if_exists = "error"

[[rules]]
type = "replace"
path = "{{ dir }}/some.txt"
replace = "should.*replaced"
content = "replaced {{ value }}"

[[rules]]
type = "prepend"
path = "{{ dir }}/some.txt"
content = "prepend {{ value }}"

[[rules]]
type = "append"
path = "{{ dir }}/some.txt"
content = "append {{ value }}"
genify example.toml

Override props from the CLI (including Array/Map) using JSON:

genify example.toml --props-json '{"tags": ["cli", "json"], "meta": {"license": "MIT"}}'

tmp/some.txt

prepend value
val value Val 1 - replaced value
append value

MCP

Run genify as an MCP server using the standard STDIO transport:

genify mcp --root .

For read-only agent sessions:

genify mcp --root . --read-only

Example Codex configuration:

[mcp_servers.genify]
command = "genify"
args = ["mcp", "--root", "."]

The MCP server writes protocol messages only to stdout; logs and diagnostics go to stderr. All filesystem access is constrained to --root.

Available tools:

ToolBehavior
genify_planReturns planned file operations and affected paths without writing files.
genify_diffRuns generation in dry-run mode and returns a unified diff.
genify_applyApplies changes only when explicit_approval is true or confirm_token is "apply".
genify_validate_configValidates config parsing, rendering, and generated paths.
genify_list_templatesLists .toml configs and template files under the MCP root.

genify_plan, genify_diff, and genify_apply accept the config directly as JSON in MCP tool arguments. No temporary TOML config or template file is required.

{
  "config": {
    "rules": [
      {
        "type": "replace",
        "path": "src/application.rs",
        "replace": "old text",
        "content": "new text"
      }
    ]
  },
  "root": "."
}

Supported rule types:

TypeFields
writepath, content, if_exists (overwrite, error, or skip)
deletepath
rename / movefrom, to
copyfrom, to
mkdirpath
chmodpath, mode
append / append_once / prependpath, content
insert_before / insert_afterpath, marker, content
replace / replace_or_appendpath, replace, content, optional replace_all, optional expected_matches
managed_blockpath, start_marker, end_marker, content

replace is strict by default: when replace_all is false or omitted, it fails unless the regex match count equals expected_matches, which defaults to 1.

Supported rule examples:

{
  "config": {
    "rules": [
      {
        "type": "write",
        "path": "new/file.rs",
        "content": "...",
        "if_exists": "error"
      }
    ]
  }
}
{
  "config": {
    "rules": [
      {
        "type": "append_once",
        "path": "README.md",
        "content": "..."
      }
    ]
  }
}
{
  "config": {
    "rules": [
      {
        "type": "managed_block",
        "path": "README.md",
        "start_marker": "<!-- genify:start -->",
        "end_marker": "<!-- genify:end -->",
        "content": "..."
      }
    ]
  }
}
{
  "config": {
    "rules": [
      {
        "type": "insert_after",
        "path": "README.md",
        "marker": "## Usage",
        "content": "..."
      }
    ]
  }
}
{
  "config": {
    "rules": [
      {
        "type": "move",
        "from": "old/file.rs",
        "to": "new/file.rs"
      }
    ]
  }
}

genify_validate_config returns a structured hint.minimal_config and per-operation examples when the config is missing or invalid.

Supported Variable Types

TypeDescriptionCLI Interactive Support
StringText value✅ Supported
IntegerWhole number✅ Supported
FloatDecimal number✅ Supported
Booleantrue or false✅ Supported
ArrayList of values✅ JSON input
MapKey-value pairs✅ JSON input

Note: For Array and Map, enter JSON when prompted or provide them up front with --props-json.

Code

fn main() {
    genify::generate(
        Path::new("."),
        &genify::parse_toml(
            fs::read_to_string("example.toml")
                .unwrap()
                .as_str(),
        )
        .expect("The config should be valid"),
        Some(vec![(
            "value".to_string(),
            genify::Value::String("val".to_string()),
        )]),
    )
    .expect("The generation should be successful");
}

License

Contribution

CONTRIBUTING.md

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for genify from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/genify)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools