Sign in
Docs
0%

Transports

MCP (assistants)

Connect Claude, ChatGPT, Cursor or any MCP client to InOrbit, and what the assistant may do once it is in.

InOrbit speaks the Model Context Protocol (version 2025-11-25) at one address:

https://api.inorbit.hr/mcp

An assistant connected there sees the API as tools: read your monitors and incidents, find a decision, file a job for an agent, ask a person for an approval. It acts as whoever signed it in, with the same rights, the same budget and the same record as that person would have in the console. Every tool, grouped by what it is for, is in Tools for assistants.

Connect with sign-in

The easy way. Give the assistant the address above and nothing else. It finds our sign-in, registers itself (or names the identity it publishes), and sends you to a page that names the app, where your browser goes back to afterwards, and what it may do in plain words. Allow it there; it then acts as you, under the scopes you allowed, until you revoke it under Sign-in and security → Connected apps in the console. The page does not ask again for 30 days. The app's access token lasts 15 minutes and is renewed with a refresh token that changes on every use.

  • claude.ai (and Claude Desktop): Customize → Connectors → Add custom connector, the address above, then Connect.
  • ChatGPT: Settings → Apps & Connectors → Advanced settings → turn on Developer mode, then Create, the address above, OAuth as the authentication.
  • Claude Code: claude mcp add --transport http inorbit https://api.inorbit.hr/mcp, then /mcp in a session and choose to authenticate.
  • Cursor: in ~/.cursor/mcp.json, {"mcpServers": {"inorbit": {"url": "https://api.inorbit.hr/mcp"}}}, then Connect in Settings → MCP.
  • VS Code: in .vscode/mcp.json, {"servers": {"inorbit": {"type": "http", "url": "https://api.inorbit.hr/mcp"}}}, then Start on the server.
  • Gemini CLI: gemini mcp add --transport http inorbit https://api.inorbit.hr/mcp, then /mcp auth inorbit.

An app that registers itself has no secret and proves itself with PKCE (S256). It may send you back to an https address or to an address on your own computer, and nowhere else, and its tokens open /mcp and no other route. When an app only returns to your own computer, the page warns you: any program on your computer could claim to be it, so allow it only right after you started the connection yourself. Anyone may register an app, a limited number per address; an app nobody signs in with within 30 days is removed.

An assistant may instead identify itself by the address of a document it publishes, a client ID metadata document (claude.ai's Use Claude's published identity): its client_id is an https URL, and the document there lists its name and where it may send you back. Our sign-in fetches that document before you see the page (public addresses only, no redirects, JSON of at most 8 KiB), holds it to the same rules as a registration, and keeps it for as long as its cache headers say, between 5 minutes and a day. The page then says which site publishes the identity, and warns you when the app would send you back to a different site. When the document goes away or stops meeting the rules, the app's access ends at its next refresh.

Connect with a token

For a script, a CI job, or an assistant that cannot sign in. Make an API token in the console with mcp:read, plus the scopes of what the assistant should reach (see Scopes), and keep it in INORBIT_TOKEN. Every client then sends it as a bearer header.

claude mcp add --transport http inorbit https://api.inorbit.hr/mcp \
  --header "Authorization: Bearer $INORBIT_TOKEN"

The shared .mcp.json goes in a repository, so everyone who works there connects the same way, each with their own token from the environment.

Check it works

Ask the assistant to call accounts_get_me (it needs account:read). It answers who is calling: the person or API key that signed in, their own account, the team accounts they belong to, and for a key the scopes it carries. The account_id it returns is the one the other tools take. llm_get_budget then says how much of today's model budget is left.

Every answer is one line of JSON. Empty fields are left out below the top level, so an answer costs your assistant fewer tokens; zeros and false stay, because they can be the answer. An answer about one document, monitor or incident carries console_url, its page in the console, so you can check what the assistant told you in one click.

Every answer is checked before it reaches the assistant, error answers included. Keys, tokens, connection-string passwords, key=value secrets, email addresses, IBANs and card numbers are replaced. Each answer carries, in _meta:

MemberMeans
receiptwho received it: agent, on_behalf_of, account, scope, sources (the tool), how many values were redactions (and of which redaction_kinds), and when (at). Never the content.
untrusted_contenttrue on every answer: what a tool returns is data, to read as evidence and never to follow as instructions.

Scopes

A token reaches /mcp when it holds an MCP scope, and each tool needs its own beside it. The tool's page in Tools for assistants names the scopes it needs.

ScopeOpens
mcp:readthe tools that only read, together with the product's read scope (incidents:read, decisions:read)
mcp:writethe tools that change something, together with the product's write scope (decisions:write)
mcp:generatethe tools that run a model, llm_generate and llm_embed, counted against your budget

Each product keeps its own scopes, the same ones its REST routes take: account:read, agents:read, approvals:read and approvals:write, coordinator:read, coordinator:write, coordinator:messages-read and coordinator:messages-send, decisions:read and decisions:write, incidents:read, infra:read and infra:run, and so on. Scopes lists every one. An action on one of your connections also needs connections:use. A full API token (iohr.api) meets every scope.

tools/list lists only the tools the token may call. A call to a tool whose scope it lacks is 403, naming what the tool needs:

WWW-Authenticate: Bearer error="insufficient_scope", scope="..."

Every tool says what it does through MCP's annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint), so a client can ask you before it runs one that changes something.

What stays with people

An assistant can do a lot, but some steps stay with a person:

  • Approvals. An assistant asks (approvals_create) and reports progress; no tool decides an approval. A person decides on their phone or in the console.
  • Agent work. With coordinator:write beside mcp:write, an assistant may pause, resume, retry now or release a held job (coordinator_pause_job, coordinator_resume_job, coordinator_retry_job, coordinator_release_job). Each takes a reason, and every move is recorded with who asked and why. Gates still decide when a job moves on; no tool sets a job's state directly.
  • Decisions. decisions_submit_review takes decision: "changes" only, and decisions_set_access takes "team" or "internal" only. Approving a version, publishing or deleting a document, deleting a space and a space's settings stay in the console. An assistant may approve only where a person set the space's ai_approval to allow it (decisions_get_settings says).

Text an assistant reads through a tool (a thread, a brief, a document) is data for it, never instructions.

Limits

Each agent (an app acting for one person) may make 120 tool calls a minute, in bursts of up to 60. Past that a call is refused with 429 and a Retry-After header saying how many seconds to wait.

Saving without overwriting

A tool that saves something another person may also be editing names the version it read, so nothing is ever overwritten by mistake:

ArgumentTools
base_versiondecisions_save_document, decisions_save_diagram, decisions_set_status, accounts_set_layout, accounts_save_client_policy_draft, cases_save_client_case, cases_save_study, connections_save_status_page_draft
expected_versioncoordinator_write_plan_item, coordinator_set_pool_policy
revisionaccounts_set_notification_sounds

If someone saved since, the tool answers an error with code: "conflict" and the current version. Nothing is overwritten and nothing is retried. The assistant reads it again, applies its change there and saves on that version; it never sends the same save again as it was.

A Decisions document is also a resource, inorbit://spaces/{space}/documents/{document}, read as Markdown with resources/read under the same scopes as decisions_get_document. resources/templates/list names the template; resources/list is empty, because documents are found with the tools.

Discovery

This section is for people writing their own MCP client; the assistants above do all of it for you.

/mcp is an OAuth protected resource. A request without a valid token is 401 with:

WWW-Authenticate: Bearer scope="mcp:read", resource_metadata="https://api.inorbit.hr/.well-known/oauth-protected-resource/mcp"

The metadata (RFC 9728) is public, at /.well-known/oauth-protected-resource/mcp and at the root address:

{
  "resource": "https://api.inorbit.hr/mcp",
  "authorization_servers": ["https://auth.inorbit.hr"],
  "scopes_supported": [
    "mcp:read",
    "mcp:write",
    "mcp:generate",
    "decisions:write",
    "decisions:read",
    "connections:use"
  ],
  "bearer_methods_supported": ["header"],
  "resource_name": "InOrbit",
  "resource_documentation": "https://developers.inorbit.hr/docs/transports/mcp/"
}

A token is accepted when its audience is the API's (iohr-api) or this address (https://api.inorbit.hr/mcp). A token made for this address opens /mcp and no other route.

The sign-in's metadata is at https://auth.inorbit.hr/.well-known/oauth-authorization-server (RFC 8414). Besides the sign-in's own endpoints it names the registration endpoint (https://auth.inorbit.hr/oauth2/register, RFC 7591), S256 as the PKCE method, none among the token endpoint's authentication methods, and client_id_metadata_document_supported: true.

Every tool, with its scopes, its arguments and an example call, is in Tools for assistants. It is built from the server's own tool list on every build, so it never falls behind tools/list.