> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cotool.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom integrations

> Connect a remote MCP server or turn an OpenAPI specification into callable actions.

From **Integrations**, select **Add custom integration**. You need permission to manage integrations. Select **MCP server** if the service exposes tools over MCP, or **OpenAPI spec** if you have an HTTP API specification.

> [!NOTE]
>
> This page is about giving Cotool access to another service. To give an
> external AI app access to Cotool, see [Cotool's MCP server](https://docs.cotool.ai/mcp/overview.md).

## Connect a remote MCP server

**1. Describe the server**

Select **MCP server**. Enter a unique **Tool ID**, **Display name**,
**Server URL**, and **Category**. Use the MCP endpoint, not the
service's homepage.

**2. Choose the transport**

Select **Streamable HTTP** or **SSE (legacy)** to match the server.
Cotool connects to a remote HTTP endpoint; it doesn't start a local
stdio server.

**3. Choose authentication**

Choose **OAuth 2.0**, **API key or bearer token**, or **No
authentication**. For a token, enter the header name and value,
including the prefix the server expects. Enter credentials only in the
connection form.

**4. Add and connect the server**

Select **Add server**, then **Connect** from its catalog card if needed.
Finish sign-in for OAuth. Check that the expected actions appear before
adding them to an agent.

> [!NOTE]
>
> If your organization has [Private networks](https://docs.cotool.ai/settings/private-networks.md), the
> **Network** picker can route MCP to a configured Tailscale network. Private
> MCP connections support API key or no authentication, not OAuth. Cotool
> Connector is not supported for MCP.

## Import an OpenAPI specification

**1. Provide the specification**

Select **OpenAPI spec**. Upload a file, enter a spec URL, or paste the
specification. Cotool supports JSON or YAML in OpenAPI 3.x or Swagger
2.0, up to 5 MiB and 500 operations per spec. Bundle references into the
document before import; Cotool doesn't fetch external `$ref` documents.

**2. Review the details and base URL**

Review the proposed name, integration ID, and category. Set the **Base
URL** to the public HTTPS endpoint, without embedded credentials, query
string, or fragment. If your service uses an IP allowlist, use the
Cotool egress IPs shown during setup.

**3. Configure authentication**

Under **Auth**, choose no authentication, an API key in a header or
query parameter, a bearer token, or Basic auth. Scope credentials to the
operations you need.

**4. Choose operations**

Under **Operations**, enable the operations you want to expose, up to
50\. Cotool initially enables callable, nondeprecated `GET`, `HEAD`, and
`OPTIONS` operations up to that limit. Other methods start disabled and
marked for confirmation. An operation with unsupported required input
can't be enabled.

**5. Add a connection test and create the integration**

Optionally select a **Connection test**: a callable `GET` with no
required inputs. An authenticated endpoint checks the credential; a
public endpoint checks only reachability. Select **Create integration**.

An enabled operation becomes a tool action. Its confirmation setting prompts for approval in chat. Agents can also use their own [action selections and approval rules](https://docs.cotool.ai/core-concepts/tools-and-integrations.md). Start with reads and add writes only as needed.

To update a specification, open the integration and upload a new version in **Spec**. Cotool preserves operation settings by HTTP method and path.

> [!WARNING]
>
> Before saving a new version, review removed or renamed operations your
> agents use.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.