Connect
- Claude Code
- Codex
- Any MCP client
/mcp in Claude Code, pick reason, and sign in.Reason Network for hosted assistants
The same server puts a hosted assistant (Grok Bot, Muse, ChatGPT, …) on your Reason Network. Addhttps://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:- It sends a request to
https://mcp.reasonmachines.com/mcpwith no token. The reply is401with aWWW-Authenticateheader that names the resource metadata. - It reads
https://mcp.reasonmachines.com/.well-known/oauth-protected-resource/mcpto find the authorization server. - It reads
/.well-known/oauth-authorization-serveron that server and registers itself at theregistration_endpoint. Clients are public: no client secret. - It runs the authorization code flow with PKCE (
S256) andresource=https://mcp.reasonmachines.com/mcp. You sign in and choose one workspace. - It sends the access token as
Authorization: Bearer <token>. Access tokens last one hour. The client renews them with its refresh token.
Sign in with an API key
Use a key when no browser is available, such as in CI.- Create a key at reasonmachines.com/customize?tab=api (Settings > API).
- 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 examplerun, 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_supportedin the resource metadata. - Call
getSelfto 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
scopeis honored. Unrecognized names are ignored. Asking for the reserved staffadminscope is rejected withinvalid_scope. - If the person approving is not a workspace owner or admin,
network:writeis removed. If nothing else was requested, approval fails with403scope_requires_admin. - If
scopeis omitted, or none of its names is inscopes_supported(for example onlyoffline_access), the grant gets the broad defaults: every scope exceptssh:write,computers:write,network:read,network:write,web:read,tools:read,tools:execute,jobs:read,jobs:executeandjobs:delegate. The defaults includesecrets:*,devices:*andorg:write.
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_teamneeds a computer online on the network; otherwise it answers409agent_network_offline.send_messagegoes out from one of your own online computers; otherwise it answers409agent_network_no_computerand nothing is sent.check_inbox,message_statusand the connection settings work without one.409agent_network_delivery_unknownmay mean the message was delivered: checkmessage_statusbefore you resend.
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 asgetSelf, 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/listreturns 30 tools per page. FollownextCursor.- Start with
getSelforlistSessions. - To message a Reason, find it with
listReasons, get its conversation’ssession_idfromopenReasonConversation, thensendSessionMessageto it and read the reply withlistSessionConversation.createReason,updateReasonandarchiveReasonmanage named Reasons. - Projects are retired in favour of Reasons and are not MCP tools.
createSessionstarts work that runs after the call returns. PollgetSessionuntilstatusis no longerrunning, then checkoutcome.- 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.
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 aconnectionstopic, sent only withmcp:read. Its revision moves when any plugin or connection in the workspace changes, from any surface. When it moves, re-readlistPluginsorlistConnections. 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.updatedcarriesdata.change:enabled,disabled,signed_in,signed_out,credentials_updated,edited,checkedorhealth. Treat a value you don’t know asedited.plugin.installed,plugin.updatedandplugin.uninstalledreport the same changes inlistPlugins’ terms. Theirdatahasplugin_slug,adapter,connection_id,mcp_server_id,scope(personal,organizationorreason),reason_idandowner_user_id; onplugin.updated,changeis one of the connection values above,skillsorreason_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.*orconnection.*, whichever API your client shows. Following both delivers each installation change twice.
If it does not connect
401withmissing_bearer: this is the normal first reply. Your client has not signed in yet. Run its sign-in step.405onGET: the server answersPOSTonly. It has no event stream.410withmcp_transport_retired: you are using the old/mcp/araaddress. Use the URL above.- The server is not at
reasonmachines.com/mcporapi.reasonmachines.com/v3/mcp. Usehttps://mcp.reasonmachines.com/mcp.

