Skip to content

hegner123/split

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

split

MCP tool that splits a file into multiple parts at specified line numbers.

Given a file and line numbers [100, 200, 300], produces 4 files: lines 1-100, 101-200, 201-300, 301-EOF. Output files are named with sequential suffixes (e.g., file_001.txt, file_002.txt).

Installation

go build -o split
sudo cp split /usr/local/bin/
codesign -s - /usr/local/bin/split

Or with just:

just install

Usage

CLI

split --cli --file /path/to/file.txt --lines 100,200,300

MCP

Add to Claude Code:

claude mcp add --transport stdio --scope user split -- split

Or with just:

just add

License

MIT

About

MCP tool that splits a file into multiple parts at specified line numbers

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors