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

# Custom MCP connectors

> Connect another MCP server’s tools to Struct Agent.

Connect a remote HTTP MCP server to make its tools available to Struct Agent. Inspect its authentication requirements and the requested tool scope before configuring access.

## Inspect access and existing connections

Use a claimed workspace with permission to configure connections.

```bash theme={null}
struct whoami --json
struct connections catalog custom-mcp --json
struct connections list --json
```

Use the catalog's current fields, choices and permission requirements. Reuse an existing healthy connection instead of creating a duplicate.

## Connect with the CLI

Supply credentials from approved secret storage through `MCP_AUTH_VALUE`. The catalog describes which are needed for the selected authentication method. Do not put literal secrets in shell arguments or chat.

Replace example values with the intended resource:

```bash theme={null}
struct connect custom_mcp --url <url> --auth none
```

Use `--auth none`, `bearer`, `header` or `oauth` as appropriate. Bearer/header secrets come from `MCP_AUTH_VALUE`; a custom header also needs `--auth-header-name`. OAuth prints an approval link and waits. Struct tests tool discovery before saving. The remote endpoint must be publicly reachable; private, loopback, link-local and metadata addresses are refused.

Use `struct connections disable CONNECTION_ID` to keep the connector out of agent runs without removing it. This connects another server's tools to Struct; [Struct MCP](https://docs.struct.ai/mcp/overview.md) exposes Struct's tools to your own MCP client.

## Verify and recover

Use the returned connection ID:

```bash theme={null}
struct connections show CONNECTION_ID --json
struct connections test CONNECTION_ID --json
```

Inspect `ok`, `health` and missing permissions, not only the exit code. `struct connections grant-command CONNECTION_ID` prints repair instructions where supported; have an authorized operator apply them. For expired OAuth links, start the connection command again and use the new link. Do not reconnect to a different account silently.

Verify a bounded operation for the requested job. Connection health proves checked access; it does not prove telemetry arrival, an investigation or alert delivery.


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