@indiekitai/just
v0.1.0
Published
A command runner - TypeScript port of casey/just
Downloads
88
Maintainers
Readme
@indiekit/just
A command runner for TypeScript/Node.js — a TypeScript port of casey/just.
Features
- Parse justfile syntax — recipes, variables, comments, string literals
- Execute recipes with arguments and dependencies
- Variable assignments and interpolation
@prefix for quiet executionset shellsetting support--listto show available recipes--dry-runto preview commands- MCP Server — expose justfile recipes to AI agents
- Error messages with line numbers
Install
npm install @indiekit/justCLI Usage
# Run the default recipe (first one)
just-run
# Run a specific recipe
just-run build
# Run with arguments
just-run deploy production
# List all recipes
just-run --list
# Dry run
just-run --dry-run buildJustfile Example
# Build the project
build:
npm run build
# Deploy to environment
deploy env:
echo "Deploying to {{env}}"
./scripts/deploy.sh {{env}}
# Run tests (depends on build)
test: build
npm testMCP Server
Expose justfile recipes as AI-agent tools:
just-run-mcpAdd to your MCP client config (Claude Desktop, Cursor, etc.):
{
"mcpServers": {
"just": {
"command": "just-run-mcp"
}
}
}MCP Tools
| Tool | Description |
|------|-------------|
| list_recipes | List all recipes in a justfile |
| run_recipe | Execute a recipe |
| parse_justfile | Parse and return justfile AST |
API Usage
import { parseJustfile, execute } from '@indiekit/just';
const justfile = parseJustfile('justfile');
await execute(justfile, 'build');License
MIT
