Resource guide
Connections are workspace-scoped provider state
Cloud integration catalog browsing and connection lifecycle share one workspace capability. Bento derives the provider entity from the authenticated workspace. Clients never send an entity ID or arbitrary return destination, and every connected-account ID is verified against that workspace before deletion or direct execution.
Keep credentials and connection state at the provider
For a cloud integration, start a connection with an integration slug and a same-origin product path. Bento validates that path and returns a hosted authorization URL. Credentials go directly from the browser to the integration provider; Bento does not receive or store them. When the browser returns, treat its status parameter as a notice and refetch the catalog and connection list. The provider remains the sole source of truth; Bento does not mirror pending, active, failed, or disconnected integration rows.
A workspace may have multiple active accounts for the same integration. Each account remains a separate
provider connection and appears as its own row in the connection list; connect again when a second account
is needed. Starting another authorization preserves existing active, pending, and failed connections.
Disconnect only the lifecycle connection id you intend to remove; labels are never selection keys.
Agent Tool Router sessions use the provider's multi-account mode and require an account choice when
several accounts for one toolkit are available.
Existing chats update their native session in place, preserving its sandbox and conversation context.
If a selected account disappears, list connections again and choose an available account; execution
does not silently switch to another account.
The connection's name identifies its toolkit. Its optional accountLabel comes from the provider's
display name, then its native word ID; use the connection id when neither is available. Labels can
repeat and are read live, without a separate Bento account profile. The catalog's
connectedAccountCount counts all active accounts for that toolkit, including later provider pages;
connected is true exactly when that count is positive. Pending, failed, and disconnected accounts
do not count. An incomplete or failed provider enumeration returns integration_provider_failed
instead of a partial count. A provider capacity refusal also returns that failure and preserves
existing accounts; inspect their state before deciding whether to disconnect one and retry.
Every accepted catalog or connection page contains at most 100 rows. Provider identities,
descriptions, and URLs must fit the public UTF-8 contract. Invalid optional logos are omitted; any
other invalid or oversized provider page fails as integration_provider_failed instead of leaking
a partial page. These bounds apply before provider data reaches the public API, including both
provider and public continuation tokens.
Agent access is separate durable Bento policy keyed by integration slug, so it survives disconnect
and reconnect. An omitted allowedAgentIds field means every agent, including future agents; an
explicit empty array means no agent; and a non-empty array names the exact durable agent IDs that
receive the toolkit. The reserved root ID selects default Bento. Send an empty object to restore
the all-agents default.
Canceled authorization is a successful lifecycle outcome with no active connection. It is safe to show the catalog again. Disconnect is idempotent, so cleanup code may repeat it when a prior response was lost.
Call a connected integration from an app
First connect the required provider in the intended workspace using the flow above. Read its connection state after human consent; an authorization URL alone does not prove it is active. Discover the provider's current tool slug and argument schema through its integration tools or provider documentation before calling it.
Declare integrations in the app registration's apiScopes. A Bento-hosted service receives
BENTO_APP_API_KEY and BENTO_API_URL in its runtime environment. An external server follows
the app credential export workflow. Neither needs a human key.
The execution proxy is POST /v1/integrations/tools/{toolSlug}/execute. Send the actual
tool arguments in arguments. An authenticated tool can omit connectedAccountId when its toolkit
has exactly one active account. When several are active, first list the workspace's connections
and choose the lifecycle id for the intended account. Include that ID as connectedAccountId;
labels are for recognition and may repeat. For example, use ca_work from Bento's connection list,
not a native MCP word ID such as work-gmail.
For the CLI with a saved human login, save {"arguments":{},"workspace":"acme"} as
integration-call.json, replacing acme with the intended workspace. Supply the chosen account
with the generated flag below. The curl example uses the app credential, which already selects
its workspace:
bento integration tool execute --tool-slug "$TOOL_SLUG" --connected-account-id "$CONNECTION_ID" --body-file integration-call.jsoncurl --fail-with-body -X POST "$BENTO_API_URL/v1/integrations/tools/$TOOL_SLUG/execute" \
-H "Authorization: Bearer $BENTO_APP_API_KEY" \
-H 'Content-Type: application/json' \
--data '{"arguments":{},"connectedAccountId":"ca_work"}'An app credential already identifies its workspace. A human API client instead uses its own
bearer and includes workspace in the body alongside arguments, selecting the intended slug
from GET /v1/whoami. Omitting that selection when several workspaces are reachable returns
workspace_ambiguous; replacing the key does not choose a workspace.
If omission is ambiguous, integration_account_required (409) asks you to select an account.
integration_account_unavailable (409) means no active account exists or the explicit ID is
missing, inactive, or unsuitable for this workspace/toolkit. List connections again and select
an available account. A failed explicit selection never falls back to a surviving account;
an incomplete provider inventory returns integration_provider_failed (502). Provider-declared
no-auth tools need no account and reject an explicit account as invalid_request (400).
Inspect the provider response and verify the intended upstream result before reporting success. Do not automatically replay a write after an uncertain response: read provider state first. Keep the bearer on the app server, never in browser code or public assets.
Connect an external client to Bento MCP
Bento's hosted MCP exposes the same public customer operations as the API and CLI. This is a connection from your client to Bento; attaching an upstream MCP server connects a different service into your workspace.
- Add a remote Streamable HTTP server in your MCP client. Use
https://mcp.bento.ing/for production orhttps://mcp-staging.bento.ing/for staging. Use the origin root;/mcpis not an endpoint. - Let the client follow OAuth discovery and open Bento's consent page. Sign in and Approve or Deny the client. Approval issues your ordinary human key.
- After approval, list tools and call
whoamito confirm the connection and reachable workspaces. Use the returned tool schemas: route values such asworkspaceSlugare separate fields, and most tools take endpoint JSON and query parameters underbodyandquery.
Clients that support bearer configuration may also use an existing human key.
Select workspaceSlug for workspace operations.
Use client-side secret storage, not a key in the URL.
Connecting and listing tools work before sign-in, so some clients connect at once and ask you to
sign in only when they first call a tool. Call whoami to check whether a client is signed in.
OAuth clients discover /.well-known/oauth-protected-resource from the 401 challenge that any
signed-out operation returns. It points to the API's authorization-server metadata, which advertises dynamic
client registration and authorization code with PKCE S256. Use the exact MCP origin as the
OAuth resource and keep production and staging credentials separate.
After 401, sign in again through the client. After 403, inspect current workspace membership
and role. Manage or revoke the client's key under
Settings → API keys.
Custom MCP servers and workspace model providers
An attached OAuth MCP server returns an authorization URL when you start its connect operation. Open that URL for human consent, then read the server list to observe readiness. Bento stores the upstream MCP credential and attaches it at its proxy; callers do not receive that credential.
Workspace model-provider connections use a human credential and current workspace membership. Start returns a connection-session handle; polling returns the provider's verification URL and code, followed by connected or failed status. The workspace VM owns the provider credentials. Listing can return the last stored observation when the VM is unavailable. Disconnect retains the existing member ownership policy. Connecting a provider on your own computer is a separate local operation and does not connect that provider to the workspace.
Integrations
16 operations /v1 /workspaces /{workspaceSlug} /providersRead workspace provider status, refreshing from the VM when reachable.
bento provider list- Scope
human- Request
- No JSON request body
- Response
Response JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "array", "items": { "type": "object", "properties": { "provider": { "type": "string", "enum": [ "openai-codex", "github-copilot" ] }, "state": { "type": "string", "enum": [ "connected", "plan_ineligible", "reconnect_needed" ] }, "connectedAt": { "type": "number" }, "connectedByUserId": { "type": "string" }, "connectedByLabel": { "type": "string" }, "eligibilityCheckedAt": { "type": "number" }, "canDisconnect": { "type": "boolean" } }, "required": [ "provider", "state", "connectedAt", "canDisconnect" ], "additionalProperties": false } }- Delivery
- Standard response
- Retry
- Not declared idempotent
/v1 /workspaces /{workspaceSlug} /providers /{providerId} /connectStart a workspace provider device authorization; poll the returned session.
bento provider connect --provider-id example- Scope
human- Request
- No request body
- Response
Response JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "sessionId": { "type": "string" }, "intervalMs": { "type": "number" } }, "required": [ "sessionId", "intervalMs" ], "additionalProperties": false }- Delivery
- Standard response
- Retry
- Not declared idempotent
/v1 /workspaces /{workspaceSlug} /providers /connections /{connectionId}Observe the code, pending, connected, or failed state of provider authorization.
bento provider connection get --connection-id example- Scope
human- Request
- No JSON request body
- Response
Response JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "oneOf": [ { "type": "object", "properties": { "status": { "type": "string", "const": "pending" } }, "required": [ "status" ], "additionalProperties": false }, { "type": "object", "properties": { "status": { "type": "string", "const": "awaiting_code" }, "userCode": { "type": "string" }, "verificationUri": { "type": "string" }, "expiresAt": { "type": "number" } }, "required": [ "status", "userCode", "verificationUri", "expiresAt" ], "additionalProperties": false }, { "type": "object", "properties": { "status": { "type": "string", "const": "connected" }, "connection": { "type": "object", "properties": { "provider": { "type": "string", "enum": [ "openai-codex", "github-copilot" ] }, "state": { "type": "string", "enum": [ "connected", "plan_ineligible", "reconnect_needed" ] }, "connectedAt": { "type": "number" }, "connectedByUserId": { "type": "string" }, "connectedByLabel": { "type": "string" }, "eligibilityCheckedAt": { "type": "number" } }, "required": [ "provider", "state", "connectedAt" ], "additionalProperties": false } }, "required": [ "status", "connection" ], "additionalProperties": false }, { "type": "object", "properties": { "status": { "type": "string", "const": "failed" }, "reason": { "type": "string", "enum": [ "denied", "expired", "plan_ineligible", "error" ] }, "provider": { "type": "string", "enum": [ "openai-codex", "github-copilot" ] }, "detail": { "type": "string" } }, "required": [ "status", "reason" ], "additionalProperties": false } ] }- Delivery
- Standard response
- Retry
- Not declared idempotent
/v1 /workspaces /{workspaceSlug} /providers /{providerId}Disconnect a workspace provider under the existing member ownership policy.
bento provider delete --provider-id example- Scope
human- Request
- No JSON request body
- Response
Response JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "ok": { "type": "boolean", "const": true } }, "required": [ "ok" ], "additionalProperties": false }- Delivery
- Standard response
- Retry
- Not declared idempotent
/v1 /workspaces /{workspaceSlug} /integrations /catalogSearch and page through the provider-neutral integration catalog
bento integration catalog list- Scope
ws:{workspaceSlug}:integrations- Request
- No JSON request body
- Query
Query parameters JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "cursor": { "type": "string", "minLength": 1 }, "limit": { "default": 50, "type": "integer", "minimum": 1, "maximum": 100 }, "q": { "type": "string", "maxLength": 200 } }, "additionalProperties": false }- Response
Response JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "items": { "maxItems": 100, "type": "array", "items": { "type": "object", "properties": { "integration": { "type": "string" }, "name": { "type": "string", "minLength": 1 }, "description": { "type": "string" }, "logoUrl": { "type": "string" }, "connected": { "type": "boolean" }, "connectedAccountCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": [ "integration", "name", "connected", "connectedAccountCount" ], "additionalProperties": false } }, "nextCursor": { "anyOf": [ { "type": "string", "minLength": 1 }, { "type": "null" } ] } }, "required": [ "items", "nextCursor" ], "additionalProperties": false }- Errors
Error body JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "anyOf": [ { "anyOf": [ { "anyOf": [ { "type": "object", "properties": { "error": { "type": "string", "const": "integration_provider_failed" } }, "required": [ "error" ], "additionalProperties": false, "description": "The integration provider rejected or returned invalid data (502)" }, { "type": "object", "properties": { "error": { "type": "string", "const": "integration_provider_not_configured" } }, "required": [ "error" ], "additionalProperties": false, "description": "The integration provider is not configured for this deployment (503)" } ] }, { "type": "object", "properties": { "error": { "type": "string", "const": "invalid_request" } }, "required": [ "error" ], "additionalProperties": false, "description": "The integration request or provider identity is outside the accepted contract (400)" } ] }, { "type": "object", "properties": { "error": { "type": "string", "const": "invalid_cursor" } }, "required": [ "error" ], "additionalProperties": false, "description": "Opaque collection cursor is malformed or bound to another walk (400)" } ] }- Delivery
- Standard response
- Retry
- Not declared idempotent
/v1 /workspaces /{workspaceSlug} /integrations /connectBegin an OAuth connection using server-derived tenant identity
bento integration connect --body-file request.json- Scope
ws:{workspaceSlug}:integrations- Request
Request JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "integration": { "type": "string", "minLength": 1 }, "redirectTo": { "type": "string", "minLength": 1, "maxLength": 2048 } }, "required": [ "integration", "redirectTo" ] }- Response
Response JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "integration": { "type": "string" }, "authorizeUrl": { "type": "string" } }, "required": [ "integration", "authorizeUrl" ], "additionalProperties": false }- Errors
Error body JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "anyOf": [ { "anyOf": [ { "type": "object", "properties": { "error": { "type": "string", "const": "integration_provider_failed" } }, "required": [ "error" ], "additionalProperties": false, "description": "The integration provider rejected or returned invalid data (502)" }, { "type": "object", "properties": { "error": { "type": "string", "const": "integration_provider_not_configured" } }, "required": [ "error" ], "additionalProperties": false, "description": "The integration provider is not configured for this deployment (503)" } ] }, { "type": "object", "properties": { "error": { "type": "string", "const": "invalid_request" } }, "required": [ "error" ], "additionalProperties": false, "description": "The integration request or provider identity is outside the accepted contract (400)" }, { "type": "object", "properties": { "error": { "type": "string", "const": "redirect_not_allowed" } }, "required": [ "error" ], "additionalProperties": false, "description": "The requested browser return destination is not allowed (400)" } ] }- Delivery
- Standard response
- Retry
- Not declared idempotent
/v1 /workspaces /{workspaceSlug} /integrations /connectionsList workspace integration connections directly from the provider
bento integration connection list- Scope
ws:{workspaceSlug}:integrations- Request
- No JSON request body
- Query
Query parameters JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "cursor": { "type": "string", "minLength": 1 }, "limit": { "default": 50, "type": "integer", "minimum": 1, "maximum": 100 } }, "additionalProperties": false }- Response
Response JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "items": { "maxItems": 100, "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1 }, "integration": { "type": "string" }, "accountLabel": { "type": "string", "minLength": 1 }, "name": { "type": "string", "minLength": 1 }, "logoUrl": { "type": "string" }, "status": { "type": "string", "enum": [ "active", "pending", "error", "disconnected" ] }, "connectedAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "updatedAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "allowedAgentIds": { "maxItems": 51, "type": "array", "items": { "type": "string" } } }, "required": [ "id", "integration", "status", "connectedAt", "updatedAt" ], "additionalProperties": false } }, "nextCursor": { "anyOf": [ { "type": "string", "minLength": 1 }, { "type": "null" } ] } }, "required": [ "items", "nextCursor" ], "additionalProperties": false }- Errors
Error body JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "anyOf": [ { "anyOf": [ { "anyOf": [ { "type": "object", "properties": { "error": { "type": "string", "const": "integration_provider_failed" } }, "required": [ "error" ], "additionalProperties": false, "description": "The integration provider rejected or returned invalid data (502)" }, { "type": "object", "properties": { "error": { "type": "string", "const": "integration_provider_not_configured" } }, "required": [ "error" ], "additionalProperties": false, "description": "The integration provider is not configured for this deployment (503)" } ] }, { "type": "object", "properties": { "error": { "type": "string", "const": "invalid_request" } }, "required": [ "error" ], "additionalProperties": false, "description": "The integration request or provider identity is outside the accepted contract (400)" } ] }, { "type": "object", "properties": { "error": { "type": "string", "const": "invalid_cursor" } }, "required": [ "error" ], "additionalProperties": false, "description": "Opaque collection cursor is malformed or bound to another walk (400)" } ] }- Delivery
- Standard response
- Retry
- Not declared idempotent
/v1 /workspaces /{workspaceSlug} /integrations /connections /{connectionId}Idempotently disconnect one tenant-owned integration account
bento integration connection delete --connection-id example- Scope
ws:{workspaceSlug}:integrations- Request
- No JSON request body
- Response
Response JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "id": { "type": "string", "minLength": 1 }, "disconnected": { "type": "boolean" } }, "required": [ "id", "disconnected" ], "additionalProperties": false }- Errors
Error body JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "anyOf": [ { "anyOf": [ { "type": "object", "properties": { "error": { "type": "string", "const": "integration_provider_failed" } }, "required": [ "error" ], "additionalProperties": false, "description": "The integration provider rejected or returned invalid data (502)" }, { "type": "object", "properties": { "error": { "type": "string", "const": "integration_provider_not_configured" } }, "required": [ "error" ], "additionalProperties": false, "description": "The integration provider is not configured for this deployment (503)" } ] }, { "type": "object", "properties": { "error": { "type": "string", "const": "invalid_request" } }, "required": [ "error" ], "additionalProperties": false, "description": "The integration request or provider identity is outside the accepted contract (400)" } ] }- Delivery
- Standard response
- Retry
- Declared idempotent
/v1 /workspaces /{workspaceSlug} /integrations /{integrationSlug} /agent-policySet or clear the agents that receive one integration toolkit
bento integration agent-policy update --integration-slug example- Scope
ws:{workspaceSlug}:integrations- Request
Request JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "allowedAgentIds": { "maxItems": 51, "type": "array", "items": { "type": "string", "minLength": 1 } } } }- Response
Response JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "integration": { "type": "string" }, "allowedAgentIds": { "maxItems": 51, "type": "array", "items": { "type": "string" } } }, "required": [ "integration" ], "additionalProperties": false }- Errors
The integration request or provider identity is outside the accepted contract (400)
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "error": { "type": "string", "const": "invalid_request" } }, "required": [ "error" ], "additionalProperties": false, "description": "The integration request or provider identity is outside the accepted contract (400)" }- Delivery
- Standard response
- Retry
- Declared idempotent
/v1 /integrations /tools /{toolSlug} /executeExecute a provider tool using an explicit or sole active workspace account; return the raw provider response.
bento integration tool execute --tool-slug example --connected-account-id ca_work- Scope
ws:{workspaceSlug}:integrations- Request
Request JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "arguments": { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": {} }, "workspace": { "type": "string" }, "connectedAccountId": { "type": "string", "minLength": 1 } } }- Response
Response JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema" }- Errors
Error body JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "anyOf": [ { "anyOf": [ { "anyOf": [ { "type": "object", "properties": { "error": { "type": "string", "const": "integration_provider_failed" } }, "required": [ "error" ], "additionalProperties": false, "description": "The integration provider rejected or returned invalid data (502)" }, { "type": "object", "properties": { "error": { "type": "string", "const": "integration_provider_not_configured" } }, "required": [ "error" ], "additionalProperties": false, "description": "The integration provider is not configured for this deployment (503)" } ] }, { "type": "object", "properties": { "error": { "type": "string", "const": "invalid_request" } }, "required": [ "error" ], "additionalProperties": false, "description": "The integration request or provider identity is outside the accepted contract (400)" } ] }, { "type": "object", "properties": { "error": { "type": "string", "const": "integration_account_required" } }, "required": [ "error" ], "additionalProperties": false, "description": "Several active accounts exist; choose a connectedAccountId (409)" }, { "type": "object", "properties": { "error": { "type": "string", "const": "integration_account_unavailable" } }, "required": [ "error" ], "additionalProperties": false, "description": "The selected account is unavailable for this workspace/toolkit, or none is active (409)" } ] }- Delivery
- Standard response
- Retry
- Not declared idempotent
/v1 /workspaces /{workspaceSlug} /mcp-servers /probeDry-run a remote MCP server for its tool count, per-turn cost, and auth requirement
bento mcp-server probe --name example --url https://example.com- Scope
ws:{workspaceSlug}:integrations- Request
Request JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "name": { "type": "string", "pattern": "^[a-zA-Z0-9_-]{1,48}$" }, "url": { "type": "string", "minLength": 1, "maxLength": 2048 }, "auth": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "const": "none" } }, "required": [ "kind" ] }, { "type": "object", "properties": { "kind": { "type": "string", "const": "oauth" } }, "required": [ "kind" ] }, { "type": "object", "properties": { "kind": { "type": "string", "const": "static" }, "token": { "type": "string", "minLength": 1, "maxLength": 8192 } }, "required": [ "kind", "token" ] } ] } }, "required": [ "name", "url" ] }- Response
Response JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "auth": { "type": "string", "enum": [ "none", "oauth" ] }, "toolCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "estimatedPromptBytes": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "droppedToolNames": { "maxItems": 128, "type": "array", "items": { "type": "string", "minLength": 1 } }, "registrationSupported": { "type": "boolean" } }, "required": [ "auth", "toolCount", "estimatedPromptBytes" ], "additionalProperties": false }- Delivery
- Standard response
- Retry
- Not declared idempotent
/v1 /workspaces /{workspaceSlug} /mcp-serversAttach a remote MCP server to the workspace after a successful probe
bento mcp-server create --name example --url https://example.com- Scope
ws:{workspaceSlug}:integrations- Request
Request JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "name": { "type": "string", "pattern": "^[a-zA-Z0-9_-]{1,48}$" }, "url": { "type": "string", "minLength": 1, "maxLength": 2048 }, "auth": { "oneOf": [ { "type": "object", "properties": { "kind": { "type": "string", "const": "none" } }, "required": [ "kind" ] }, { "type": "object", "properties": { "kind": { "type": "string", "const": "oauth" } }, "required": [ "kind" ] }, { "type": "object", "properties": { "kind": { "type": "string", "const": "static" }, "token": { "type": "string", "minLength": 1, "maxLength": 8192 } }, "required": [ "kind", "token" ] } ] }, "label": { "type": "string", "minLength": 1, "maxLength": 128 } }, "required": [ "name", "url" ] }- Response
Response JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "name": { "type": "string", "pattern": "^[a-zA-Z0-9_-]{1,48}$" }, "label": { "type": "string", "minLength": 1, "maxLength": 128 }, "url": { "type": "string", "minLength": 1, "maxLength": 2048 }, "authKind": { "type": "string", "enum": [ "none", "oauth", "static" ] }, "state": { "type": "string", "enum": [ "needs_auth", "ready", "reauth_required", "disconnecting" ] }, "toolCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "estimatedPromptBytes": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "droppedToolNames": { "maxItems": 128, "type": "array", "items": { "type": "string", "minLength": 1 } }, "lastSuccessAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "lastErrorAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "lastErrorCode": { "type": "string", "enum": [ "unauthorized", "reauth_required", "unreachable", "upstream_error", "result_too_large", "timeout" ] }, "allowedAgentIds": { "maxItems": 51, "type": "array", "items": { "type": "string", "minLength": 1 } }, "createdAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "updatedAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": [ "name", "label", "url", "authKind", "state", "createdAt", "updatedAt" ], "additionalProperties": false }- Delivery
- Standard response
- Retry
- Not declared idempotent
/v1 /workspaces /{workspaceSlug} /mcp-serversList the workspace’s custom MCP servers with their health and per-agent scoping
bento mcp-server list- Scope
ws:{workspaceSlug}:integrations- Request
- No JSON request body
- Query
Query parameters JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "cursor": { "type": "string", "minLength": 1 }, "limit": { "default": 50, "type": "integer", "minimum": 1, "maximum": 100 } }, "additionalProperties": false }- Response
Response JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "pattern": "^[a-zA-Z0-9_-]{1,48}$" }, "label": { "type": "string", "minLength": 1, "maxLength": 128 }, "url": { "type": "string", "minLength": 1, "maxLength": 2048 }, "authKind": { "type": "string", "enum": [ "none", "oauth", "static" ] }, "state": { "type": "string", "enum": [ "needs_auth", "ready", "reauth_required", "disconnecting" ] }, "toolCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "estimatedPromptBytes": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "droppedToolNames": { "maxItems": 128, "type": "array", "items": { "type": "string", "minLength": 1 } }, "lastSuccessAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "lastErrorAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "lastErrorCode": { "type": "string", "enum": [ "unauthorized", "reauth_required", "unreachable", "upstream_error", "result_too_large", "timeout" ] }, "allowedAgentIds": { "maxItems": 51, "type": "array", "items": { "type": "string", "minLength": 1 } }, "createdAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "updatedAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": [ "name", "label", "url", "authKind", "state", "createdAt", "updatedAt" ], "additionalProperties": false } }, "nextCursor": { "anyOf": [ { "type": "string", "minLength": 1 }, { "type": "null" } ] } }, "required": [ "items", "nextCursor" ], "additionalProperties": false }- Errors
Opaque collection cursor is malformed or bound to another walk (400)
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "error": { "type": "string", "const": "invalid_cursor" } }, "required": [ "error" ], "additionalProperties": false, "description": "Opaque collection cursor is malformed or bound to another walk (400)" }- Delivery
- Standard response
- Retry
- Not declared idempotent
/v1 /workspaces /{workspaceSlug} /mcp-servers /{name} /connectBegin OAuth consent for an attached remote MCP server; open the returned authorization URL.
bento mcp-server connect --name example- Scope
ws:{workspaceSlug}:integrations- Request
Request JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "redirectTo": { "type": "string", "maxLength": 2048 } } }- Response
Response JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "authorizeUrl": { "type": "string", "format": "uri" } }, "required": [ "authorizeUrl" ], "additionalProperties": false }- Delivery
- Standard response
- Retry
- Not declared idempotent
/v1 /workspaces /{workspaceSlug} /mcp-servers /{name}Idempotently detach one custom MCP server and its stored credential
bento mcp-server delete --name example- Scope
ws:{workspaceSlug}:integrations- Request
- No JSON request body
- Response
Response JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "name": { "type": "string", "pattern": "^[a-zA-Z0-9_-]{1,48}$" }, "removed": { "type": "boolean" }, "revoked": { "type": "string", "enum": [ "revoked", "not_supported", "failed" ] }, "registration": { "type": "string", "enum": [ "deleted", "retained", "not_supported" ] } }, "required": [ "name", "removed", "revoked", "registration" ], "additionalProperties": false }- Delivery
- Standard response
- Retry
- Declared idempotent
/v1 /workspaces /{workspaceSlug} /mcp-servers /{name} /agent-policySet or clear the agents that receive one custom MCP server
bento mcp-server agent-policy update --name example- Scope
ws:{workspaceSlug}:integrations- Request
Request JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "allowedAgentIds": { "maxItems": 51, "type": "array", "items": { "type": "string", "minLength": 1 } } } }- Response
Response JSON schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "name": { "type": "string", "pattern": "^[a-zA-Z0-9_-]{1,48}$" }, "allowedAgentIds": { "maxItems": 51, "type": "array", "items": { "type": "string", "minLength": 1 } } }, "required": [ "name" ], "additionalProperties": false }- Delivery
- Standard response
- Retry
- Declared idempotent