# Clients

Vectros is a REST platform, but you almost never call it with raw HTTP. Five
client surfaces meet you where you are — from a typed SDK in your application
code, to a one-command provisioning CLI, to an agent-native MCP server, to a
declarative blueprint format that stands up a whole app's data model from a
file, to a packaged memory loop for a coding agent. Pick the one that fits the
job; they all talk to the same API and inherit the same tenant isolation and
scope rules.

| Surface | What it is | Reach for it when… | Doc |
|---|---|---|---|
| **SDK** | Typed client libraries generated from the API spec. Node is the verified reference; Java and Python are also generated. | You are writing application code and want types, pagination helpers, and streaming handled for you. | [sdk.md](sdk.md) |
| **CLI** (`@vectros-ai/cli`, `vectros`) | A command-line tool for provisioning: blueprints, app contexts, identities, roles, access bindings, scoped keys, trusted issuers, namespaces, scripts, stored agents, domain verification, bring-your-own-model provider configs, a local keyring, and a one-shot MCP credential bootstrap. | You want to scaffold or provision from a terminal or CI — without writing code or handling your root key directly. | [cli.md](cli.md) |
| **MCP server** (`@vectros-ai/mcp-server`) | A Model Context Protocol server that exposes the Vectros data plane to AI agents as 26 callable tools, three of which list, run and read the runs of your stored agents. | You want an agent (Claude Desktop, Cursor, and others) to read, write, search, and reason over your tenant's data with no integration code. | [mcp.md](mcp.md) |
| **Blueprints** (`@vectros-ai/blueprints`) | A declarative app-model-as-config format: schemas, an access profile, a service principal, seed data, roles, and stored agents, all in one file. | You want to describe an app's data model once and provision it idempotently. | [blueprints.md](blueprints.md) |
| **Claude Code agent memory** (`@vectros-ai/claude-code-agent-memory`) | A packaged set of Claude Code hooks — built on the CLI and the agentic-SDLC blueprint — that gives a coding agent involuntary, cross-session memory. | You want a Claude Code agent to recall your team's knowledge and its own past sessions without being asked. | [claude-code-agent-memory.md](claude-code-agent-memory.md) |
| **Mobile** (`@vectros-ai/react/core` + `providers/expo`) | The headless half of the React toolkit and an Expo sign-in provider: your users sign in with your identity provider and the app calls Vectros directly, with no server. | You are building a React Native (Expo) app. | [mobile.md](mobile.md) |

## How they fit together

The pieces compose into a no-code path from a file to a working, agent-driven
app:

1. A **blueprint** declares the schemas, the least-privilege access profile, a
   service principal, optional seed records, optional roles, and optional stored agents.
2. The **CLI** `bootstrap` command reads the blueprint, provisions everything it
   declares, and mints a narrow scoped key (`ssk_*`), stores it in your machine's credential store, and merges
   an entry that names it into your MCP client config.
3. The **MCP server** picks up that key and gives an agent the data-plane tools.
4. Your application code — or a forked reference app — uses the **SDK** for the
   same operations programmatically.
5. **Claude Code agent memory** is one specific way to drive steps 1–3 end to
   end for a coding agent: it bootstraps its own credential via the CLI,
   provisions the schemas it needs via the agentic-SDLC blueprint, and turns
   the resulting access into an involuntary recall/capture loop instead of a
   set of tools an agent has to remember to call.

A blueprint's credential is limited to the CLI scope gate's allowlist: the
**data-plane** resources (records, schemas, search, documents, folders, inference,
runs, and identity entities) plus a few narrow, named exceptions (`profiles:r`/`u`/`d`,
`profiles:c:self`, a bare `profiles:c` only alongside the `member-lifecycle`
capability, and `scripts:x:<name>`). The CLI is the trust boundary: it refuses
any other scope — keys, app contexts, users, billing, admin, the namespace
registry — whether the blueprint is bundled, hand-written, or agent-authored,
and mints nothing when it does. See [cli.md](cli.md#the-scope-gate-data-plane-allowlist).

## A note on versions

The API is specified once and the Node SDK is generated from that spec; the spec
is currently at **0.51.0**. All first-party clients in this repository —
the **CLI**, the **MCP server**, the **React toolkit**, and the reference web apps
— build against a matching **0.51.0** SDK today; there is no version gap
between them to track. A few capabilities (record/document/folder PATCH, and the
`typeName`-or-`schemaId` choice on record creation) need SDK 0.26 or newer —
relevant only if your own integration pins an older build. Each doc calls out
exactly which calls need it; see [sdk.md](sdk.md) for the full picture.

## Where to go next

- [sdk.md](sdk.md) — install, construct a client, and make your first call.
- [cli.md](cli.md) — the full command catalog and the blueprint lifecycle.
- [mcp.md](mcp.md) — the 26 tools, both transports, and the credential bootstrap.
- [blueprints.md](blueprints.md) — the blueprint format reference.
- [claude-code-agent-memory.md](claude-code-agent-memory.md) — a packaged
  memory loop for a Claude Code agent, built on the CLI and a blueprint.
- [mobile.md](mobile.md): sign-in, the token cache and the store checklist for
  a React Native (Expo) app.
- The blueprint walkthroughs (getting-started, clinical-intake, agentic-sdlc,
  second-brain) — end-to-end, narrated builds on top of these clients.
