Use these loops when work needs to be repeated, reviewed, or handed off. Each one starts from observable project state, validates before writes, and ends with evidence from the runtime.Documentation Index
Fetch the complete documentation index at: https://docs.metabind.ai/llms.txt
Use this file to discover all available pages before exploring further.
Start From Project State
Before changing anything, establish the operating target.- Run
metabind status. - Confirm the active account, organization, and project.
- Save the intended project scope with
metabind useif the current context is incomplete or wrong. - Re-run
metabind statusbefore making changes.
Build a UI Tool
The UI tool loop starts with a BindJS component module and ends with a project tool:- Read the relevant BindJS reference with
metabind bindjs. - Write component source, or read the current component before editing an existing one.
- Validate the module with
metabind validate. - Create or update the component with
metabind component. - Create or update the MCP tool with
metabind tool. - Publish when the draft state is ready.
- Compile or snapshot the published view with representative content.
defineComponent export and includes previews for Composer surfaces:
Build a Data Tool
Data tools use server-sidedefineDataSource modules. They are a good fit when a tool needs to compute data, call an external API, or return structured output before a UI renders it.
- Validate the source module.
- Create the data tool atomically with
metabind data-tool. - Bind referenced secrets with
metabind env. - Allow external domains when the handler calls outside services.
- Publish when the draft state is ready.
- Execute the published tool with representative input.
env.secrets, not from process environment variables.
Publish
Publishing is a release step. It freezes draft state into a package version and updates the runtime pins for changed tools. Before publishing, confirm the release is ready:- confirm the active project with
metabind status - run
metabind doctor - inspect changed components and tools
Roll Back
Rollback moves tool pins back to a previous published package version. It does not delete the newer package. Treat rollback as an operational change:- Inspect the current tool and package state.
- Choose the package version that should run.
- Roll back only the intended tools.
- Compile or execute the affected tools against representative input.
- Use persisted rollback when the target component source should become the next package version.
- Run
metabind doctorafterward.
Manage Secrets
Data tools reference secrets by key throughenv.secrets. The CLI stores values and binds them to the data tools whose handlers reference those keys.
Never place secret values in markdown summaries, issue comments, or final responses. Use the secure input path from metabind env when setting values so secrets do not appear in command history.
Use metabind env list to inspect which keys exist and which tools reference them. Values are intentionally not returned.
Hand Off to an MCP Host
MCP hosts need two project values:- the MCP endpoint from
metabind url - a project API key from
metabind api-key
Completion Checklist
Before reporting work complete, be able to answer:- Which org and project did it operate on?
- Which components, tools, content rows, secrets, or API keys changed?
- Was the project published, left in draft, rolled back, or only inspected?
- What did
metabind doctorreport after the changes? - Which MCP endpoint or app surface should the human test?
metabind feedback from the same shell so the CLI can attach useful context.