Skip to content
Rapadura NetworkPHP Com Rapadura
On this page

Connecting your agent

Your agent can publish and operate the apps you allow it to use. It has its own identity and grant. The grant lists the apps it may access and the actions it may take. A person must enter secrets, approve requests, review code, and administer accounts. Each action records the agent and the person it works for.

Ownership and permissions

When you create a site or app, Rapadura records your user ID as its owner. An agent creates it for its person. Knowing another app's address grants no management access. A grant restricts the person's existing access. Ordinary users cannot grant their agents another person's app. The platform owner is an exception: their agent can manage other users' apps and shared apps when its grant permits. A broad owner-agent grant is not limited to apps personally created by that owner. Human-only actions remain refused.

Task Person who owns the app Their agent Shared community-app member Platform owner
Inspect, publish or roll back a personal app Own apps Named apps and granted actions; review/approval rules still apply Membership alone grants no personal-app access Can administer all apps
Operate the shared community app Requires membership unless platform owner Person needs membership or platform-owner access; grant must cover the app/action Policy-filtered artisan; not a personal copy Can operate it within the artisan policy
Change variables Own apps With env.write; may await approval Shared environment only when enabled; member changes await approval Within the target's policy
Set or remove secrets Own apps; protected entry only Cannot; can request a protected entry link Shared environment rules and approvals apply Within the target's policy; root-only keys remain protected
Approve requests or mark code reviewed Own app's requests/code Cannot Membership does not grant platform approvals Can decide/review within policy
Manage tokens, grants or platform settings Own agent credentials only Cannot Own agent credentials only Platform administration
Read or delete a recipe form's stored messages; manage a trivia room Own sites Only with an explicit recipe action on the exact host Membership grants nothing Cannot: the data is its owner's alone

Recipe permissions are opt-in

The recipes that collect data or run a live room use three separate actions: recipe.form.manage (create and configure a form, read its redacted status), recipe.form.read (read, export and delete the messages it stored) and recipe.room.manage (create, read, command and delete a room). They are never part of the default. A token holds one only when you list it yourself and name the exact site:

shell
rapadura agent create --name bio-reader --apps bio.rapadura.space --actions recipe.form.read
  • Leaving --actions out gives the default set, with no recipe action. So do tokens from before grants and the connector sign-in (rapadura mcp, claude.ai): none of them can read a form's messages or run a room, and none will until you mint a token that says so.
  • * never counts. A recipe action with --apps '*', or with * beside a host, is refused when you mint; a stored grant of that shape still opens nothing.
  • rapadura agent grant and rapadura agent list show a recipe action only on a token that holds it.
  • recipe.form.read also deletes a message, because deleting is a change: that needs a token with publish scope and agent changes on. Form configuration alone (recipe.form.manage) can never read or delete messages.
  • The platform owner role does not open another person's recipe data. Only the site's current owner (or that owner's agent with the action above) does; anyone else gets 403 forbidden and no data.

Agent tokens currently always carry publish scope; an otherwise authorized agent with recipe.form.read can delete messages while agent changes are enabled. There is no read-only agent mint option. To inspect operations, also grant operation.read explicitly.

Secret values are never returned by the management API, including to the platform owner. Organization staff/organizers with access to container apps or the community Laravel site can sign in at /docs/staff/ for app secret handling, code review and exact plan guides.

Ask your agent
View prompt
Show the sites and apps this agent can access, their owners where available, and the actions this agent is allowed to take. Distinguish personal apps from the shared community app. Do not change anything or reveal credentials or secrets. Explain any missing grant and which person can change it.

The quickest way

Paste this into your agent. It reads the setup instructions, installs what your environment allows, walks you through the GitHub sign-in and connects itself:

Ask your agent
View prompt
Set up rapadura for this agent by following https://agents.rapadura.net/docs/setup.md. Ask for my confirmation before installing the CLI or editing any local configuration file, and keep all other MCP servers and settings untouched. Do not create, publish, or change any sites, and never print or ask me to paste a token or credential. Pause for me to complete the GitHub sign-in or hosted MCP connector approval, and if my account returns not_invited, stop and tell me to wait for administrator approval. When setup is done, confirm with whoami and list my sites with their addresses, or tell me I have none yet.

The prompt follows the steps below. You can also do them yourself. Options 1 and 2 need the CLI and a completed rapadura login (Getting started). Option 3 needs no installation.

1. Let the agent use the CLI

A terminal-based agent can use the installed CLI. Give it a dedicated agent token, or use local MCP below to create one. Your saved login is a human credential. Running a command through an agent does not reduce that credential's permissions. Do not give your login token to the agent. See agent credentials.

Ask your agent
View prompt
Publish only the ./dist folder as the meetup-sobral hotsite on rapadura, creating it if it does not exist yet. First check this agent's access and limits, and ask for my confirmation before creating or publishing the site. Use a dedicated agent token and a request key; do not use my personal login token, publish files outside ./dist, or change any other site. If rapadura refuses files, denies access, or reports a limit error, stop and tell me what failed and what I need to fix or grant. Wait for the operation to finish and report the confirmed live URL and version from the receipt.

The agent will run something like rapadura publish ./dist --site meetup-sobral --create --json and read the receipt. To teach it once and for all, point it at the skill file: https://agents.rapadura.net/skill.md. In Claude Code, for example, save it as .claude/skills/rapadura/SKILL.md in the project.

The CLI is also an MCP server. Register it once to give the agent tools such as publish_site, list_sites, and rollback_site. The agent can upload folders directly from your disk.

Claude Code

shell
claude mcp add --scope user rapadura -- rapadura mcp

--scope user makes it available in every project; leave it out to limit it to the current one.

rapadura mcp does not use your login token: the first time it starts it asks the gateway for an agent token of its own (named mcp:<hostname>, all your apps, every action an agent may hold, 30 days), keeps it beside your login and renews it a day before it ends. rapadura agent list shows it, rapadura agent revoke or rapadura logout ends it. A rapadura older than 0.17 gets 426 client_outdated until you upgrade.

Cursor (in ~/.cursor/mcp.json or the project's .cursor/mcp.json)

JSON
{ "mcpServers": { "rapadura": { "command": "rapadura", "args": ["mcp"] } } }

Codex CLI (in ~/.codex/config.toml)

TOML
[mcp_servers.rapadura]
command = "rapadura"
args = ["mcp"]

Claude Desktop (in claude_desktop_config.json)

JSON
{ "mcpServers": { "rapadura": { "command": "rapadura", "args": ["mcp"] } } }

VS Code (.vscode/mcp.json in the workspace, or MCP: Add Server for your user profile)

JSON
{ "servers": { "rapadura": { "type": "stdio", "command": "rapadura", "args": ["mcp"] } } }

Gemini CLI (~/.gemini/settings.json) and Windsurf (~/.codeium/windsurf/mcp_config.json) use the same block as Cursor and Claude Desktop. Any other MCP client: a stdio server with the command rapadura and the argument mcp.

If the agent cannot find the command, use the full path (~/.local/bin/rapadura).

3. Hosted MCP (nothing to install)

For agents that run away from your computer, the gateway speaks MCP over HTTP at https://agents.rapadura.net/mcp. You sign in either through the browser (OAuth, the way claude.ai works) or with a dedicated agent token created by rapadura agent create. Your personal rapadura login token is refused on this endpoint with agent_token_required.

claude.ai and Claude Desktop (custom connector)

  1. In claude.ai open Settings → Connectors and choose Add custom connector.
  2. Name it rapadura and enter the URL https://agents.rapadura.net/mcp. Leave the advanced OAuth client id and secret empty: the connector registers itself with the gateway.
  3. Click Add, then Connect. A rapadura page opens: sign in with GitHub (the same invitation as the CLI applies) and press Approve.
  4. Back in claude.ai, enable the connector in a chat and ask away. Claude Desktop shows the same connectors once you are signed in to claude.ai.

The approval creates a token named oauth:Claude that you can see, and cut off, on your page https://agents.rapadura.net/me (the owner can also see and revoke it); disconnecting the connector in claude.ai revokes it too. It renews itself for up to 90 days without asking you again. Each renewal uses its refresh token once: when the same refresh token comes back after it was used, even at the same moment (a copy of it in other hands), the gateway ends that connection, and you connect it again. Nothing is granted to the connector that your own CLI login could not do, and every action is logged under your name.

Claude Code

Add the server without a header and sign in through the browser:

shell
claude mcp add --transport http rapadura https://agents.rapadura.net/mcp

Then, inside Claude Code, run /mcp, pick rapadura and follow the sign-in link. Or skip the browser and pass a token made for the agent (rapadura agent create --name claude-code; the endpoint refuses your login token with agent_token_required):

shell
claude mcp add --transport http rapadura https://agents.rapadura.net/mcp \
  --header "Authorization: Bearer YOUR_TOKEN"

On this lane the gateway cannot read your disk: publish_site takes the files inline (files: [{path, content}]). It suits an agent that writes the HTML on the spot.

The browser sign-in needs the gateway's GitHub OAuth app to be configured for the web (the owner sets RAPADURA_GITHUB_CLIENT_SECRET, as for the approvals page). Without it the sign-in page answers 503 and says so; the token header keeps working.

What the tools do

tool purpose
whoami who is signed in, role, token scopes and agent grant bounds, plus your account overview: tokens and connectors in your name, 30-day usage, recent actions and policy refusals, and onboarding next steps (use list_sites, show_site, list_approvals, list_operations and show_limits for dedicated details)
list_zones available domains, reserved names, limits
list_sites, show_site your hotsites and their state
create_site reserve an address without publishing anything
publish_site publish a folder (local) or inline files (hosted); create=true creates first
list_versions, rollback_site history and rollback
delete_site take offline; the agent should confirm with you first
restore_site bring a deleted site back online
request_domain, list_approvals ask the owner to map a custom domain to a static site, and follow the request
list_domains, remove_domain the custom domains attached to a static site, and detaching one at once (no approval; the agent should confirm with you first)
show_limits your limits, what you use of them (sites, storage, changes in flight, uploads) and what is reserved; 0 is no limit
plan_change what a change would be before you make it: the plan and its digest, whether it waits for a person and why, what it holds under and what cannot be undone; nothing is stored
site_logs last lines of the access log

Every write returns a receipt read back from the server. It includes the address, version, changes, warnings, and operation. An accepted or running operation is not finished. Ask for the operation ID, state, and next step. The agent follows it with get_operation. (Organization staff/organizers also have container-app and community-site tools documented in /docs/staff/.)

Prompts to try

Once connected, start with one of these. More examples, with the commands the agent will run, are in Recipes: static sites.

Ask your agent
View prompt
Check who I am on rapadura and list the sites this agent can access, showing each site's address, status, and live version. Use read-only calls only; do not change anything or print tokens or credentials. If the agent is not authenticated or lacks access, stop and tell me whether I need to sign in or update the agent's grant.
Ask your agent
View prompt
Using my rapadura account overview (whoami), summarize what my agents did in the last 30 days, whether any action was refused, and which machines and agents hold a token in my name. Read only: do not change anything, do not try to revoke tokens, and never print token values or credentials. If a token should be revoked or if this agent lacks access, stop and tell me what to do on https://agents.rapadura.net/me or with the CLI.
Ask your agent
View prompt
Build a static hotsite for the November PHP Sobral meetup (date, venue, topic, and sign-up link) in ./meetup-sobral-nov and prepare to publish it on rapadura as meetup-sobral-nov. If any event detail is missing, ask me first instead of inventing it. Show me the generated files and ask for my confirmation before creating or publishing the site. Publish only ./meetup-sobral-nov with a request key; do not change any other site or include secrets or server-side scripts. If the slug is unavailable, a file is refused, or access/limits block the publish, stop and tell me what I need to change or grant. When done, report the confirmed live URL and version from the receipt.

Recipe readiness

Before setting up a recipe, run rapadura recipe readiness ID --site HOST for an existing site, or omit --site for a new project. Observed readiness is separate from recipe maturity. Contact forms and trivia rooms are experimental and stay off until the operator enables them.