Skip to content

hegner123/init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

init

A lightweight MCP server and CLI tool that bootstraps new projects with boilerplate files. It embeds template files (LICENSE, CONTRIBUTING.md) at compile time and writes them to a target directory, refusing to overwrite any existing files.

Installation

go build -o init .
cp init /usr/local/bin/init

Or with just:

just install

Usage

MCP Server

Register as an MCP server in your Claude configuration:

claude mcp add --transport stdio init -- /usr/local/bin/init

The server exposes a single init tool that accepts a directory parameter and writes the embedded template files there.

CLI

init --cli --directory /path/to/new/project

Returns JSON with the list of files created:

{"directory": "/path/to/new/project", "files_created": ["/path/to/new/project/LICENSE", "/path/to/new/project/CONTRIBUTING.md"]}

Customizing Templates

Edit the files in files/ and rebuild. The go:embed directives in main.go bundle them into the binary. To add new templates, add a new embedded file variable and append it to the embeddedFiles slice with the desired destination filename.

About

Bypasses LLM filter for Sensitive Language for industry standard files in project init workflows.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors