# Padrino for AI agents and developers

Source: https://www.padrino.ai/developers

## Connect

- **MCP server:** https://mcp.padrino.ai/mcp (Streamable HTTP)
- **Sign in from an AI app:** OAuth 2.1. Leave client id and secret blank: the client registers itself, the person clicks Continue with Padrino, signs in, picks the business and sets the permission switches. Padrino creates a key named after the assistant. Access tokens last one hour and refresh.
- **Your own agent or script:** A scoped key from Settings, API keys, sent as `Authorization: Bearer mb_live_...` to the MCP server or to https://app.padrino.ai/api/...
- **Claude Code:** `claude mcp add --transport http padrino https://mcp.padrino.ai/mcp --header "Authorization: Bearer mb_live_..."`
- **Price:** Free. No credit card needed.
- **Start here:** `GET /api/context`, then `GET /api/manifest?mine=1`.
- **Disconnect:** Revoke the key under Settings, API keys.

Setup steps per AI client: https://www.padrino.ai/connect.md

## MCP tools

- **`get_context`:** Start here: who the key acts as, the business, how the API behaves, and the instructions written for agents. (GET /api/context)
- **`list_endpoints`:** Browse the operations: groups with counts, or the endpoints under a prefix or matching a search. Lists only what the key may call. (GET /api/manifest)
- **`describe_endpoint`:** One operation's scopes, summary and the JSON Schema of its query and body. (GET /api/manifest?path=&method=)
- **`call_endpoint`:** Make the call. Path placeholders fill from path_params. (the operation itself)

## Permission switches

- **Read:** Always on. Every :read scope.
- **Make changes:** On by default. Every :write scope not listed below (CRM, projects, orders, inventory, scheduling and the rest).
- **Accounting:** On by default. ledger:write, bankfeed:write, reconciliation:write, budgets:write.
- **Contact customers:** Off by default. outreach:send (emails and texts to customers and leads).
- **Build and configure:** Off by default. automations:write, screens:write, settings:write.

A member who cannot post gets reading only.

All scopes: `analytics:read`, `analytics:write`, `assistants:write`, `automations:read`, `automations:run`, `automations:wake`, `automations:write`, `bankfeed:read`, `bankfeed:write`, `budgets:read`, `budgets:write`, `catalog:read`, `catalog:write`, `content:read`, `content:write`, `counts:read`, `counts:write`, `crm:read`, `crm:write`, `decorator:read`, `decorator:write`, `documents:read`, `documents:write`, `email:send`, `etsy:write`, `fulfillment:read`, `fulfillment:write`, `intake:read`, `intake:write`, `inventory:read`, `inventory:write`, `ledger:read`, `ledger:write`, `locations:read`, `locations:write`, `orders:read`, `orders:write`, `outreach:send`, `pm:read`, `pm:write`, `pricing:read`, `pricing:write`, `purchasing:read`, `purchasing:write`, `quickcapture:write`, `reconciliation:read`, `reconciliation:write`, `reports:read`, `sales:read`, `sales:write`, `scheduling:read`, `scheduling:write`, `screens:read`, `screens:write`, `settings:read`, `settings:write`, `shifts:read`, `shifts:write`, `support:read`, `support:write`, `tools:qr`, `warehouse:read`, `warehouse:write`, `workforce:read`, `workforce:write`

## When an agent is blocked

- **Missing scope:** 403 with "API key is missing required scope: <scope>". The key cannot do it; ask the owner to grant that permission.
- **Invalid input:** 400 { error: "Validation failed", in: "body" | "query", issues: [{ path, message }] }. Fix the named fields and retry.
- **Needs confirmation:** Usually 409 with a warning and an explanation, for example closed_period. The same request is accepted again with the confirmation field it names (confirmClosedPeriod: true). Confirm only when the person you act for has agreed.
- **Accounting entries:** An agent records journal entries as drafts. A person reviews and posts them. Posted entries never change; corrections are new entries.
- **Next steps:** Many responses carry next_actions: the follow-up calls, ready to make, so an agent never has to guess what comes after.
- **Rate limits:** No fixed per-key rate limit is published today. Every change an agent makes is logged with the key that made it.

## Operations

905 operations (372 read, 533 write). Browse: https://www.padrino.ai/developers/operations. JSON: https://www.padrino.ai/api-catalog.json
