chunk-your-tools 1.0.7

MCP tool schema decomposition and recomposition
Documentation

Chunk Your Tools

Quick Start License No Telemetry

version discord

Rust Python TypeScript Go C Shell

Decompose and recompose MCP tool definition JSON schemas. Split large tool inputSchema trees into addressable chunks (tools, optional properties, enums), then rebuild pruned tool definitions from survivor lists.

This library is extracted from clear-your-tools and contains only decomposition/recomposition.

What it does

  1. Chunk/Decompose — parse MCP tool definition JSON into addressable chunks (tools, optional properties, enums).
  2. Cache — write metadata.json and per-chunk files under a catalog directory.
  3. Recompose — rebuild pruned tool definitions from survivor lists.

Packages C/Go/Rust/TypeScript/Python

Windows macOS Linux

chunk-your-tools (crates.io)

Rust library and CLI

crates.io chunk-your-tools

crates.io downloads

chunk-your-tools (PyPI)

Python SDK (import chunk_your_tools)

PyPI chunk-your-tools

PyPI downloads

chunk-your-tools (npm)

TypeScript SDK

npm chunk-your-tools

npm downloads

libchunk_your_tools (Release)

C library via CMake / build-c-lib.sh

GitHub sdk/c

sdk/go (pkg.go.dev)

Go SDK via cgo (import chunkyourtools)

pkg.go.dev sdk/go

Quick start

Install the CLI:

cargo install chunk-your-tools

Or build locally: cargo build -p chunk-your-tools --release.

Library installs:

cargo add chunk-your-tools
pip install chunk-your-tools
npm install chunk-your-tools

Try the bundled walkthrough — decompose a sample tool catalog, then recompose pruned variants:

./examples/decompose.sh
export PATH="$PWD/target/release:$PATH"
./examples/recompose.sh

See examples/README.md for survivor formats, output paths, and CLI flags.

SDKs

SDK Path Docs
Python sdk/python README
TypeScript sdk/typescript README
Go sdk/go README
C sdk/c README
Rust src README

Development

See DEV.md and run ./scripts/local-dev.sh all for the full monorepo check.

License

Apache-2.0 — see LICENSE.