runnables 0.1.0

What a folder can run: apps, tests, watchers, simulators, databases and deploys, found from its files. A library, a CLI, and an MCP server for coding agents.
Documentation
  • Coverage
  • 42.71%
    41 out of 96 items documented1 out of 23 items with examples
  • Size
  • Source code size: 200.4 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.0 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • sichy/runnables
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • sichy

runnables

What a folder can run, found from the files it already has: its apps, tests, watchers, simulators, databases and Docker Compose services, each with the exact shell command and one picked to run by default. A Rust library, a CLI, and an MCP server that tells coding agents how to run your project.

crates.io docs.rs MIT

It is the scan behind the Run bar of Edit, the agentic code editor, where it also feeds the iPhone and Android apps and the VS Code extension.

$ cargo install runnables
$ runnables ~/code/shop
shop-api (Rust)
  * Run            (cd /Users/me/code/shop/api && cargo run)
    Run Release    (cd /Users/me/code/shop/api && cargo run --release)
shop-web (Node · pnpm)
    dev            (cd web && pnpm dev)
    build          (cd web && pnpm build)
    test           (cd web && pnpm test)
Docker Compose (compose.yaml)
    Up             docker compose up
    Down           docker compose down
shop-api (Cargo)
    Test           (cd /Users/me/code/shop/api && cargo test)
    Clippy         (cd /Users/me/code/shop/api && cargo clippy --all-targets)
    Build Release  (cd /Users/me/code/shop/api && cargo build --release)

* marks the default. Nothing is run: runnables only reads files and returns commands.

What it finds

Kind From Commands
.NET .csproj, .sln, .slnx Aspire AppHost, web, worker, desktop and console apps (watch, run, release), MAUI, tests
Databases EF Core DbContexts in .NET projects update, add, remove and list migrations, per context and all at once
Node, Deno, Bun package.json, deno.json, the lock file the scripts, with the package manager the lock file names
Rust Cargo.toml (workspaces, several binaries) run, release, test, clippy, build
Go go.mod run each main package, test
iOS .xcodeproj, .xcworkspace, XcodeGen project.yml simulator, device, archive, tests (macOS only)
Android Gradle (build.gradle, .kts) emulator, device, release build, tests
Docker Compose compose.yaml, docker-compose.yml up, down
Deploys shell scripts in .deploy/ what each one does, read from its commands (deploy)

It looks four folders deep and skips node_modules, target, bin, obj and the like.

For coding agents (MCP)

runnables mcp is a stdio MCP server with one tool, list_runnables { folder }. An agent asks it how to start, test or migrate a project instead of guessing from the README.

Claude Code:

claude mcp add runnables -- runnables mcp

Cursor, VS Code, Zed and others (mcp.json):

{
  "mcpServers": {
    "runnables": { "command": "runnables", "args": ["mcp"] }
  }
}

As a library

let report = runnables::report(std::path::Path::new("."));
for group in &report.groups {
    for task in &group.tasks {
        println!("{} · {}: {}", group.title, task.label, task.command);
    }
}

runnables::detect returns the groups; runnables::report adds the default; every type is Serialize, and runnables detect <folder> prints the same JSON.

License

MIT. Made by Pavel Sich for Edit.