Build complete Reboot MCP Apps for ChatGPT, Claude, VSCode, Goose, and other MCP hosts. Layers on top of the python skill for backend mechanics; covers what's specific to MCP Apps — the User-type front door, MCP tool exposure, the UI() method type, and the full React/Vite scaffolding.
Ships in reboot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Version notices: if
rbtreports a version mismatch or that a newer Reboot is available, the upgrade skill says how and when to react.
Build complete Reboot MCP Apps from a user description.
Reads from
python. This skill is the MCP App + React layer on top of the Reboot Python framework. Anything about Servicers, Reboot contexts, refs, scheduling primitives, backend LLM / agent calls, error types, the testing harness, the.rbtrcshape, or pydantic API defaults belongs inpython— load those references for those concerns. This skill covers what's specific to MCP Chat Apps: theUser-type front door, MCP tool exposure, theUI()method type, the React/Vite scaffolding, and the cross-cutting rules unique to that layer.
Dual-frontend apps are supported. A single app can serve both an MCP front door and a standalone browser SPA from the same backend; they share
oauth=..., the sameUserper upstream identity, and the same servicer code. For the standalone SPA piece, also load the web-app skill. A user who signs in on one frontend is signed in on both (cross-frontend SSO): the OAuth server's/authorizeshort-circuits when the browser already carries a session cookie, and/callbacksets that cookie on every flow.
Install the plugin (works for both Claude Code and Codex):
curl -fsSL https://reboot.dev/install.sh | bash
This installs the skills for whichever of Claude Code / Codex you
have, then restart your agent so the skills load. See the plugin
README for the manual install, team auto-enable, and the Codex
skill-installer routes.
run skill, which detects the app type,
starts the backend and frontend, and opens the setup wizard (from
which the user can launch MCPJam on demand).The backend mechanics live in the python skill's references; the
MCP App-specific shape on top of them lives in this skill's own
references/. Neither set is restated inline below.
Everything you read stays in the conversation and is re-sent on every later turn, so read each reference at the step that needs it — not all of them up front — and read each one once. The groups below are in build order, and each reference appears in exactly one of them — the step that needs it.
Never read
web-app/references/*for an MCP App. They cover the standalone browser SPA — thefrontend/web/SPA, theVITE_REBOOT_URLbackend URL,<RebootClientProvider>, browser sign-in buttons — none of which apply to the nestedfrontend/mcp/<name>/bundles an MCP host loads. The MCP App equivalents arereferences/react-scaffolding.mdandreferences/react-app-tsx.md.
Before the project shell (.python-version, pyproject.toml,
.rbtrc, .mypy.ini, main.py):
references/project-shell.md —
.python-version, .rbtrc deltas (the portless, ports and dist configs),
pyproject.toml extras, main.py shape, the example_prompts.py
module wired into Application(example_prompts=...),
durable-state setup.python/references/lifecycle-{project-setup,rbtrc,application-entry,initialize-hook}.md — the canonical layout, the CLI flags, the
Application(...) constructor, the initialize hook.Before the API definition:
python/references/patterns-common-gotchas.md — recurring trips
(self.ref().state_id, kwargs convention, a ref() belongs to
one context, the auto-constructed User type, --name vs.
--application-name).python/references/api-pydantic.md — pydantic API rules (every
Field needs a zero-value default; non-Optional Model-typed
fields can't take defaults).python/references/api-methods.md — factory → context type
mapping (Reader/Writer/Transaction/Workflow).python/references/api-errors.md — typed errors, when the API
declares any.python/references/state-collections.md — always read when the
app has any "list of X" concept. Decides whether each X should
be its own state Type (most of the time, yes) and picks between
in-state list[Sub], in-state list[str] of foreign IDs, or an
OrderedMap of foreign IDs. The trap is defaulting to
list[Person]/list[Post]/list[Task] on User for entity
collections — see Step 1 of that reference. A second trap: a
collection synced or scraped from an external system (a
repo's issues, a mailbox, an RSS feed) is unbounded by
definition — model it as an OrderedMap; a size cap never makes
it bounded.python/references/state-nested-models.md — the same rule from
the nested-Model angle.python/references/state-actor-decomposition.md — the orthogonal
decomposition: when one state Type has accreted multiple
unrelated concerns (auth/session, persona, background-engine,
transient cache), split each into its own Type. Critical for the
User front door, which otherwise turns into a God actor and
serializes unrelated writers.references/api-method-types.md
— the pydantic API file for an MCP App: User-type front door,
mcp=Tool() / mcp=None, UI() (including parameterized UI
props), factory=True on create, the Workflow(...)
declaration shape. Full Counter API example.references/api-state-shapes.md
— two recurring state shapes: list[Item] with
default_factory=list; single nested Model sub-objects as
Optional[X] = Field(tag=N, default=None) hydrated in factory
create (Gotcha #13). The state-inside-state regression and how
to compose state actors via string ID + ref(id).references/gotchas.md — the numbered
MCP App trip list (1–19): mcp=Tool()/mcp=None required,
factory=True on app-type create, MyType.ref() not
cls.ref()/self.ref() in workflows, .schedule() from a
Transaction, Optional+default=None for nested Models, .read()
only on a no-arg ref inside a workflow, method-name PascalCase →
generated <Type>.<Method>Request.Before the servicer:
python/references/servicer-{reader,writer,transaction,constructor}.md — one per context type you actually declared.python/references/rpc-refs.md — self.ref().state_id (never
self.state_id); self.ref().schedule(...).python/references/rpc-calls.md — kwargs, not Request wrappers.python/references/rpc-constructor-calls.md —
Service.create(context, id) semantics.python/references/servicer-workflow.md — only when you declared
a Workflow, and then top to bottom: the @classmethod /
WorkflowContext declaration shape, the call-classification
decision tree (Reboot scopes vs. at_least_once vs.
at_most_once), context.loop, inline state writes,
until / until_changes, and workflow exit semantics.references/servicer-patterns.md
— the MCP App servicer shapes: UserServicer calling
<X>.create(context), a Workflow Servicer with MyType.ref()
(no-arg) magic, inline writers via
.per_workflow("alias").write(context, fn) /
.per_iteration("alias").write(...) / .always().write(...),
scheduling a workflow from a Transaction with .schedule().Before the authorizers (write rules from day one — see "Auth" under Key Framework Concepts):
python/references/servicer-authorizer.md,
python/references/auth-allow-if.md,
python/references/auth-built-in-predicates.md,
python/references/auth-custom-predicates.md — the predicate
machinery. MCP Apps use oauth= for identity, so real rules are
viable immediately.python/references/auth-allow-deny.md — narrow uses of
unconditional rules; specifically, when not to reach for
allow().references/auth-oauth-providers.md
— choosing your Application(oauth=...) provider via
OAuthProviderByEnvironment(dev=..., prod=...) (the recommended
dev=Development(), prod=Google(...) shape; a selected None arm
fails startup), the Google / GitHub / Auth0 / Development /
Anonymous providers and where credentials come from (incl. the
/__/oauth/callback URL), and the user-ID-namespace gotcha that
makes switching providers after launch infeasible — choose
deliberately before real users have state.references/auth-custom-oauth-provider.md
— writing your own OAuth provider when none of the shipped
ones fits (self-hosted Keycloak, internal SSO, an IdP Auth0 can't
broker): subclass RegisteredOAuthProvider, implement
authorization_url + exchange_code → ExchangeResult (the user
id must be stable — it becomes context.auth.user_id), the
validate() / mount_routes() hooks, and token_service_id +
OAuthTokens for store_tokens=True support.references/auth-store-tokens.md
— acting on the user's behalf at an external service: when the
API belongs to your Application(oauth=...) identity provider,
add extra OAuth scopes=[...] + store_tokens=True (needs
oauth_library() + ciphertext_library() +
ordered_map_library()) and the server captures its tokens.
Reboot stores the provider's own tokens only (an Auth0
sign-in stores an Auth0 token, not the upstream Google token). The
full host-agnostic recipe — custom OAuth endpoints for any other
service, reading tokens back, calling the API inside a
Workflow, refresh tokens, erasure — is
python/references/auth-external-api-calls.md.Before the frontend:
references/react-scaffolding.md
— the frontend/ shell: package.json and build.mjs (npm run build calls the package's build(), which builds every UI the
plugin declares; a frontend with one UI could use plain vite build, as the web-only shell does),
vite.config.ts (the stock Vite file plus reboot()),
tsconfig.json / tsconfig.app.json / tsconfig.node.json,
index.css theme variables, mcp/<name>/index.html,
mcp/<name>/main.tsx.references/react-app-tsx.md —
App.tsx itself: what an MCP App component renders, and the full
Counter App.tsx + App.module.css example.python/references/react-generated-client.md — what
rbt generate --react= emits, identically for every frontend: the
use<Type>() overloads, the three-field reader return, why
mutations resolve to { response, aborted } instead of throwing,
the typed error classes, and the snake→camel naming rules.references/pop-out-to-web-app.md
— only when a widget needs a "pop out into the web app" button:
recover the bound entity ID with the generated hook's state_id,
build a deep-link URL, and open it via the host's
useMcpApp().openLink({ url }) (the sandboxed iframe blocks
window.open) with a window.open fallback. The web-app side
reads the ID from the URL; a shared rbt_session keeps the user
signed in across frontends.Before the tests: python/references/testing-project-setup.md
and python/references/testing-features.md (the built-in steps'
spelling; always), plus python/references/patterns-idempotency.md
— it explains IdempotencyUncertainError, which is otherwise the
one runtime error whose cause is not in any reference you have
read. python/references/testing-harness.md and
testing-external-context.md are for custom steps;
testing-failure-recovery.md is the one to read whenever the app
has a spawned task, a Workflow, or schedule()d work: it covers
restarting the app under test and asserting that work survived.
The order of work around the feature files (agree in English, tag
@wip, iterate on scenarios) is the
feature skill.
Before running the app: the run skill.
If you find yourself grepping the framework's installed source or a generated file to answer a question, the next section is for you — do not explore it in the main conversation.
*_rbt.py, *_rbt_react.ts, site-packages/, node_modules/,
and codegen templates run to tens of thousands of lines. Every one
you open is re-sent on every remaining turn, which makes reading
them the most expensive way in the system to learn a fact.
The generated surfaces you actually need are written out in these
references — the React client in
python/references/react-generated-client.md, the backend shapes in
the rest of python/references/. Use them.
If something genuinely isn't covered, bound the output hard: a
targeted grep -n … | head -40, or sed -n '<start>,<end>p' over
a known range. Never a whole generated file, never an unbounded
recursive grep.
Always settle the design before writing code. The state model is the foundation — getting entities, field types, or method types wrong means regenerating everything across 12+ files.
User type and its methods (the MCP front door for creating new
application-type instances and locating existing ones).UI().UI() component, not just a tool call (see
"Example Prompts" under Key Framework Concepts).For updates to existing apps, still work the design first: read current state, state the changes, then modify.
The design is read by a human who has not read the skill files. They are judging the design — entities, collections, methods, auth — not verifying that you followed the skill. Write so it stands on its own.
Don't quote skill-internal terms when presenting the design. They mean nothing outside this skill:
Shape A / Shape B / Shape C — name the actual data
structure: list[Sub] of inline sub-records, list[str] of
foreign state IDs, OrderedMap of foreign state IDs.Model" — say "a flat sub-record that lives and
dies with the parent" or "no identity of its own", in domain
terms.Gotcha #N and filenames like state-collections.md /
api-state-shapes.md / gotchas.md — drop the citation; if
the rule matters to the design, explain it inline.factory=True, Field(tag=N), raw pydantic spellings — fine
to mention briefly when the spelling itself is the design
decision, but never as the explanation.For every design choice, give the what + the why. The what is the concrete data structure or method type. The why is a one-clause reason rooted in the user's domain ("grows without bound, so we need pagination"; "no methods or auth of its own, so it lives inline").
Examples.
Collection shape reasoning — BAD, uses skill-internal terms:
people_index_id: str— ID of an OrderedMap actor that holds this user's Persons (Shape C from state-collections.md — unbounded; PRM is explicitly called out as a Shape C case).
Collection shape reasoning — GOOD:
people_index_id: str— points to an OrderedMap that holds this user's Persons. An OrderedMap (rather than an inline list) because a PRM grows without bound and the UI will paginate / sort by recency.
Nested model reasoning — BAD, uses skill-internal terms:
Relationship and Event are non-state Models — Shape A.
Nested model reasoning — GOOD:
Relationship and Event live inline on Person as
list[Relationship]/list[Event]. They don't get their own state actors because they have no lifecycle, methods, or auth independent of the Person they belong to.
Escape hatch. When the precise type name is what the reader
needs to see ("I'm proposing OrderedMap here, not list[str]"),
name the type — but pair it with the plain-English reason in the
same sentence. The rule is "no bare jargon", not "no technical
terms".
Before writing code, analyze the user's request:
Application types — decompose aggressively. List every
distinct entity the user is going to add / edit / list / find
over time (people, posts, tasks, events, documents, accounts,
…). Each entity becomes its own Type with its own state,
even when "each User only has a few of them". Anything you can
imagine the user add-ing / remove-ing / find-ing by name
has its own identity and belongs in its own actor. The default
wrong move is packing everything into User's state as
list[Person] (or list[Post], list[Task], …) — that
flattens N actors into one, prevents per-entity auth/methods,
and forces a full rewrite when the collection grows. A
collection your app syncs or scrapes from an external
system (a GitHub repo's issues, a mailbox, an RSS feed) is an
entity collection too — and unbounded by definition — even
though the user never "adds" to it directly. See
python/references/state-collections.md Step 1 for the full
decomposition signal list.
Container shape for each collection. Once an entity is its
own Type, the parent (typically User) stores references,
not objects. Three shapes (full table + worked PRM example in
python/references/state-collections.md):
list[Sub] of non-state Models — for bounded sub-records
that genuinely belong with the parent (line items on an Order,
tags on a Post). NOT for entity collections.list[str] of foreign state IDs — when the collection of
entity IDs is bounded (low hundreds, occasionally low
thousands) and you always read it whole.OrderedMap of foreign state IDs — when the collection
grows without bound, needs pagination, range queries, or
ordered iteration. The default choice for any "list of
things the user keeps adding to" (people in a PRM, posts
on a blog, messages in a thread) and for anything synced
from an external source (a repo's issues, a mailbox).Boundedness is a domain fact, not a number you pick. If you
catch yourself adding a size cap (MAX_ITEMS = 40) so a
collection counts as "bounded" and qualifies for list[Sub] or
list[str], it is unbounded — use OrderedMap. Externally-
synced collections are always OrderedMap. The boundedness
guard in python/references/state-collections.md has the full
rule.
User methods: How does the AI create instances of application
types? Each gets a Transaction on User that calls
<Type>.create(context), then registers the new ID in the
appropriate container (Shape B or C above).
State shape (per type): Fields, types — lists, nested
objects, primitives. Each gets Field(tag=N). Nested Model
sub-objects owned 1:1 by a parent state must be
Optional[X] = Field(tag=N, default=None) and hydrated in the
parent's factory create Writer (Gotcha #13); non-Optional
Model-typed fields reject default= / default_factory=.
Full rules + examples in
references/api-state-shapes.md.
Operations: Map to the right method type:
Reader — read-only queries.Writer — single-state mutations.Transaction — multi-state atomic operations (e.g. transfer
between two accounts, or User creating an application-type
instance).Workflow — long-running control flows with loops, scheduling,
and idempotency helpers.Tool surface: Which operations need explicit tool exposure
(mcp=Tool())? Default Servicer methods to mcp=Tool() if the
AI should call them, mcp=None otherwise.
UI placement — for each UI in the app: is the AI passing
in an entity ID for this UI to operate on, or is the UI about
the user as a whole? Per-entity UIs (show_person,
edit_task, view_document) go on the entity's own Type
with request=None — the AI's tool-call target becomes the
actor ID automatically, and the generated use<Type>() hook
resolves it with no arguments. User-scoped UIs (a dashboard,
a global browser) go on User. Putting a per-entity UI on
User with the entity ID inside a request=<Model> field is
an antipattern; see "UI Placement" in
references/api-method-types.md.
Identity: Single default instance vs. multiple instances?
Cross-state coordination: Does any operation touch multiple
state instances? If yes, use Transaction.
The React references in this skill show one use<Type>()
subscription per UI — one hook, one actor, one live feed. That
is the easy, documented path, and it quietly pressures you to
flatten an entity collection into list[Item] on a single actor
just so the dashboard can read it in one subscription.
Resolve the tension the other way: the data model wins. When
a collection is its own entity type (Assessment step 1) or
unbounded (step 2, Shape C), keep it decomposed — one actor per
item, an OrderedMap index on the parent — even though that is
more than one actor. Do not collapse the model to fit the
single-subscription pattern. A demo-correct list[Item] that
must be torn apart the moment a real data source is pointed at it
is the exact failure this skill exists to prevent.
The UI still gets its single subscription. Add a composing
reader on the front-door type: a Reader that ranges the
parent's OrderedMap for one page of IDs, reads each item actor,
and returns a page of fully-hydrated objects plus a next_cursor.
The React UI subscribes to that one reader and pages by cursor —
the fan-out across item actors happens server-side, inside the
reader. The composing-reader pattern (backend reader + React
subscription) is in
references/react-app-tsx.md;
Shape C is in python/references/state-collections.md.
User and Application TypesEvery MCP App has a User type and one or more application types:
User is the AI's front door for creating and locating
application-type instances. "Front door" means entry point +
delegation, not container for all application state. User
holds identity (e.g. display name) and IDs of the concern-
specific actors it owns; per-concern state (auth/session,
background-engine config, persona config, transient caches) lives
on its own Type and is referenced by ID from User. Typical
User methods are Transactions that create application-type
instances, or Readers that locate existing instances' IDs —
either directly or via indexes whose IDs are stored on User.
User-scoped UIs (a dashboard spanning the whole user, a global
browser) also live here.Counter, Person, Task) hold
most of the actual entity state. They typically need a create
Writer with factory=True for construction. Once an entity exists,
anything specific to that entity — Readers, Writers, UIs —
lives on that entity's Type, never on User. The actor
ID is then implicit in every call: the AI passes the entity
ID to the tool, and the generated use<Type>() React hook
auto-resolves the same ID with no arguments.The most common scaffolding mistake is putting a per-entity UI
(e.g. show_person) on User with the entity ID stuffed into a
request=<Model> field. Don't — see "UI Placement" in
references/api-method-types.md.
A second, equally common mistake is letting User's state accrete
unrelated concerns — auth/session fields alongside persona config
alongside a background engine's configuration alongside a UI cache.
That turns the front door into a God actor and, because writers on
the same actor serialize, makes a login step contend with a persona
edit and a background workflow's state writes. Split each concern
into its own Type and have User reference it by ID. The signals
that warn you are accreting concerns, and the split pattern, are in
python/references/state-actor-decomposition.md.
Full pydantic shape in
references/api-method-types.md;
the UserServicer + <X>.create(context) pattern in
references/servicer-patterns.md.
Every method must explicitly declare its MCP exposure:
mcp=Tool() — expose the method as an AI-callable tool.
Required on every method (including User methods) the AI should
be able to call.mcp=None — hide the method from the AI. Use for human-only
actions or to reduce context bloat.Tool(name="...", title="...") — override the default tool
name or add a human-readable title.The Reader / Writer / Transaction / Workflow markers come from
reboot.api and behave exactly as python's api-methods.md
describes (each fixes the Servicer's context type). The MCP App
adds one more:
UI() — opens a React UI inside the MCP client. Takes
request= (config type or None), path= (the UI's URL path
under /__/frontend/mcp/, like "clicker" or "shop/cart"; its
source is frontend/mcp/<path>/, its build
frontend/dist/mcp/<path>/index.html), title=, description=.
No servicer implementation needed — the React app is the
implementation.
When request= is a Model, its fields become props on the React
component.factory=True on an application type's create Writer is the
MCP App spelling of a constructor (see python's
servicer-constructor.md for the underlying mechanic).
oauth= Provider Selection and Real Authorizers from Day OneMCP Apps wire identity via Application(oauth=...): what you pass
there stands primarily for identity — it determines who
context.auth.user_id says the caller is, and in an MCP App that
principal is the user. There's no middle ground: either every user
signs in through this OAuth flow, or the app has no per-user auth at
all. The slot takes an OAuth, whose provider is an
OAuthProviderSelector. The typical shape is
oauth=OAuth(provider=OAuthProviderByEnvironment(dev=Development(), prod=Google(...))):
under rbt dev you get Development() — a real provider that shows a
fake account picker and issues every caller a verified, stable
dev-{hash} context.auth.user_id, no external IdP — while every other
environment (rbt serve, Reboot Cloud, or anything unrecognized) gets
the real provider. Both arms are required; either may be None, and a
selected None arm makes the app fail to start with a clear
message, so you can't silently ship without sensible auth.
Servicer-side code doesn't change between providers. (In unit tests,
omit oauth= entirely — the test harness supplies a test OAuth
provider.)
Choose your production provider deliberately. See
references/auth-oauth-providers.md. Each provider issues user IDs in its own namespace, so switching providers after launch strands every user-keyed piece of state.Developmentis dev-only — replace it before shipping — and don't launch on a throwaway likeAnonymousplanning to "upgrade later"; do it before real users have state.GitHubgive you a user id and nothing more; if the app needs user management (profiles, password resets, MFA, blocking users), useAuth0. If no shipped provider fits (self-hosted Keycloak, internal SSO), write your own — seereferences/auth-custom-oauth-provider.md.
Consequences for authorizers:
authorizer() on every Servicer from day one. Don't
defer it "until prod." Identity is wired the same in dev and prod,
so production-shaped rules (allow_if(all=[state_id_is_user_id]),
allow_if(all=[has_verified_token]), etc.) work immediately.allow() as a default. It declares "this endpoint
is public on the internet, no identity required" — not what you
want for app-state methods.User-type Servicers don't need a custom authorizer(). The
framework's default rule (state_id_is_user_id + is_app_internal)
is production-worthy already.Counter, TodoList, …) typically
use allow_if(all=[state_id_is_user_id]) when the state belongs to
one user, or compose other predicates (has_verified_token,
custom) when state is shared.Backend mechanics — predicate composition, custom predicates, the
function-vs-instance footgun — live in python/references/auth-*.md
and python/references/servicer-authorizer.md. The MCP App delta
is just which mode you're in: oauth= + real rules from day one.
Acting on the user's behalf at the provider. Beyond identity,
Google / GitHub / Auth0 can request extra OAuth scopes=[...] and
capture the provider's tokens (store_tokens=True) so the app can call
that provider's API as the signed-in user (their calendar, repos, etc.).
Reboot stores the provider's own tokens only — with Auth0 that's
an Auth0 token, not the upstream Google token a brokered sign-in went
through. The tokens are stored encrypted and read back with
OAuthTokenManager.ref(GOOGLE).fetch(context, user_id=context.state_id),
and the outbound call goes inside a Workflow. The MCP App
store_tokens=True shortcut is in
references/auth-store-tokens.md;
the full read-path and in-Workflow call recipe (shared with web apps)
is in
python/references/auth-external-api-calls.md.
Files the UI fetches from the backend. A plain HTTP route — an
image or video the UI shows, a download — serves every request
unless registered with require_oauth_token=True, which serves only
a request carrying the client's bearer. A plain <img src> cannot
carry one, so the UI obtains a short-lived signed URL with the bearer
and gives that to src. Backend and page side in
python/references/auth-http-routes.md.
All MCP surface is defined in the API file. main.py is minimal. No
@mcp.tool() decorators.
State survives restarts. dev run --application-name=<name> in
.rbtrc (see references/project-shell.md)
is what makes that work.
Every MCP App ships example prompts — short, named chat scenarios the root-page wizard shows users so they can try the app the moment it boots, without having to invent a first message. They are not optional polish: a fresh user landing on the wizard with no suggested prompts has nothing to click, so always author a set.
An example prompt is an ExamplePrompt(title=..., prompts=[...])
(imported from reboot.application). The title is a short label
(and the identity key — same title replaces an existing entry); the
prompts are an ordered sequence of chat messages the user sends
one per turn, walking a real end-to-end flow through the app's MCP
tools (create something → act on it → view the result), not one
isolated message. Write ~3 examples that together cover the app's
main user stories, phrased the way a real user would talk to the
chat client.
Make the prompts show the UI, not just call tools. The embedded
React UIs (the UI() methods) are the whole reason this is an MCP
App and not a plain MCP server — a flow that only calls
tool-only methods and never renders a component demos the boring
half. Every example should end on (or pass through) a turn that
triggers a UI() method — phrase that turn as a natural "show me
/ open / view ..." request so the AI picks the UI tool. In the counter
example, the "…and show me the counter" / "show me the wins counter"
turns are exactly this: they resolve to the Counter UI and render the
live component, not just a text reply. When you write the set, look at
the method map from the design: for each UI() method, make sure at
least one example drives the user to it.
They live in backend/src/example_prompts.py and are passed to
Application(example_prompts=...) in main.py. Full file shapes and
a worked set are in
references/project-shell.md; the
mcp-app-counter example is the canonical reference.
<project>/
├── .python-version # "3.10"
├── .rbtrc # Line-based config (NOT YAML!)
├── .mypy.ini # Type-check config (python skill)
├── pyproject.toml # Python deps (uv)
├── api/
│ └── <pkg>/v1/
│ └── <name>.py # API definition
├── pytest.ini # testpaths: tests; pythonpath: backend/src backend/api api
├── backend/
│ └── src/
│ ├── main.py # Application entrypoint
│ ├── example_prompts.py # Wizard example prompts
│ └── servicers/
│ └── <name>.py # Servicer implementation
├── tests/
│ ├── <capability>.feature # One feature per capability
│ └── <name>_test.py # `application` fixture + `scenarios(...)`
└── frontend/
├── package.json
├── tsconfig.json
├── tsconfig.app.json
├── tsconfig.node.json
├── vite.config.ts # defineConfig({ plugins: [react(), reboot({...})] })
├── api/ # Generated React bindings (rbt generate)
├── mcp/
│ └── <ui-name>/
│ ├── index.html
│ ├── index.css # Theme variables
│ ├── main.tsx # RebootClientProvider entry
│ ├── App.tsx # React component
│ └── App.module.css
└── web/ # Optional standalone browser SPA
├── index.html
└── src/
├── main.tsx
└── App.tsx
All commands run from the application directory.
.python-version, pyproject.toml, .rbtrc, and
.mypy.ini — see
references/project-shell.md;
the .mypy.ini template lives in
python/references/lifecycle-project-setup.md. Then give the
project its AGENTS.md and CLAUDE.md with the
agents-md skill, naming the API and
servicer files the design settled on.uv sync.dashboard skill and follow it — so
the user can watch the API take shape while you write it. If it
fails to come up, say so in one sentence and keep building; do
not stop to debug it.api/<pkg>/v1/<name>.py) — see
references/api-method-types.md
and references/api-state-shapes.md;
field-level pydantic rules in
python/references/api-pydantic.md.uv run rbt generate. Don't read what it wrote: the signature
your servicer must match is in python/references/api-methods.md
("The Servicer Signature Each Declaration Obliges").backend/src/servicers/<name>.py) — see
references/servicer-patterns.md;
context-type rules in python/references/servicer-*.md.backend/src/example_prompts.py (the wizard's example
prompts) and main.py (which imports them and passes
example_prompts= to Application) — see
references/project-shell.md and
python/references/lifecycle-application-entry.md.npm create @reboot-dev/ui.cd frontend && npm install.uv run rbt generate (React bindings need node_modules).references/react-scaffolding.md
for the frontend/ shell and
references/react-app-tsx.md for
App.tsx patterns.cd frontend && npm run build.feature skill) gets its scenarios now:
every action the user should be able to do through the MCP
tool surface ("create a new todo list", "add an item and see it
listed", "rename a list") is a scenario in the built-in steps
of python/references/testing-features.md, calling the
methods the tools call. Every step names who calls; a user is
declared with "alice" is an authenticated user, which is how
the real authorizers get exercised: register the real
servicers and never subclass one to weaken its authorizer().
Let factories make ids up. Tag what cannot pass yet @blocked
with its reason; leave @wip where work continues. Run
uv run pytest and fix anything that fails.
Then type-check: run uv run mypy backend/ tests/ from the project
root and fix every error (config and rationale in
python/references/lifecycle-project-setup.md). Do not
proceed to the next step until every scenario passes (or is
@blocked with a reason) and mypy is green — together they
are what catches contract bugs before the user sees them in
MCPJam. Point the user at the dashboard's Features page to
review the features.run skill and
follow it. It is the single canonical "start the app"
procedure: it detects the app type, makes sure dependencies
and secrets are in place, and starts the backend and
frontend. Required final hand-over: if you started the developer
dashboard, include the cloudflared command and the Claude and
ChatGPT connector instructions in your final response. This
applies even when the user asked only for a standalone web app and
never mentioned MCP. Do not omit them for brevity or perceived
relevance. A dashboard URL, or instructions saved in a README, do
not satisfy this requirement.
The steps are the dashboard skill's
step 6. The handoff for an MCP App is the setup wizard,
not the /mcp URL. The backend serves an interactive
setup wizard at its root (https://<app>.localhost under
portless, else http://localhost:9991) — the
page that connects an MCP client (Claude, ChatGPT, MCPJam, …)
and completes OAuth. As the run skill directs, surface that
URL to the user and open it once at first startup. Do not
start the MCPJam inspector as part of running the app — it
launches on demand, only if the user picks it in the wizard.
Don't bypass the run skill by invoking rbt dev run /
npm run dev by hand: those bare commands print only the
API/MCP/inspect URLs, dropping the wizard hint the user
actually needs.When modifying an existing app:
AGENTS.md, .rbtrc, API definition, servicer, main.py.python/references/api-schema-evolution.md to understand the
rules you must follow for API schema evolution.uv run rbt generate.backend/src/example_prompts.py so the
wizard surfaces the new flow.uv run mypy backend/ tests/ from the
project root and uv run pytest; fix every
error and failure before handing back.run skill. If it is already running under
rbt dev run, the --watch globs reload it automatically — no
restart needed. Editing .env likewise triggers a restart, so
a new or changed secret is re-read by --env-file without a
manual relaunch.AGENTS.md in the same
change (agents-md skill).Specific patterns and file shapes live in the references above — read them on demand based on what's changing.
agents/openai.yaml (opens in a new tab)references/api-method-types.md (opens in a new tab)references/api-state-shapes.md (opens in a new tab)references/auth-custom-oauth-provider.md (opens in a new tab)references/auth-oauth-providers.md (opens in a new tab)references/auth-store-tokens.md (opens in a new tab)references/gotchas.md (opens in a new tab)references/pop-out-to-web-app.md (opens in a new tab)references/project-shell.md (opens in a new tab)references/react-app-tsx.md (opens in a new tab)references/react-scaffolding.md (opens in a new tab)references/servicer-patterns.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/reboot:mcp-appfrom reboot
npx claudepluginhub reboot-dev/reboot-plugin --plugin reboot11 skills in this plugin
/agents-mdGive a Reboot application an `AGENTS.md`, the project's map and rules for any coding agent, and a `CLAUDE.md` that imports it. Use when creating a Reboot app (the `mcp-app` and `web-app` skills call this at their first step), when working in an existing Reboot project (one with a `.rbtrc`) that has no `AGENTS.md`, and whenever a change moves a file, changes a command, or teaches a rule the next session needs./appBuild a Reboot application from a user description. Routes to the `mcp-app` skill (MCP Apps for ChatGPT, Claude, VSCode, Goose), the web-app skill (standalone web apps with a browser frontend), or BOTH (dual-frontend apps sharing one backend and one User per identity via `oauth=...`). Commits to a route only when the prompt verbatim names the front-door (MCP/Claude/ChatGPT for MCP App; a URL/SPA/"website" for web-app; explicit conjunction for both); otherwise asks the user. Does NOT infer the front-door from the app's domain (CRM, todo, dashboard, blog, …) — those describe what the app does, not where it lives.Other plugins' skills for the same job
/dashboardStart the Reboot developer dashboard (`rbt dashboard`) for a project and open it in the browser. Puts the minimum files in place (a `pyproject.toml` depending on `reboot[dev]`, a `.rbtrc`, the API directory), starts the dashboard in a background shell if one is not already serving (it opens itself in the browser), and hands the user its URL. Use this while BUILDING an app — the dashboard watches the API directory from before anything is running, so the developer watches the API take shape as it is written. Not for running an app (see the run skill).