Repository messaging and storage

ctrl+alt+d · filesystem cache, repository messaging and the product origin object pool

L2 object pool

Developer guide

MCP server

brintOS ships a hosted Model Context Protocol server so AI agents — Cursor, Claude, or anything MCP-capable — can act on your account: create and configure machines, manage issues and milestones, administer organizations, and more.

Endpoint

The server speaks stateless Streamable HTTP (JSON responses, no SSE stream):

https://brintos.io/api/mcp

Authorization is OAuth 2.1 with PKCE, exactly as the MCP authorization spec describes. You never create credentials by hand: the first time your agent connects it receives a 401 with discovery metadata, registers itself, and opens your browser to an approval page. Sign in, review the requested access, and click Authorize — the agent finishes the token exchange on its own.

Connecting from Cursor

Add the server to ~/.cursor/mcp.json (or a project's .cursor/mcp.json):

{
	"mcpServers": {
		"brintos": {
			"url": "https://brintos.io/api/mcp"
		}
	}
}

Cursor detects the OAuth challenge and shows a "Needs login" prompt; approving it opens the brintOS consent page.

Connecting from Claude Code

claude mcp add --transport http brintos https://brintos.io/api/mcp

Then run /mcp inside Claude Code to complete the browser authorization.

What the agent can do

Tools run with the permissions of the account that approved access — the same rules as the web UI (repository permissions, organization roles, plan entitlements). Highlights:

AreaTools
Accountget_authenticated_user, get_user, update_my_profile, set_user_follow
Repositorieslist_my_repos, search_repos, get_repo, create_repo (any visibility your plan allows; with image, created from a raw ext4 image you upload), get_image_import (that import's progress), fork_repo, update_repo (rename, description, visibility, topics, feature toggles, power-on-open, developer mode, archive, and the machine spec: CPU, RAM, devices, init, kernel cmdline and loglevel), delete_repo, list_collaborators, add_collaborator, remove_collaborator, set_repo_star, set_repo_watch
Snapshotslist_snapshots (with each snapshot's notes), create_snapshot, update_latest_from_live (both optionally with notes), set_snapshot_notes
Issueslist_issues, get_issue, create_issue, update_issue (edit, close as completed / not planned, reopen, milestone), add_issue_comment, update_issue_comment, delete_issue_comment, add_issue_labels, remove_issue_label, add_issue_assignee, remove_issue_assignee
Labels & milestoneslist_labels, create_label, update_label, delete_label, list_milestones, create_milestone, update_milestone, delete_milestone
Organizationslist_my_orgs, get_org, create_org, update_org, list_org_members, invite_org_member, set_org_member_role, remove_org_member

Actions taken through MCP are first-class: issue changes appear on the timeline, watchers get the same email notifications, and audit-relevant operations are attributed to your user. Destructive tools such as delete_repo require an explicit confirmation argument.

Import an image with an agent

The agent needs Node.js 22.12 or newer, curl, and the raw ext4 image on its computer. The file is processed there; it is not sent through an MCP tool call.

  1. Call create_repo with the repository details and image: { filename, size }, where size is the local file's size in bytes.
  2. Read import.script_url and import.upload_token from the result.
  3. Substitute those two values below, and replace disk.img with the local file path.
set -o pipefail
curl -fsSL 'SCRIPT_URL' | BRINTOS_IMAGE_UPLOAD_TOKEN='UPLOAD_TOKEN' node - disk.img

Keep the command running until it reports Import complete. The client downloads everything it needs and validates the filesystem before publishing live and latest. Use get_image_import to inspect its status. Interrupted imports must start again.

The upload token is limited to this import: it can process, inspect or cancel it while its creator has write access. Pass it to Node as shown, not in the URL or the curl request. This lets the agent's shell import the image without receiving the MCP client's account access token.

For an existing empty repository, use its machine hostname's /import URL and a PAT or MCP access token with repo:write in BRINTOS_TOKEN. Do not set BRINTOS_IMAGE_UPLOAD_TOKEN for this workflow; that token belongs to one already allocated import. Follow the empty-repository import steps. Non-empty repositories are refused. Failed imports preserve existing empty repositories and discard newly created ones; pending cleanup is available from New machine.

Export an image with an agent

Repository tool results include export_script_url. Substitute that URL below to save latest to a new local file. No token is needed for a public snapshot:

set -o pipefail
curl -fsSL 'EXPORT_SCRIPT_URL' | node - output.img

For a private repository, supply an access token with repo:read to Node:

curl -fsSL 'EXPORT_SCRIPT_URL' | BRINTOS_TOKEN='ACCESS_TOKEN' node - output.img

The destination file must not exist. Keep the process running until Export complete. An import upload token cannot authorize an export. There is no separate MCP export tool; the downloaded client performs the transfer. See snapshot selection and transfer details.

Site-admin tools

Accounts with site-admin access additionally see admin_* tools covering the support-ticket queue (list/stats/reply/triage, including internal notes), forum management (categories, pin/lock/move/delete), user administration, site metrics, the /admin/data entity browser, the audit log, and announcement sending. These tools are invisible to — and uncallable by — everyone else, and every admin mutation lands in the audit log.

Authorization details

  • Discovery: /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server (RFC 9728 / RFC 8414).
  • Registration: open dynamic client registration at /oauth/register (RFC 7591). Public clients only; PKCE S256 is mandatory.
  • Consent: /oauth/authorize — always shown, always tied to your logged-in session.
  • Tokens: /oauth/token issues an 8-hour access token plus a rotating refresh token.
  • Revocation: Settings → Authorized applications revokes a client instantly; the minted tokens are also visible under Personal access tokens.

Calling the API directly

The endpoint is plain JSON-RPC 2.0 over POST, so you can drive it without an MCP SDK once you hold a token:

curl -s https://brintos.io/api/mcp \
	-H "Authorization: Bearer $TOKEN" \
	-H "Content-Type: application/json" \
	-d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
	     "params":{"name":"create_issue","arguments":{
	       "owner":"you","repo":"your-machine",
	       "title":"Found via MCP","body":"Hello from an agent."}}}'
One MCP connection acts as you. Only authorize clients you trust, and prefer a separate machine account for unattended automation.