# Using AI agents with EGYM documentation

This guide explains how to use AI coding agents with the EGYM API documentation.

Beta
AI-agent support for EGYM documentation is currently in beta and under active development. The MCP tools and recommended workflows may change as we improve the experience.

## Connect your AI agent

Use the button below to connect a supported MCP client to the EGYM documentation MCP server.

Or configure the connection manually.

Use this MCP server URL:

```text
https://developer.egym.com/mcp
```

For Codex, add the MCP server with:

```bash
codex mcp add egym-api-docs --url https://developer.egym.com/mcp
```

Or add it manually to `~/.codex/config.toml`:

```toml
[mcp_servers.egym-api-docs]
url = "https://developer.egym.com/mcp"
enabled = true
```

After connecting your AI agent to the EGYM documentation MCP (Model Context Protocol) server, ask it to load the agent instructions before starting an implementation.

```text
Search the EGYM documentation for "EGYM AI agent instructions" and follow that instruction page before implementing the integration.
```

The instruction page helps your agent find the right API, load only the relevant documentation sections, and retrieve endpoint details from the API reference.