# Connect Codex to Harbor

> Add your Harbor workspace as a remote MCP server in Codex, sign in, and make a first tool call.

Connect Codex to your Harbor workspace to use the apps and tools available to you or build software that keeps running after you close Codex. You need a Harbor workspace and a current version of the Codex CLI.

## Add the server

Copy the MCP URL from your workspace's AI tools page. Replace `YOUR_MCP_URL` below with that full URL, including `/mcp`.

```sh
codex mcp add harbor --url YOUR_MCP_URL
```

Complete sign-in if a browser page opens. If it doesn't, run `codex mcp login harbor`. In an interactive session, `/mcp` lists the connected MCP servers.

## Confirm the connection

Ask Codex: `Call Harbor's whoami tool and tell me who I'm signed in as.` Check that it returns your identity. If Harbor's tools don't appear, check the URL and login, then open a new Codex session.

Next: [Deploy your first Harbor app](/docs/quickstart.md). See [OpenAI's Codex MCP documentation](https://developers.openai.com/codex/mcp) for client configuration options.
