Ashlr Stack

v0.3.1
io.github.ashlrai/ashlr-stack Checked 1 day ago Published 1 month ago

Provision 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.

ParameterTypeDescription
cwdstringExisting absolute project directory; defaults to server cwd.
forcebooleanOverwrite an existing .stack.toml.
templatestringStarter 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).

ParameterTypeDescription
cwdstringExisting absolute project directory; defaults to server cwd.
dryRunbooleanPreview without writing.
fromstringPath to the .env file inside the project (default: .env).

stack_scan

Detect providers this repo uses by reading package.json / requirements.txt / config files.

ParameterTypeDescription
confidencestringMinimum confidence: low, medium, or high (default: medium).
cwdstringExisting absolute project directory; defaults to server cwd.
pathstringDirectory 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.

ParameterTypeDescription
service *stringService name (e.g. supabase, neon, vercel).
cwdstringExisting absolute project directory; defaults to server cwd.
usestringExisting 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.

ParameterTypeDescription
service *string
cwdstringExisting absolute project directory; defaults to server cwd.
keepRemoteboolean

stack_list

List services configured in this stack.

ParameterTypeDescription
cwdstringExisting absolute project directory; defaults to server cwd.
jsonbooleanJSON: 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.

ParameterTypeDescription
service *string
cwdstringExisting absolute project directory; defaults to server cwd.
jsonbooleanJSON: ashlr.stack.info/v1.

stack_status

Show Phantom + services + config at a glance.

ParameterTypeDescription
cwdstringExisting absolute project directory; defaults to server cwd.
jsonbooleanJSON: ashlr.stack.status/v1.

stack_env_show

Show which declared secrets are present in the Phantom vault (masked).

ParameterTypeDescription
cwdstringExisting absolute project directory; defaults to server cwd.
jsonbooleanJSON: ashlr.stack.env/v1; names only.

stack_env_diff

Report which declared secrets are missing from the Phantom vault.

ParameterTypeDescription
cwdstringExisting absolute project directory; defaults to server cwd.
jsonbooleanJSON: 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.

ParameterTypeDescription
allbooleanRun across every registered project.
cwdstringExisting absolute project directory; defaults to server cwd.
fixbooleanAttempt auto-remediation.
jsonbooleanJSON output.

stack_sync

Forward a deployment-platform sync request to phantom sync; inspect the installed Phantom command support and result separately.

ParameterTypeDescription
platform *stringOne of: vercel, railway, fly.
cwdstringExisting 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.

ParameterTypeDescription
categorystringOnly this category, any case (e.g. ai, database, payments).
jsonbooleanJSON: ashlr.stack.providers/v1.

stack_projects_list

List projects recorded in the local Stack registry; this is not a filesystem-wide discovery scan.

ParameterTypeDescription
jsonbooleanJSON: ashlr.stack.projects/v1.

stack_deps

Show the service dependency graph for the current stack.

ParameterTypeDescription
cwdstringExisting absolute project directory; defaults to server cwd.
jsonbooleanJSON: ashlr.stack.deps/v1.

stack_templates_list

List available starter stack templates and the services each one adds.

ParameterTypeDescription
jsonbooleanJSON: 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.

ParameterTypeDescription
query *stringNatural-language description of the project / stack need.
categorystringCategory (case-insensitive): Database, Deploy, Cloud, AI, Analytics, Observability, Errors, Payments, Code, Tickets, Email, Auth, FeatureFlags. Unknown values error.
cwdstringExisting absolute project directory; defaults to server cwd.
knumberMax top-level hits to return (default 6).
savebooleanSave .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.

ParameterTypeDescription
recipe_id *stringRecipe id (filename stem in .stack/recipes/, letters, numbers, underscores or hyphens).
cwdstringExisting absolute project directory; defaults to server cwd.
no_wirebooleanSkip the Phantom vault check and webhook stubs.