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

# OpenClaw Gateway remote MCP setup (draft)

> Untested draft for adding ConnectKey to OpenClaw Gateway via CLI or Control UI with Streamable HTTP and OAuth. Sign-in and tool calls are unverified.

Documented from OpenClaw's public MCP docs (2026-11-25), with unauthenticated endpoint probes on 2026-11-25 (`/healthz` and `/readyz` returned 200 on the staging MCP host while `/mcp`, `/.well-known/oauth-protected-resource`, and `/.well-known/oauth-authorization-server` returned 404, and the production MCP host did not resolve). No real OpenClaw Gateway run has been performed.

1. Add `https://mcp.connectkey.ai/mcp` to your client.
2. Sign in to ConnectKey.
3. Pick a workspace.
4. Allow access to that workspace.

> [!WARNING]
>
> **Not yet verified on staging:** This applies to every step here that needs a signed-in account or a live ConnectKey connection, including setup, workspace consent, tool discovery, calls, and disconnecting or restoring access. No tool is confirmed available in this client.
>
> **Untested (steps 2 to 4 and any `/mcp` connection).** Sign-in, workspace authorization, tool listing and tool calls require sign-in and a serving `/mcp` endpoint and have not been run in OpenClaw Gateway. This page does not say OpenClaw is supported or that `/mcp` accepts connections today.

```text Copy the MCP URL for OpenClaw Gateway theme={null}
https://mcp.connectkey.ai/mcp
```

## Prerequisites

* OpenClaw Gateway installed and running.
* A ConnectKey account.

## Steps

1. OpenClaw's documented CLI command (not run in a real client): run `openclaw mcp add connectkey --url https://mcp.connectkey.ai/mcp --transport streamable-http --auth oauth --no-probe`. OpenClaw documents `--auth oauth` for HTTP servers that use `openclaw mcp login`, and `--no-probe` because `add` refuses to probe while the Gateway is running.
2. Or in OpenClaw's Control UI (documented at `/settings/mcp`, or Settings, MCP), under Configured servers select Add server, enter a unique name, pick Streamable HTTP, enter `https://mcp.connectkey.ai/mcp` and select Add server, then set `auth: "oauth"` in the scoped `mcp` config editor and select Save & Publish (administrators can also add a server from a chat composer via `+`, Plugins, Add MCP server).
3. Untested (requires sign-in and a serving `/mcp` endpoint): run `openclaw mcp login connectkey`. OpenClaw documents `login` for HTTP servers configured with `auth: "oauth"` while the Gateway runs, then sign in to ConnectKey, pick a workspace and allow access.

## What to check

* While the Gateway is running, OpenClaw documents `openclaw mcp status --verbose` and `openclaw mcp doctor connectkey` (without `--probe`) for config and authorization checks without opening a live connection.
* Untested (requires stopping the Gateway and a serving `/mcp` endpoint): OpenClaw documents `openclaw mcp doctor connectkey --probe` and `openclaw mcp probe connectkey` as offline-only commands that open a live connection and list capabilities. Saving a definition or running a probe is not a tested ConnectKey result.

## If it fails

* OpenClaw documents retries with backoff and a server unavailable notice when it cannot start a server; native OAuth authorization failures wait for a credential change, config update or explicit MCP reload rather than a timer.
* `openclaw mcp status --verbose` and `openclaw mcp doctor connectkey` show authorization status and sign-in instructions.
* Probed 2026-11-25: on the staging MCP host, `/healthz` and `/readyz` returned 200 while `/mcp`, `/.well-known/oauth-protected-resource`, and `/.well-known/oauth-authorization-server` returned 404, and the production MCP host did not resolve, so connection attempts fail until `/mcp` serves.

## Where does OpenClaw describe remote server connections?

OpenClaw documents the MCP section of Settings in the Gateway Control UI and an equivalent CLI option. Both describe a server URL with Streamable HTTP. ConnectKey has not been tested through either interface.

## Which OpenClaw setting holds native MCP server entries?

OpenClaw names mcp.servers as its native configuration key. A server entry belongs to the Gateway configuration; a message describing that server in chat is not a substitute for the entry.

## Does a Gateway server entry mean every OpenClaw session can use it?

Not necessarily. Gateway configuration and enablement in a particular session are separate checks. No OpenClaw session has been verified with ConnectKey.

## Does OpenClaw Gateway need to be running for CLI sign-in?

OpenClaw documents its MCP login command for use while the Gateway is running. A saved server entry on its own does not sign anyone in.

## Where can an OpenClaw user receive a sign-in link?

OpenClaw says a direct chat can present the sign-in link. The link is part of authentication, not a link that installs the server.

## Will an OpenClaw chat resume its request as soon as I approve access?

OpenClaw documents a follow-up chat turn after approval. Browser approval and the next turn in the conversation are separate events.

## Evidence

* Status: documented
* Vendor documentation retrieved: 2026-11-25
* Real-client result: None recorded for OpenClaw Gateway or CLI. OpenClaw's public MCP documentation (retrieved 2026-11-25) describes the commands, Control UI paths, OAuth flow, and offline-only probe constraints; unauthenticated probes on 2026-11-25 only checked HTTP responses (/healthz and /readyz returned 200 while /mcp, /.well-known/oauth-protected-resource, and /.well-known/oauth-authorization-server returned 404 on staging) and hostname resolution (production MCP host did not resolve). No ConnectKey build has been tried in OpenClaw, so adding the server, OAuth sign-in, probing, listing or calling tools, and revoking access remain untested.
* [OpenClaw: Connect MCP servers](https://docs.openclaw.ai/tools/mcp)
* [OpenClaw: Manage saved MCP servers](https://docs.openclaw.ai/cli/mcp/registry)
* [OpenClaw: Transports and OAuth](https://docs.openclaw.ai/cli/mcp/transports)
* [OpenClaw: MCP in the Control UI](https://docs.openclaw.ai/cli/mcp/control-ui)


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