Quickstart: build with your agent

Connect your AI agent once, describe the app in a few lines, and get a working app with its own database, sign-in, access rules per role and a dev link, tested as each of your users. Then ship it to production when verify passes.

What you need

  • An Appbricx account. Sign up.
  • An MCP client: Claude Code, Claude (claude.ai or Desktop), Cursor, Codex, VS Code or any other.

1. Connect your agent

There is no token to copy. You add the server, and the first time the client connects it opens a browser window: sign in to Appbricx, pick the workspace and what the agent may do (read, apply, deploy), and click Authorize. The server URL is the same for every client:

https://appbricx.com/api/mcp

Claude Code

claude mcp add --transport http appbricx https://appbricx.com/api/mcp
# add --scope user to use it in every project

Then run /mcp, pick appbricx and choose Authenticate. The Claude Code plugin adds the server and a skill that teaches Claude the build loop:

/plugin marketplace add Naveenbhargav-m/appbricx-examples
/plugin install appbricx@appbricx

Claude (claude.ai and Claude Desktop)

Open Settings, Connectors, Add custom connector, paste https://appbricx.com/api/mcp as the server URL and save. Choose Connect and authorize in the window that opens. You can also add Appbricx from its listing in Claude's connectors directory. Claude has no shell, and doesn't need one: every step below is a tool.

Cursor

Add to Cursor, or put this in .cursor/mcp.json:

{
  "mcpServers": {
    "appbricx": { "url": "https://appbricx.com/api/mcp" }
  }
}

Codex

In ~/.codex/config.toml, then sign in:

[mcp_servers.appbricx]
url = "https://appbricx.com/api/mcp"

# then, in a terminal
codex mcp login appbricx

Other clients

  • VS Code: Add to VS Code, or .vscode/mcp.json: {"servers":{"appbricx":{"type":"http","url":"https://appbricx.com/api/mcp"}}}
  • Windsurf (serverUrl) and Gemini CLI (httpUrl): the same URL.
  • A client that can't open a browser (CI, a remote box) sends a personal access token as Authorization: Bearer apx_pat_…. See access tokens.

2. Ask for your first app

Say who uses the app and what each of them may see and do:

Use appbricx. Create a project called "Field Desk": dispatchers create
jobs at customer sites and assign them to technicians; technicians see
and update only the jobs assigned to them. Email the technician when a
job is assigned. Seed two technicians, two sites and a few jobs.
Apply it, try it as each role, take screenshots and run verify until it
passes. Don't deploy yet.

To start from a working app instead, ask for a template: the agent finds one with search_templates and starts the project with use_template, for example the code-first starter team-outings. See templates.

3. Watch the loop

Your agent works in a loop of small, checked steps. Each one answers with exact feedback (an error at its file and line, a refused request with the policy that refused it), so it fixes things in a few rounds instead of guessing.

  1. Read the guide. get_guide starts with the project layout; search_docs finds anything else.
  2. Create the project. create_project, or use_template for a starter.
  3. Write the code. code creates and edits each part by what it is: a route by its URL, an action, a workflow, a table, an access policy, a template. packages adds npm packages and assets uploads images. With then: "check" every write comes back with the type check and lint.
  4. Apply to dev. apply_contract migrates the dev database (rows kept), builds the pages and arms the workflows. The answer lists a demo sign-in per role.
  5. Try it as each user. call_app calls the running app as a visitor or any role: a data read, an action, a page's HTML. screenshot opens a page in a real browser and can click and type. workflows with dry_run runs a workflow once and lists every email and write it would make, sending nothing. explain says why a request was refused.
  6. Verify. verify signs in as every role and tries every table, page and action. Each failure comes with evidence and a fix.
  7. Deploy. deploy with dry_run: true shows the plan; without it, production is snapshotted, migrated and switched over. deploys rolls back.

For many steps at once the agent can use run_script: one TypeScript script that calls the tools in loops and in parallel, and answers only what it returns. Deploys, rollbacks and production writes inside a script need to be allowed by name.

4. Try it yourself

Open the dev link from the apply answer (https://dev-field-desk.apps.appbricx.com) and sign in as each demo role. What you change in the app writes to the dev database only.

5. Go live

Ask: "Show me the deploy plan for field-desk, then deploy." The agent runs deploy with a subdomain; the release is rehearsed on a copy of production and verified there first, and the app goes live at https://field-desk.apps.appbricx.com. If a later release goes wrong, "roll back to the previous release" is one call.

Keep control of your agent

  • Every agent you authorize is listed in Workspace settings, Coding agents, with when it was last used and a Revoke button.
  • Give an agent only read and apply if you want to deploy yourself. A workspace viewer's agent can only read.
  • Pin a project with ?project=<id> on the server URL: the agent can't touch your other apps, and it sees that project's real table and role names.
  • Every write an agent makes is in the audit log, with the token that made it.

Gotchas

  • "Skipped" is not "pass". If verify skips a check, the release is unverified.
  • Ask for screenshots. Agents fix far more when they look at the pages they wrote.
  • Dev email stays in the outbox. In dev, mail to anyone but the project's owners and admins is kept (tail with kind emails), not sent.

Related