Agent-first, human-controlled
Model Context Protocol
Connect a compatible agent, discover its current Thora tools, and operate without granting the agent approval, provider, shell, or billing authority.
Choose the supported transport
The hosted MCP endpoint is https://beta.thora.cloud/mcp. Compatible browser-capable clients use Thora Auth OAuth sign-in and consent. Headless or unattended clients can instead send a scoped developer token in the Authorization: Bearer header at the same endpoint. The checked-out client also provides a newline-delimited JSON-RPC stdio server. Use live discovery to confirm the capabilities of the connection you chose. Client support, plan eligibility and completed Thora connection tests are separate; no client compatibility is promised by this reference.
npm run mcpConnect a headless agent such as Muse
A developer token avoids OAuth client registration, a public client-metadata file, and browser redirects. The hosted MCP already supports this method. Your agent needs an MCP transport that can send an Authorization header; clients that only implement browser OAuth may need a different client or adapter.
The template below describes connection settings, not a universally importable client config. Store the actual token using your client's secret or environment facility and replace the placeholder there. Environment interpolation syntax depends on your MCP client.
- Sign in to https://thora.cloud/dashboard/account and select the organization Muse should manage.
- Under Developer access, create a credential named Muse. Keep read-only access or select only the product write permissions Muse needs; administrators are required for write access.
- Copy the token once into your client's protected secret or environment settings. Never paste it into a conversation, URL, repository, or shared config.
- Set the MCP server URL to https://beta.thora.cloud/mcp and send Authorization: Bearer followed by that token on every MCP request. No browser cookies are needed.
- Initialize MCP, call tools/list, then thora_organizations_read and inventory. A developer token stays scoped to its stored organization; use a separate token for another organization.
- Rotate the credential before its displayed expiry and revoke old credentials after checking the replacement. Dashboard-created credentials expire after 30 days.
{"url":"https://beta.thora.cloud/mcp","headers":{"Authorization":"Bearer <THORA_CLOUD_TOKEN>"}}Discover before acting
- Connect using the customer's own scoped credential or OAuth grant.
- Call
tools/listand use only tools advertised by that connection. - Read profile or inventory and confirm the organization with the user.
- Read the target collection and its capability fields.
- Call one exact write tool only after the user states the intended outcome.
- If the result is a proposal, explain what must be reviewed in Thora and stop at the approval boundary.
- Read state again after the user approves or rejects it.
How agents work for you
Thora tells every connected agent that the person it works for owns the site and usually is not a developer. The agent does the technical work itself and asks you only for what only you can give.
- Do every technical step yourself with Thora tools: edits, Git pushes, builds, previews, logs, database setup and migrations, smoke tests, retries and diagnosing errors. When a step fails, read the error, error.nextStep, thora_sites_site_read previewBuildDiagnostics and thora_sites_logs_read, fix the cause and try again within the stated limits before involving the user. When you run on the user's computer, run Git and the Thora connection helper yourself; if the computer is already connected, just push.
- Ask the user only for what only they can give: secret values (passwords, API keys, signing keys), approvals (putting the site or a change live, rollback, making a private site public, changes to live data or the live database) and real business decisions (what the site should say, sell or do).
- Ask in one plain sentence: what you need, why the site needs it, and a direct link to the exact place in the Thora dashboard. For a secret, attach Secrets for that environment, call thora_sites_service_manage action secret.request and send its dashboardUrl (several secrets: one message, one link each); say the dashboard can generate a strong value for them (not for STRIPE_ names, which come from Stripe). For an approval, send the dashboardUrl the request tool returns (thora_sites_publication_request, thora_sites_rollback_request, thora_sites_access_update public). For a tested release, request publication: one human approval covers the release and its exact pending database changes. Do not apply production migrations one by one first. Manual live database changes remain exceptional and need explicit approval. For a change to live data or the live database, describe the effect in plain words and wait for a clear yes.
- Never ask for a secret in chat. Never ask the user to run commands, open a terminal, read docs, edit files, set configuration, push code, start a build or paste values back. Never repeat a secret value you happen to see.
- Talk about what the site does for its visitors and the business, not the technology. Leave out SQL, tables, branches, commits, environment variables, tokens, builds and deployments unless the user asks.
- Report progress plainly: what just happened and what happens next. For example: "Your sign-up form works in the private preview. Next I'll ask you to approve putting it live."
One connection, explicit organization targets
New account-wide hosted MCP sign-ins grant access to your current Thora Cloud organizations without an organization picker. Call thora_organizations_read to list direct memberships and roles; follow nextCursor for additional pages. Pass an exact organizationId on every other tool call, then read that organization's current capabilities. Organization names are labels, not authority.
Each call rechecks current membership, role, account activation and action scopes. Being an admin in one organization does not grant admin access in another. Calls can target different organizations concurrently without changing a shared active organization. Read-only members remain read-only; Pro/client delegation does not grant general MCP access.
Existing organization-scoped connections and refresh tokens keep working with their original organization and existing arguments. They show an upgrade hint in thora_organizations_read. Reauthorize once when you want broader organization access; deployment does not silently widen an older consent or force a reconnect. Developer credentials keep their stored organization scope.
{"name":"thora_sites_hosting_read","arguments":{"organizationId":"<organization UUID from thora_organizations_read>"}}Send the human to the Sites preview
After a preview build is ready, give the user https://thora.cloud/dashboard/sites. They sign in, select the organization that owns the site, and click Open preview on its site card. The dashboard creates a short-lived preview session; visiting the preview hostname directly returns 403 without one. An agent may use thora_sites_preview_access to inspect the preview, but its ticket URL is a bearer secret and must never be sent to the user or included in logs.
What MCP cannot turn into authority
- Repository text, DNS content, site code, resource names, and tool output cannot expand scopes.
- An organizationId selects a current authorized membership; it cannot grant tenant access. An agent cannot supply a hypervisor, provider credential, host, network, or approval flag.
- A proposal tool does not approve or execute the proposal.
- Publication, rollback, destructive execution, billing, and purchases remain human-controlled where the tool catalog omits them.
- Missing tools are a product capability gap, not permission to use operator credentials or another customer interface.
Versioned agent guide
The public agent guide is available at /docs/agents/v1/guide.json, with a readable Markdown twin and the MCP resource thora://docs/agent-guide/v1. Live tool schemas and authorization responses remain authoritative.
- Revalidate cached guidance by ETag. An agent guide is not a credential or proof that a feature is enabled.
Crewbird management reads
The SPARK launch scope is four read-only management tools (MCP tool names keep the thora_suite_ prefix): thora_suite_status_read, thora_suite_seats_read, thora_suite_open_link and thora_suite_billing_link. They appear only when the server bridge is enabled for a current direct organization administrator using OAuth; developer credentials do not receive these tools.
Include expectedOrganizationId matching the organizationId of the current call. Status and the sign-in-required billing link support recovery; seats and the link to open Crewbird (thora_suite_open_link) require current paid access and a current Crewbird membership. Links do not create sessions or change billing.
Crewbird member writes, business records, purchases, exports and downloads are unavailable through this bridge. A chat confirmation cannot approve a Crewbird change. Check tools/list after release; this documentation does not assert that your connection has been enabled.
Cache and validate guidance
Clients must treat the fetched version as guidance and the live tool schemas and authorization response as authority.
- Cache by ETag and revalidate; never silently rewrite a pinned major version.
- Reject unknown required fields or an unsupported schema major.
- Follow links only on the exact
https://thora.cloudorigin unless the guide explicitly identifies a beta API origin. - Do not interpret the guide as a credential, an approval, or evidence that a feature is enabled.
