Ashlr Stack
v0.3.1Provision and connect third-party dev services (Supabase, Vercel, and more) from your coding agent.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
stack_init
Scaffold .stack.toml in the current directory; a selected template may also run provider setup.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Existing absolute project directory; defaults to server cwd. |
force | boolean | Overwrite an existing .stack.toml. |
template | string | Starter template name. |
stack_import
Import nonempty new variables from an .env file into Phantom and record detected services; existing vault names are left unchanged. Returns ashlr.stack.import/v1 JSON naming what was stored, skipped and wired (names only, never values).
| Parameter | Type | Description |
|---|---|---|
cwd | string | Existing absolute project directory; defaults to server cwd. |
dryRun | boolean | Preview without writing. |
from | string | Path to the .env file inside the project (default: .env). |
stack_scan
Detect providers this repo uses by reading package.json / requirements.txt / config files.
| Parameter | Type | Description |
|---|---|---|
confidence | string | Minimum confidence: low, medium, or high (default: medium). |
cwd | string | Existing absolute project directory; defaults to server cwd. |
path | string | Directory to scan inside the project (default: cwd). |
stack_add
Run provider-specific service setup or attach an existing resource, then record returned secret slots and optional MCP configuration. Credentials and client/provider acceptance must be checked separately.
| Parameter | Type | Description |
|---|---|---|
service * | string | Service name (e.g. supabase, neon, vercel). |
cwd | string | Existing absolute project directory; defaults to server cwd. |
use | string | Existing resource id to attach to. |
stack_remove
Remove local service configuration and its MCP entry, and attempt Phantom secret cleanup. Returns JSON (ashlr.stack.remove/v1); `secrets_kept` lists names Phantom left stored, which headless runs always do, for the user to remove with `phantom remove` in a terminal. Upstream resources are kept.
| Parameter | Type | Description |
|---|---|---|
service * | string | |
cwd | string | Existing absolute project directory; defaults to server cwd. |
keepRemote | boolean |
stack_list
List services configured in this stack.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Existing absolute project directory; defaults to server cwd. |
json | boolean | JSON: ashlr.stack.list/v1. |
stack_info
Inspect configured resource, auth kind, secret-name inventory and MCP metadata; attempt a healthcheck when the provider supports one.
| Parameter | Type | Description |
|---|---|---|
service * | string | |
cwd | string | Existing absolute project directory; defaults to server cwd. |
json | boolean | JSON: ashlr.stack.info/v1. |
stack_status
Show Phantom + services + config at a glance.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Existing absolute project directory; defaults to server cwd. |
json | boolean | JSON: ashlr.stack.status/v1. |
stack_env_show
Show which declared secrets are present in the Phantom vault (masked).
| Parameter | Type | Description |
|---|---|---|
cwd | string | Existing absolute project directory; defaults to server cwd. |
json | boolean | JSON: ashlr.stack.env/v1; names only. |
stack_env_diff
Report which declared secrets are missing from the Phantom vault.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Existing absolute project directory; defaults to server cwd. |
json | boolean | JSON: ashlr.stack.env-diff/v1; names and service only. Missing secrets remain an error. |
stack_doctor
Inspect the configured-service health report. --fix attempts supported remediation; stored vault names can cause repairs to be skipped, and name presence is not credential validity.
| Parameter | Type | Description |
|---|---|---|
all | boolean | Run across every registered project. |
cwd | string | Existing absolute project directory; defaults to server cwd. |
fix | boolean | Attempt auto-remediation. |
json | boolean | JSON output. |
stack_sync
Forward a deployment-platform sync request to phantom sync; inspect the installed Phantom command support and result separately.
| Parameter | Type | Description |
|---|---|---|
platform * | string | One of: vercel, railway, fly. |
cwd | string | Existing absolute project directory; defaults to server cwd. |
stack_providers
List the curated source provider catalog by category; inclusion does not attest complete provisioning or active credentials.
| Parameter | Type | Description |
|---|---|---|
category | string | Only this category, any case (e.g. ai, database, payments). |
json | boolean | JSON: ashlr.stack.providers/v1. |
stack_projects_list
List projects recorded in the local Stack registry; this is not a filesystem-wide discovery scan.
| Parameter | Type | Description |
|---|---|---|
json | boolean | JSON: ashlr.stack.projects/v1. |
stack_deps
Show the service dependency graph for the current stack.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Existing absolute project directory; defaults to server cwd. |
json | boolean | JSON: ashlr.stack.deps/v1. |
stack_templates_list
List available starter stack templates and the services each one adds.
| Parameter | Type | Description |
|---|---|---|
json | boolean | JSON: ashlr.stack.templates/v1; services, providers and secret names. |
stack_upgrade
Check npm for a newer @ashlr/stack release. Returns ashlr.stack.upgrade/v1 JSON (current, latest, status, install command); installs nothing.
stack_recommend
Rank curated providers by query, returning JSON as text without LLM inference. save:true writes a Recipe for stack_apply.
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural-language description of the project / stack need. |
category | string | Category (case-insensitive): Database, Deploy, Cloud, AI, Analytics, Observability, Errors, Payments, Code, Tickets, Email, Auth, FeatureFlags. Unknown values error. |
cwd | string | Existing absolute project directory; defaults to server cwd. |
k | number | Max top-level hits to return (default 6). |
save | boolean | Save .stack/recipes/<id>.toml for stack_apply; returns recipe id. |
stack_apply
Apply a saved Recipe through provider setup, then report which declared secrets are in the Phantom vault and which are missing (names only; it never writes to the vault) and write webhook stubs. Inspect failures and skips. no_wire:true skips the vault check and stubs, not provider credential writes.
| Parameter | Type | Description |
|---|---|---|
recipe_id * | string | Recipe id (filename stem in .stack/recipes/, letters, numbers, underscores or hyphens). |
cwd | string | Existing absolute project directory; defaults to server cwd. |
no_wire | boolean | Skip the Phantom vault check and webhook stubs. |