From 28b624dc2b5a8102eb7a8806e0359f666162f3d5 Mon Sep 17 00:00:00 2001 From: ahokik Date: Fri, 30 Oct 2026 21:17:16 +0000 Subject: [PATCH 1/2] D5.15 Connected apps: Connect apps with Composio, and the Free line for MCP servers outside Orca (T7) A new guide, "Connect apps with Composio": the four steps, the three allowed tools, Free's credit line, the read-only paragraph, retention, members' access and how to cut access off. guides/mcp.mdx lists the allowed origins as production has them, with a Free note and a troubleshooting row; plans.mdx and kits/seo-helper.mdx carry the same Free line. Co-Authored-By: Claude Opus 5.5 --- docs.json | 1 + guides/connect-apps-composio.mdx | 113 +++++++++++++++++++++++++++++++ guides/mcp.mdx | 8 +++ kits/seo-helper.mdx | 5 +- plans.mdx | 1 + 5 files changed, 125 insertions(+), 3 deletions(-) create mode 100644 guides/connect-apps-composio.mdx diff --git a/docs.json b/docs.json index 61106cd..d05ba19 100644 --- a/docs.json +++ b/docs.json @@ -76,6 +76,7 @@ "guides/streaming", "guides/function-tools", "guides/mcp", + "guides/connect-apps-composio", "guides/environments", "guides/files-and-artifacts", "guides/skills", diff --git a/guides/connect-apps-composio.mdx b/guides/connect-apps-composio.mdx new file mode 100644 index 0000000..1963b3e --- /dev/null +++ b/guides/connect-apps-composio.mdx @@ -0,0 +1,113 @@ +--- +title: Connect apps with Composio +description: Give your agent Gmail, Slack, GitHub and the other apps you connect in your own Composio account, through Composio Connect's MCP server. +--- + +[Composio Connect](https://docs.composio.dev/docs/composio-connect) is one MCP server, `https://connect.composio.dev/mcp`, in front of the apps you connect in your Composio account. Your agent uses it as an ordinary [MCP tool](/guides/mcp): it searches the apps' actions, reads their schemas, and runs them. + +You bring your own Composio account and plan. Orca holds no Composio key and does not charge for app calls; Composio bills them under your plan with Composio. + + +**On Free:** MCP servers outside Orca are off on Free until you add credit. Until your organization has credit, a session whose agent has the Composio tool is refused with HTTP 400 on `tools`. [Add credit](/wallet#buy-credit) first; see [the Free plan](/plans#machine-time-on-free). + + +## Before you start + +- A [Composio](https://composio.dev) account. +- An admin's Orca API key, or `orca auth login` as an admin. Only admins add credentials. +- Python 3 and a copy of [orca-kits](https://github.com/okikorg/orca-kits), for the connect script in step 2. + +## 1. Connect your apps in Composio + +In Composio's dashboard, open **Connect Apps**, pick an app, and choose **Connect** ([Composio's guide](https://docs.composio.dev/kb/guide/dashboard-for-you-navigation)). Connect every app here: the agent below has no tool for connecting new apps itself. + +## 2. Add the credential to a vault + +Composio Connect signs you in with OAuth, and `orca vaults credentials add` takes only a token or a login and password, so use the connect script from orca-kits. Composio's docs also show a key sent in a header for other MCP clients; Orca's vaults send only an `Authorization` header, so use the sign-in instead. + +```bash +git clone https://github.com/okikorg/orca-kits +cd orca-kits +python3 scripts/connect_mcp_oauth.py --server https://connect.composio.dev/mcp --vault composio +``` + +The script: + +1. Shows which Orca organization it will write to, and stops unless your key is an admin's. +2. Opens your browser to sign in to Composio, and takes the reply once on `127.0.0.1`. +3. Creates an `mcp_oauth` credential in the vault `composio` (creating the vault if needed), bound to `https://connect.composio.dev/mcp`. Orca refreshes its token itself, and the model never sees it. + +It reads your Orca key from `ORCA_API_KEY`, else from `orca auth login`, else from a hidden prompt, never from an argument. It prints only ids and writes nothing to disk. Run it again to sign in again: the new credential replaces the old one in that vault. + +## 3. Give an agent the Composio tool + +Examples on this page assume `client` is an `OpenAI` client configured as in [Build with the API](/build-with-the-api). + +```python +import os + +agent = client.beta.agents.create( + model=os.environ["ORCA_MODEL"], + name="apps", + tools=[ + { + "type": "mcp", + "server_label": "composio", + "transport": {"type": "http", "server_url": "https://connect.composio.dev/mcp"}, + "allowed_tools": [ + "COMPOSIO_SEARCH_TOOLS", + "COMPOSIO_GET_TOOL_SCHEMAS", + "COMPOSIO_MULTI_EXECUTE_TOOL", + ], + } + ], +) +``` + +`server_url` must be exactly the URL the credential is bound to. `allowed_tools` keeps these three of Composio Connect's tools: + +| Tool | What it does | +| --- | --- | +| `COMPOSIO_SEARCH_TOOLS` | Finds the app actions that fit the task | +| `COMPOSIO_GET_TOOL_SCHEMAS` | Reads an action's inputs | +| `COMPOSIO_MULTI_EXECUTE_TOOL` | Runs actions on your connected apps | + +Leave the others out: the two that manage connections (connect apps in step 1 instead), and Composio's remote Python and bash, which would run code on Composio's machines. + +## 4. Start a session with the vault + +From the CLI: + +```bash +orca chat apps --vault composio "Find the latest email in my inbox about invoices and summarize it." +``` + +Or from the API, with the vault id the script printed: + +```python +session = client.beta.agents.sessions.create( + agent_id=agent.id, + environment={"type": "none"}, + vault_ids=[os.environ["COMPOSIO_VAULT_ID"]], + input="Find the latest email in my inbox about invoices and summarize it.", +) +``` + +Each Composio call is an `mcp_call` item in the session's history, with its arguments and result. + +## Keep it safe + +Your agent can do anything the apps you connect allow, including sending and deleting. For read only, use Composio's read-only settings where Composio offers them, or connect an account that only has read access in that app. + +- **Composio keeps your calls.** Composio keeps every call's inputs and results for up to a year unless you buy zero data retention ([data retention](https://docs.composio.dev/docs/security/data-retention), [zero data retention](https://docs.composio.dev/docs/security/zero-data-retention)). +- **Everyone in your organization can use it.** Every member of your organization can use the credential and read what it returns, so connect a shared work account, never a personal one. +- **App content is untrusted.** An email or a document can hold text that tries to give your agent new instructions. Be careful giving an agent that reads app content other tools that send data out, such as web search or another MCP server. See [keep it safe](/guides/mcp#keep-it-safe). + +## Cut access off + +Do both: + +1. **Delete the Orca credential**, on the dashboard's Vaults page, through the API, or with `orca vaults credentials delete `, using the ids the script printed (`orca vaults credentials list composio` shows them again). +2. **Disconnect the app at Composio.** Deleting a connection at Composio doesn't revoke it at the app unless you ask Composio to revoke it ([Composio's changelog, 12 May 2026](https://docs.composio.dev/reference/changelog#2026-05-12)). + +Questions: post in **#help** on [Orca's Discord](https://discord.gg/btTYzdzvqq). diff --git a/guides/mcp.mdx b/guides/mcp.mdx index fbf5dda..6ffa92a 100644 --- a/guides/mcp.mdx +++ b/guides/mcp.mdx @@ -19,9 +19,16 @@ Hosted Orca connects only to these origins: | --- | --- | | `https://docs.orcapods.ai` | The Orca docs' own MCP server | | `https://mcp.dataforseo.com` | DataForSEO's hosted MCP server. It takes your DataForSEO API login and password: add them as a [login and password credential](/guides/credentials#a-login-and-password). | +| `https://mcp.apollo.io` | Apollo's hosted MCP server. It signs you in with OAuth: add the credential with the connect script in [orca-kits](https://github.com/okikorg/orca-kits), `scripts/connect_mcp_oauth.py`. | +| `https://connect.composio.dev` | Composio Connect, in front of the apps you connect in your own Composio account. See [connect apps with Composio](/guides/connect-apps-composio). | +| `https://login.composio.dev` | Composio's sign-in server. Orca calls it only to refresh a Composio Connect token. | An origin is a scheme, host, and port, so any path on that host is allowed, and nothing else: `https://mcp.dataforseo.com` does not open `api.dataforseo.com` or another port. To ask for another server, post in **#help** on [Orca's Discord](https://discord.gg/btTYzdzvqq). + +**On Free:** MCP servers outside Orca are off on Free until you add credit. Until your organization has credit, a session whose agent names any server above other than `https://docs.orcapods.ai` is refused with HTTP 400 on `tools`. See [the Free plan](/plans#machine-time-on-free). + + ## How it fits together ```mermaid @@ -119,6 +126,7 @@ Put tokens in a vault, never in the agent. Orca rejects agents whose MCP `header | Symptom | Check | | --- | --- | | Session creation fails with "Destination is not enabled in the server egress policy" | The server is not on the [allowed list](#allowed-servers). Only unlisted servers are refused, so compare the URL's scheme, host, and port with the list. | +| Session creation, or a message, fails with "MCP servers outside Orca are off on Free until you add credit." | Your organization is on Free with no credit, and the agent names a remote MCP server other than Orca's docs server. [Add credit](/wallet#buy-credit), then try again. | | Session creation fails with "No credential in the attached vaults for https://..." | The server refused a request without credentials, and no attached vault holds a credential for that exact URL (watch for trailing slashes and paths). Add one (`orca vaults credentials add`, the dashboard's Vaults page, or the API), then pass its vault in `vault_ids`. | | Session creation fails mentioning the MCP URL | The URL is not HTTPS, or the server is unreachable. | | The model never calls the tool | The tool is missing from `allowed_tools`, or its description does not make clear when to use it. | diff --git a/kits/seo-helper.mdx b/kits/seo-helper.mdx index 66bf42e..5c08dc9 100644 --- a/kits/seo-helper.mdx +++ b/kits/seo-helper.mdx @@ -15,10 +15,9 @@ Each step below builds on the one before, and you can stop after any of them. -**Credit at sign-up is paused** while we tighten our sign-up checks, so a new account starts with no credit. The agent on this page uses GPT-5.6 Luna on Orca credit, which the Free plan does not include. To run it, any one of these works: +**Credit at sign-up is paused** while we tighten our sign-up checks, so a new account starts with no credit. On Free, SEO Helper needs credit, as the kit's review says: "MCP servers outside Orca (DataForSEO): need credit on Free." Its model, GPT-5.6 Luna, runs on Orca credit too; your own OpenRouter key can pay for the model, but not for the DataForSEO connection. To run it, either of these works: - [Buy credit](/wallet#buy-credit). -- [Add your own OpenRouter key](/providers#connect-a-provider), and use `openrouter/openai/gpt-5.6-luna` as the model. - Ask us for some credit on Discord: [discord.gg/btTYzdzvqq](https://discord.gg/btTYzdzvqq). @@ -88,7 +87,7 @@ Check your credit: orca billing wallet ``` -`balance` is your Orca credit. A new account starts at 0 on the [Free plan](/plans#the-free-plan): [add credit](/wallet#buy-credit) before you chat with SEO Helper, or use your own provider key. +`balance` is your Orca credit. A new account starts at 0 on the [Free plan](/plans#the-free-plan): [add credit](/wallet#buy-credit) before you chat with SEO Helper. On Free, your own provider key alone is not enough, since DataForSEO's server is outside Orca. ## 2. Copy SEO Helper diff --git a/plans.mdx b/plans.mdx index f6bc4f5..c4049a8 100644 --- a/plans.mdx +++ b/plans.mdx @@ -58,6 +58,7 @@ Other free models on OpenRouter, with ids ending in `:free`, run on your own Ope - **Then paid time.** Past the included time, a sandbox keeps running while your balance is at or above the minimum, charged to the second from your credit at Free's hourly rate. Otherwise it stops: the running turn ends, the workspace is saved, and the session picks up with its files once you add credit or the next month starts. - **A warning first.** When about 5 minutes of included time are left and your balance is under the minimum, the session gets the event `orca.compute.warning`, and the dashboard shows it. When the included time runs out, the organization's creator gets an email, once a month. - **Network is off until your organization has credit.** "The network is off in Free sandboxes until you add credit. Agents can still run code, but can't install packages or reach the internet." Credit your organization buys, or credit Orca grants it, turns the network on for the sandboxes it starts from then on, and it stays on; a sandbox already running without it goes to sleep at its next idle moment and wakes with the network; signup credit that earlier accounts were given does not. A network command that fails ends its output with that line, prefixed `[Orca] `; the session gets the event `orca.network.off` when such a sandbox starts; and `orca billing wallet` and the wallet's `network` field show it. See [troubleshooting](/troubleshooting#free-plan-and-limits). +- **MCP servers outside Orca need credit too.** "MCP servers outside Orca are off on Free until you add credit." Until your organization has credit, a session whose agent names a remote MCP server other than Orca's docs server is refused with HTTP 400 on `tools`; the same credit that turns the network on turns these on. See [MCP tools](/guides/mcp#allowed-servers). - **Free sandboxes share capacity.** Only a few Free sandboxes run at once across all of Orca, so a start can be refused for a minute when they are busy. - **Free saves workspaces up to a size limit**, in `GET /api/public/plans` as Free's `snapshot_max_bytes`. When a sandbox stops at the end of the included time or of your credit, or for a suspension, a larger workspace is not saved: the session gets the event `orca.sandbox.discarded`, and its next message starts a new, empty sandbox. A sleep that saves a workspace near that size warns with the event `orca.sandbox.workspace_near_limit`. See [a new, empty sandbox](/troubleshooting#free-plan-and-limits). From f2b375b77edf185d5fad637f57ebcb8b914dfaf6 Mon Sep 17 00:00:00 2001 From: ahokik Date: Fri, 30 Oct 2026 21:29:58 +0000 Subject: [PATCH 2/2] MCP tools: the Apollo row names Apollo's read-only scopes for the connect script Co-Authored-By: Claude Opus 5.5 --- guides/mcp.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/mcp.mdx b/guides/mcp.mdx index 6ffa92a..be8cf40 100644 --- a/guides/mcp.mdx +++ b/guides/mcp.mdx @@ -19,7 +19,7 @@ Hosted Orca connects only to these origins: | --- | --- | | `https://docs.orcapods.ai` | The Orca docs' own MCP server | | `https://mcp.dataforseo.com` | DataForSEO's hosted MCP server. It takes your DataForSEO API login and password: add them as a [login and password credential](/guides/credentials#a-login-and-password). | -| `https://mcp.apollo.io` | Apollo's hosted MCP server. It signs you in with OAuth: add the credential with the connect script in [orca-kits](https://github.com/okikorg/orca-kits), `scripts/connect_mcp_oauth.py`. | +| `https://mcp.apollo.io` | Apollo's hosted MCP server. It signs you in with OAuth: add the credential with `scripts/connect_mcp_oauth.py` from [orca-kits](https://github.com/okikorg/orca-kits), asking only for Apollo's read-only scopes: `--server https://mcp.apollo.io/mcp --vault apollo --scope "read_user_profile organizations_enrich organizations_bulk_enrich organizations_search mixed_companies_search organizations_job_posting mixed_people_api_search people_match people_bulk_match contacts_search contact_read"` | | `https://connect.composio.dev` | Composio Connect, in front of the apps you connect in your own Composio account. See [connect apps with Composio](/guides/connect-apps-composio). | | `https://login.composio.dev` | Composio's sign-in server. Orca calls it only to refresh a Composio Connect token. |