Skip to main content
Reason has one MCP server. It gives an MCP client the same operations as the HTTP API.

Connect

Then run /mcp in Claude Code, pick reason, and sign in.
Ready-made Claude Code and Codex plugins are at reason-machines/reason-plugins.

Reason Network for hosted assistants

The same server puts a hosted assistant (Grok Bot, Muse, ChatGPT, …) on your Reason Network. Add https://mcp.reasonmachines.com/mcp to the assistant (in ChatGPT, as a custom connector in its settings), sign in, and pick your network on the consent screen beside the workspace. The assistant then gets the network tools list_team, send_message and check_inbox, acting on that network.
  • Its messages go out through one of your own computers on that network, so put a computer on it first: tell a coding agent there Join the Reason Network: https://reasonmachines.com/network.
  • The assistant never installs the Reason CLI on a cloud computer of its own: that isn’t your computer, and the MCP server is how it joins.
  • Traffic between computers is end-to-end encrypted; a hosted assistant’s messages go through Reason’s server.

Sign in with OAuth

Any client that follows the MCP authorization spec works without setup. This is what it does:
  1. It sends a request to https://mcp.reasonmachines.com/mcp with no token. The reply is 401 with a WWW-Authenticate header that names the resource metadata.
  2. It reads https://mcp.reasonmachines.com/.well-known/oauth-protected-resource/mcp to find the authorization server.
  3. It reads /.well-known/oauth-authorization-server on that server and registers itself at the registration_endpoint. Clients are public: no client secret.
  4. It runs the authorization code flow with PKCE (S256) and resource=https://mcp.reasonmachines.com/mcp. You sign in and choose one workspace.
  5. It sends the access token as Authorization: Bearer <token>. Access tokens last one hour. The client renews them with its refresh token.
A token issued for the HTTP API does not work at the MCP URL, and the reverse. Each connection is tied to the one workspace you chose.

Sign in with an API key

Use a key when no browser is available, such as in CI.
  1. Create a key at reasonmachines.com/customize?tab=api (Settings > API).
  2. Send it as Authorization: Bearer <key> on every request to the MCP URL.

Scopes

A connection can do only what its scopes allow. Scopes are the same for OAuth and API keys, for example run, sessions:read, repos:read, and org:read.
  • OAuth: the sign-in screen shows what the client asked for. See OAuth scopes for what a client gets when it asks for nothing.
  • API key: you choose the scopes when you create the key.
  • The full list is scopes_supported in the resource metadata.
  • Call getSelf to see the scopes your connection holds.

OAuth scopes

The full list, including which scope each tool needs, is in the “Reason MCP OAuth scopes” section of reasonmachines.com/llms.txt. Where scopes are defined. scopes_supported in the resource metadata lists every scope a client can request. Each operation’s security entry in the OpenAPI document names the scope its tool needs. network:read and network:write manage your workspace’s sandbox egress hosts; they are not Reason Network scopes. What a grant can call. Calling a tool outside the grant’s scopes fails with unknown_tool. Every grant also reaches getSelf, getOpenApiDocument and submitFeedback, which need no scope. Reason Network tools. Network tools plus a narrow workspace grant. To give an assistant such as Muse the network tools and little else, request a narrow scope (for example org:read) and pick a Reason Network on the consent screen. Consent then adds a network-only scope that reaches just those eight tools; the grant keeps the narrow scope’s own tools too. You can’t request the network-only scope, and it never appears in the token response’s scope or in getSelf. Picking No Reason Network grants exactly what was requested. If none of your computers is on a network yet, the grant still gets the network tools. The network you pick at consent is the connection’s first network, not a permanent limit. With list_networks and join_network the assistant can move to your other eligible teams or to the grant workspace’s own network without another consent. Another workspace’s network needs a new authorization. What you get for the scope you send.
  • An explicit scope is honored. Unrecognized names are ignored. Asking for the reserved staff admin scope is rejected with invalid_scope.
  • If the person approving is not a workspace owner or admin, network:write is removed. If nothing else was requested, approval fails with 403 scope_requires_admin.
  • If scope is omitted, or none of its names is in scopes_supported (for example only offline_access), the grant gets the broad defaults: every scope except ssh:write, computers:write, network:read, network:write, web:read, tools:read, tools:execute, jobs:read, jobs:execute and jobs:delegate. The defaults include secrets:*, devices:* and org:write.
Check before you call a tool. Compare the token response’s scope with the OpenAPI security entries, and count the network tools a consent pick added separately. tools/list is a discovery view, not a permission inventory: a team connection on an account that has never had a Session is listed a network-focused subset, and unlisted tools its scopes allow still answer. Computers. You don’t need a connected computer to consent.
  • list_team needs a computer online on the network; otherwise it answers 409 agent_network_offline.
  • send_message goes out from one of your own online computers; otherwise it answers 409 agent_network_no_computer and nothing is sent.
  • check_inbox, message_status and the connection settings work without one.
  • 409 agent_network_delivery_unknown may mean the message was delivered: check message_status before you resend.
Changing scopes. To add scopes, run the authorization flow again with the larger scope on the same registered client; you don’t need to reinstall. Refreshing a token never changes a grant’s scopes. Each consent is its own grant; revoke an old one at /mcp/oauth/revoke.

Tools

Each tool is one HTTP API operation. The tool name is the operation ID in the API reference, such as getSelf, listSessions, createSession, getSession, listSessionMessages, and sendSessionMessage.
  • You can call only the tools your scopes allow. See OAuth scopes.
  • The workspace is set by your connection. Tools take no orgId.
  • Path and query values are top-level arguments. A request body goes in body.
  • tools/list returns 30 tools per page. Follow nextCursor.
  • Start with getSelf or listSessions.
  • To message a Reason, find it with listReasons, get its conversation’s session_id from openReasonConversation, then sendSessionMessage to it and read the reply with listSessionConversation. createReason, updateReason and archiveReason manage named Reasons.
  • Projects are retired in favour of Reasons and are not MCP tools.
  • createSession starts work that runs after the call returns. Poll getSession until status is no longer running, then check outcome.
  • Results are capped at 2 MiB. Ask for a smaller page if you hit the cap.
  • File uploads are base64 and capped at 1 MiB. Use the HTTP API for larger files.

Manage connected services

In Settings > Integrations, Your connections contains installed accounts and pending setups. Browse integrations is the catalog: a configured provider or available OAuth client is not an installed account. Each service has one card with separate account and connection-method records. Native apps and MCP connections retain their own credentials, scopes, owners, and capabilities. A Slack native app can deliver Sessions to Slack; a Slack MCP connection offers the tools authorized by that account. Grouping the cards does not merge their grants or change which account a Session uses.
  • Not connected: no installation or pending setup exists.
  • Connected: an appropriate connection check succeeded. This does not promise that every provider operation or scope has been tested.
  • Needs attention: an account needs sign-in, a check, configuration repair, or service recovery. The account details explain the reason and show the last successful check when available. A healthy account does not hide another account’s failure.
  • Connecting and Checking indicate work in progress. Unsupported checks are explained instead of being treated as successful.
Use listConnections over MCP, or GET /v3/organizations/{orgId}/connections, for the same normalized service inventory. It includes each connection’s adapter, recordId, ownership/access scope, capabilities, authorization, health evidence, and supported actions. Catalog offerings are separate from installed connections. Listing is not a connection check. Each connection also names the account it is signed in as, so several accounts of one service can be told apart. accountId is the provider’s id for that account and accountName is a readable label, such as its email, workspace or team name. For an MCP connection both come from the OAuth sign-in, as far as the provider reports them: when it names no account, and for a connection that uses an API key, accountId is null and accountName is the connection’s own name, which its owner can change. listMcpServers and getMcpServer return the same account as oauth_account_id and oauth_account_name. Use manageConnection, or POST /v3/organizations/{orgId}/connections/{adapter}/{id}/{action}, for one account. The adapter is native or mcp; the id is that record’s recordId, not the service id. Actions are check, reconnect, disconnect, remove, and cancel; consult the record’s action support before calling. Reconnect returns a consent URL. Cancellation removes a pending MCP setup. Read operations require mcp:read; management requires mcp:write and permission to manage that installation. Scope grants do not override ownership or workspace roles. check works for a plugin from the catalog and for a custom MCP server you added by URL. Reason connects to the server over streamable HTTP with its stored credential, asks for its tool list, and saves the result, which the next listConnections shows. A custom server is checked once its URL is approved: an owner or admin approves it by registering it with the HTTP API’s createMcpServer or updateMcpServer (transport http, a public https URL), or with Add connector by URL in the app. Reason only calls addresses on the public internet, on every request and redirect. A stdio server is not checked from Reason’s servers, because it runs inside a Session’s computer. A check that reached the server answers { "ok": true, "status", "tool_names", ... }, where status is healthy, auth_failed, unreachable or protocol_error. A check that could not run answers { "ok": false, "error", "message" }: error is a stable code such as curated_http_only (the URL was never approved), oauth_required (nobody is signed in, or the sign-in expired), endpoint_unavailable (the host is not a public address) or mcp_server_disabled, and message says what to do next. To use OAuth with a custom MCP server, add it with createMcpServer and auth_type oauth; inspectMcpServerEndpoint reports what a URL needs before you add it. Then reconnect, or the HTTP API’s startPluginSignIn when you want the browser sent back to your own app, returns the consent URL. Reason registers itself with the server’s authorization server when it allows dynamic client registration. When it does not, the answer is oauth_configuration_required with the redirect_uri to register your own OAuth client for; pass that client as oauth_client to startPluginSignIn. Remove deletes Reason’s local connection record; it does not revoke access at the provider. Disconnect revokes a native provider grant only where supported and safe; if revocation fails, the record remains so you can retry or explicitly choose local removal. For MCP, disconnect removes the saved local authorization, not the provider’s grant. Manage provider-side access in the provider’s settings when needed. Unsupported operations return an explicit error rather than silently changing another account. Stay current. To update other devices and clients as soon as a plugin or connection changes, follow the workspace’s change or event stream instead of polling:
  • streamWorkspaceChanges (GET /v3/organizations/{orgId}/changes) has a connections topic, sent only with mcp:read. Its revision moves when any plugin or connection in the workspace changes, from any surface. When it moves, re-read listPlugins or listConnections. It says that something changed, not what or whose.
  • streamWorkspaceEvents (GET /v3/organizations/{orgId}/events) and event webhooks (/event-webhooks) say which one changed. connection.updated carries data.change: enabled, disabled, signed_in, signed_out, credentials_updated, edited, checked or health. Treat a value you don’t know as edited.
  • plugin.installed, plugin.updated and plugin.uninstalled report the same changes in listPlugins’ terms. Their data has plugin_slug, adapter, connection_id, mcp_server_id, scope (personal, organization or reason), reason_id and owner_user_id; on plugin.updated, change is one of the connection values above, skills or reason_settings.
  • On the stream, plugin events need mcp:read, as connection events do. A personal installation’s events reach only its owner, and a Reason’s only the people that Reason lists its plugins for.
  • Follow plugin.* or connection.*, whichever API your client shows. Following both delivers each installation change twice.

If it does not connect

  • 401 with missing_bearer: this is the normal first reply. Your client has not signed in yet. Run its sign-in step.
  • 405 on GET: the server answers POST only. It has no event stream.
  • 410 with mcp_transport_retired: you are using the old /mcp/ara address. Use the URL above.
  • The server is not at reasonmachines.com/mcp or api.reasonmachines.com/v3/mcp. Use https://mcp.reasonmachines.com/mcp.
Agents can read the same guidance as plain text at reasonmachines.com/llms.txt.