Scoped connections
Create named MCP URLs that limit an agent to specific apps, linked accounts, tools, and events, then monitor and revoke connected agents.
A scoped connection is a named MCP URL (/mcp?connection=<id>) that limits an agent to only the apps, linked user accounts, tools, and app events you turn on. Create and edit connections on the Connections page (New connection), authorize an MCP client through OAuth, and revoke a connection or an individual agent at any time without rotating service credentials.
- Available on: Local (
/connections), Self-host (/org/<slug>/connect), and Cloud (/org/<slug>/connect). - Prerequisites: At least one app available to you in Executor, with your accounts linked on each app’s Accounts tab if the app requires user accounts.
- Main UI action: Open Connections → click New connection → pick apps, accounts, tools, and events → click Create connection.
You’ll know it worked when the new connection appears on Connections and a client authorized through it only sees the apps and tools you enabled in search.
Creating and editing a scoped connection
On Local, Self-host, and Cloud, the connection editor works the same way:
- Open Connections in the dashboard. The built-in Full access card gives an agent every app you can use; click New connection to create a restricted one.
- Enter a Name (up to 80 characters).
- Use Search apps to find apps and toggle on the ones this connection may reach. Enabled apps move under Can use; remaining apps stay under Other apps.
- For each enabled app, configure:
- Account (Runs as…): Pick which of your linked user accounts the connection uses. App-scoped accounts (linked for everyone by people who can manage the app) are not listed because access to the app authorizes them.
- Tools: Choose All tools, Read-only tools, or Specific tools (filterable by All, Read, Write, and Selected). All tools and Read-only tools automatically include matching tools added in future versions of the app.
- Events (shown when the app declares events): Choose All events (including future events declared by the app) or pick specific event names the client may subscribe to.
- Click Create connection (or Save changes when editing; click Discard to revert unsaved edits).
Edits to a scoped connection take effect immediately for every agent already authorized through it—no reconnect required. Approval rules still come from each app’s code.
Authorizing a client
Cloud and Self-host
You can attach a scoped connection to an MCP client in either of two ways:
- From the connection’s URL: On Connections, click Connect on the scoped connection (or open More actions → Copy MCP URL) to get
<origin>/mcp?connection=<id>, and add that URL to your MCP client. When the browser opens/mcp/authorize, that connection is preselected. - From the plain
/mcpURL: Addhttps://mcp.executor.sh/mcp(Cloud) or<your origin>/mcp(Self-host) to your client. On/mcp/authorize, choose Organization, pick the saved connection under Access (or choose New connection inline), pick Approvals, and approve.
Either way, the issued OAuth grant binds permanently to that connection. Changing the URL later never widens access to other apps.
You’ll know it worked when the client appears under Connected agents on the Connections page showing the connection’s name and allowed apps.
Local
- On Connections (
/connections), create your scoped connection and click Connect (or More actions → Copy MCP URL) to copyhttp://127.0.0.1:4312/mcp?connection=<id>. - Add that exact URL to your MCP client. (On Local, the browser consent screen chooses Approvals only; the connection comes from the URL you hand the client.)
- Approve the client in your browser.
You’ll know it worked when your client calls search and only returns tools from the apps you enabled on that connection.
Managing connected agents and revoking access
- Revoking a scoped connection (Local, Self-host, Cloud): On Connections, open the connection’s More actions menu and click Revoke connection. Revoking a connection immediately revokes every OAuth grant issued through it; subsequent MCP requests fail with HTTP
401. - Revoking an individual agent (Self-host and Cloud): Scroll to Connected agents on Connections to see each authorized MCP client and the apps it can reach. Click Revoke and confirm Revoke agent to invalidate just that client’s grant while leaving other agents using the same connection active.
Agents can list your scoped connections through the built-in Executor app, but creating, editing, and revoking connections only happen in the dashboard so an agent can never widen its own access.
Example
Connect Claude Code to a read-only scoped connection on Executor Cloud with browser approvals:
claude mcp add --transport http executor-readonly \
"https://mcp.executor.sh/mcp?connection=<connection-id>&elicitation_mode=browser"
After signing in, verify the active scope from a shell if you used executor login with that connection:
executor whoami
Limits
- Connection name length: Up to 80 characters.
- No PATs or local API key at connection URLs: Personal access tokens and the local server API key have full access and no grant record; Executor refuses them at
/mcp?connection=<id>instead of silently granting wider access. Use OAuth for scoped connections. - No Connected agents list on Local: Local Executor supports creating, editing, and revoking scoped connections, but only Self-host and Cloud display the per-client Connected agents section.
- No self-escalation: Agents cannot create, edit, or revoke scoped connections via MCP tools.
- OAuth client caps on Self-host: Self-host defaults to at most 512 OAuth clients total and 256 per user (configurable via
EXECUTOR_MCP_CLIENTSandEXECUTOR_MCP_CLIENTS_PER_USER).