Packkit

v1.2.1
io.github.PackkitLabs/packkit-mcp Checked 5 hours ago Published 3 months ago

Scaffold, compose, and upgrade modern multi-language projects as a native tool for AI agents.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_generators

START HERE. Lists every Packkit generator (a language target — e.g. javascript, python, go) with its maturity and protocol capabilities. Pick the generator whose language matches what the user wants, then call list_presets and get_generator_schema for it before generating.

list_presets

List the presets a generator offers (e.g. ts-lib, react-lib, node-service for javascript; py-lib, py-cli for python), each with a description and maturity. Experimental presets are hidden unless includeExperimental is true. Choose a preset that matches the shape the user wants instead of guessing.

ParameterTypeDescription
generator *stringGenerator id from list_generators (e.g. "javascript", "python", "go")
includeExperimentalbooleanInclude experimental presets (default false)

get_generator_schema

Return a generator's full option schema — every option, its choices and defaults — as JSON. Read this before passing a `config` to generate_project so the options you set are valid for that generator.

ParameterTypeDescription
generator *stringGenerator id from list_generators

generate_project

Generate a project with a generator. By default it PREVIEWS (returns the file tree, stack summary and deployment contract without touching disk); pass write: true to scaffold the files under <directory>/<name>. Existing files are never overwritten unless force is set. Call list_presets / get_generator_schema first.

ParameterTypeDescription
generator *stringGenerator id from list_generators
name *stringProject/package name (also the folder name when writing)
configobjectOptions from get_generator_schema (overrides the preset)
directorystringParent directory to create <name>/ in when writing (default: cwd)
forcebooleanOverwrite colliding existing files when writing (default false)
presetstringA preset (or alias) from list_presets
writebooleanWrite files to disk (default false = preview only)

plan_upgrade

Plan a re-scaffold of an existing project against the current templates: a three-way diff (baseline vs on-disk vs freshly generated) that separates template changes from the user's own edits, so nothing is clobbered. Reports the plan only — it writes nothing. Requires a generator that supports baseline-upgrade.

ParameterTypeDescription
directory *stringPath to the existing scaffolded project
generator *stringGenerator id from list_generators
name *stringProject name (as originally generated)
configobjectThe options it was generated with
presetstringThe preset it was generated from (if any)

compose_fullstack

Compose two projects — a static frontend and an HTTP service backend, from ANY generators — into one fullstack repo (apps/web + apps/server) with a fullstack deployment contract and a docker-compose. Language-neutral: e.g. a "javascript" react-app frontend + a "python" py-service (or "go" go-service) backend. By default PREVIEWS; pass write: true to scaffold under <directory>/<name>.

ParameterTypeDescription
backend *objectThe service backend to generate: { generator, name, preset?, config? }
frontend *objectThe static frontend to generate: { generator, name, preset?, config? }
name *stringRepo name (folder when writing; README heading)
backendDirstringSubdir for the backend (default apps/server)
directorystringParent directory to create <name>/ in when writing
dockerComposebooleanEmit a root docker-compose.yml (default true)
forcebooleanOverwrite colliding existing files when writing
frontendDirstringSubdir for the frontend (default apps/web)
writebooleanWrite files to disk (default false = preview only)