Customer MCP connections
Connect a remote MCP server that your organisation operates or trusts, review its tools, and let Sparkles use an approved subset in one Aient environment. This feature makes Aient the MCP client. It is different from connecting Codex, Claude, or another MCP client to Aient’s ownhttps://aient.ai/mcp server.
Customer connections are scoped to one environment. A Production connection is not visible to
tasks in Development, and there is no organisation-wide fallback.
Before you start
Your server must expose MCP Streamable HTTP at a public HTTPS URL on port 443. Aient supports:- no authentication;
- a bearer token; or
- one API-key header, such as
X-API-Key.
stdio processes, and arbitrary header maps are not supported.
You must be an organisation owner or administrator. Keep the remote server’s tools safe for the
autonomous read access you intend to approve.
Connect through the UI
- Open Settings → Environments and choose the environment.
- Select MCP connections, then Add MCP connection.
- Enter a stable alias, display name, HTTPS endpoint, and authentication type. New connections are disabled.
- If authentication is required, enter the credential. Aient stores it in the organisation vault and never displays it again.
- Select Discover tools, review the server-derived list, select only the tools you trust for autonomous read use, and confirm the approval.
- Enable the connection.
What Sparkles receives
At the start of a new task, Aient resolves the ready connections for that task’s exact organisation and environment. Sparkles receives only a bounded snapshot containing approved tool names, descriptions, and schemas. It does not receive the endpoint, credential, secret reference, or a live MCP client. Before every tool call, Pulse verifies that the connection is still enabled and that its revision and approved manifest still match the task snapshot. A changed, disabled, or deleted connection fails closed. The remote call then runs once through Aient’s protected egress path. Aient does not automatically retry an ambiguous tool call.Readiness states
Readiness is derived from the current configuration; it is not a separate status that can drift
from the connection.
Manage through the public API
The OpenAPI 3.1.1 document is available athttps://aient.ai/api/v1/openapi.json.
Use an Aient API key provisioned with mcp_connections:read for list/get or
mcp_connections:manage for lifecycle operations. The current API-key dialog does not expose
these permissions, so prefer audience-bound Aient CLI OAuth for customer automation unless an
owner/admin has provisioned the key through the authenticated key API. Browser session cookies are
not accepted on /api/v1.
Create and every mutation require an
Idempotency-Key. Mutations of an existing connection also
require If-Match with the quoted numeric revision returned by the latest read, for example
If-Match: "4". Re-read after a 412 revision conflict instead of overwriting newer changes.
The credential request body is write-only. Responses contain endpointOrigin and
auth.credentialReady, never the full stored endpoint path, vault identifier, or credential.
Example: create a disabled connection
Manage through the Aient CLI
The CLI command family is:--environment with the environment UUID. Use --json for structured
automation. Lists support --page-size, --cursor, and --all. Mutations require --revision;
the CLI generates and reports an idempotency key when you do not provide one.
Credentials are accepted only from stdin:
aient auth login again.
The CLI calls the public REST API; it does not send these commands through Aient’s inbound MCP
server.
Manage through Aient MCP
An agent connected tohttps://aient.ai/mcp can use:
list_mcp_connectionsandget_mcp_connection;create_mcp_connectionandupdate_mcp_connection;discover_mcp_connection_toolsandapprove_mcp_connection_tools;set_mcp_connection_enabled;preview_mcp_connection_deletionanddelete_mcp_connection; andprepare_mcp_connection_credential_upload.
aient.mcp.write. The management tools return concise text plus structured,
redacted results. They never accept a reusable credential as model-visible input.
For a credential, prepare_mcp_connection_credential_upload creates a short-lived, single-use
browser action bound to the same user, environment, connection, and revision. Open that action as
the signed-in human owner, then let the MCP client poll the same request. Never paste the credential
into chat.
Updating, rotating, and deleting
- Disable a connection before changing its endpoint or authentication configuration. Those changes clear the old approval.
- Credential rotation validates the candidate before replacing the live secret. A failed candidate leaves the current credential in place.
- Disable before deletion. Preview deletion first, inspect the approved-tool and credential effects, then confirm with the short-lived receipt.
- A configuration change does not rewrite a task already in progress. Its schema stays stable, but a later call fails if the connection no longer matches; a new task resolves the new configuration.