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

# Integrations

> Connect an external MCP server so a run can call its tools mid-task.

export const OutcrawlStyles = () => {
  if (typeof document !== 'undefined' && !document.getElementById('outcrawl-overrides')) {
    const s = document.createElement('style');
    s.id = 'outcrawl-overrides';
    s.textContent = `
      /* Match the product's radius grid (4 / 6 / 8 / 9999), not Mintlify's default. */
      .rounded-sm { border-radius: 0.375rem !important; } /* 6px, --r-ctl */
      .rounded-md { border-radius: 0.375rem !important; } /* 6px, --r-ctl */
      .rounded-lg { border-radius: 0.5rem !important; }   /* 8px, --r-panel */
      .rounded-l-sm { border-top-left-radius: 0.375rem !important; border-bottom-left-radius: 0.375rem !important; }
      .rounded-r-sm { border-top-right-radius: 0.375rem !important; border-bottom-right-radius: 0.375rem !important; }
      .rounded-l-md { border-top-left-radius: 0.375rem !important; border-bottom-left-radius: 0.375rem !important; }
      .rounded-r-md { border-top-right-radius: 0.375rem !important; border-bottom-right-radius: 0.375rem !important; }
      .rounded-l-lg { border-top-left-radius: 0.5rem !important; border-bottom-left-radius: 0.5rem !important; }
      .rounded-r-lg { border-top-right-radius: 0.5rem !important; border-bottom-right-radius: 0.5rem !important; }

      /* Cards: never pure white in light mode, matching the one-big-card surface tone. */
      .card { background-color: #fcfcfc !important; border-radius: 0.5rem !important; }
      html.dark .card { background-color: #141311 !important; }

      /* Docs hero box */
      .oc-hero { background-color: #fcfcfc; border: 1px solid #e5e2dc; }
      html.dark .oc-hero { background-color: #141311; border-color: #26241f; }
      html.dark .oc-hero h1 { color: #edeae4; }

      /* Thin, transparent-track, hide-until-hover scrollbar. */
      ::-webkit-scrollbar { width: 6px; height: 6px; background-color: transparent; }
      ::-webkit-scrollbar-track { background-color: transparent; }
      ::-webkit-scrollbar-thumb { background-color: rgba(155, 155, 155, 0.5); border-radius: 10px; transition: opacity 0.3s ease; opacity: 0; }
      ::-webkit-scrollbar-thumb:hover { background-color: rgba(155, 155, 155, 0.7); }
      *:hover::-webkit-scrollbar-thumb,
      *:focus::-webkit-scrollbar-thumb,
      *:active::-webkit-scrollbar-thumb { opacity: 1; }
      * { scrollbar-width: thin; scrollbar-color: rgba(155, 155, 155, 0.5) transparent; }
    `;
    document.head.appendChild(s);
  }
  return null;
};

<OutcrawlStyles />

Connect an MCP server, Gmail, Slack, and similar HTTPS endpoints, so an agent run can call its tools mid-task. Connecting one gives an agent reach outside the browser, so this step is human-only: it has no MCP tool. A run only reaches an integration it is explicitly given at submit time; connecting a server to the workspace is not the same as giving a specific run access to it.

<CodeGroup>
  ```typescript TypeScript theme={"theme":{"light":"github-light","dark":"catppuccin-mocha"}}
  import { Outcrawl } from '@outcrawl/sdk';

  const oc = new Outcrawl();
  const integration = await oc.integrations.connect({
    name: 'slack',
    transport: { kind: 'http', url: 'https://mcp.slack.example' },
    auth: { kind: 'bearer', secret: 'slack_token' },
    tools: null, // every tool the server offers
  });
  const integrations = await oc.integrations.list();
  ```

  ```python Python theme={"theme":{"light":"github-light","dark":"catppuccin-mocha"}}
  import asyncio
  from outcrawl import Outcrawl

  async def main() -> None:
      async with Outcrawl() as oc:
          integration = await oc.integrations.connect(
              name="slack",
              transport={"kind": "http", "url": "https://mcp.slack.example"},
              auth={"kind": "bearer", "secret": "slack_token"},
              tools=None,  # every tool the server offers
          )
          integrations = await oc.integrations.list()

  asyncio.run(main())
  ```

  ```bash curl theme={"theme":{"light":"github-light","dark":"catppuccin-mocha"}}
  curl -X POST https://api.outcrawl.ai/v1/integrations \
    -H "Authorization: Bearer ock_YOUR_KEY_ID.YOUR_SECRET" \
    -H "Content-Type: application/json" \
    -d '{"name": "slack", "transport": {"kind": "http", "url": "https://mcp.slack.example"}, "auth": {"kind": "bearer", "secret": "slack_token"}, "tools": null}'

  curl https://api.outcrawl.ai/v1/integrations -H "Authorization: Bearer ock_YOUR_KEY_ID.YOUR_SECRET"
  ```
</CodeGroup>

`transport.url` must be a public HTTPS address. `auth.kind` is `bearer`, `header` (with a `header` name) or `none`, and `tools` is a list of tool names, or `null` for every tool the server offers.

`auth.secret` is a name from your [secrets](/docs/account/secrets), never a raw token. `integrations.list` is the blast radius: every connected server, its tools, and the name it authenticates with, everything an agent could reach outside the browser if a run named it. `integrations.delete` disconnects a server; the underlying credential is untouched, it lives in secrets and is deleted there separately.


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