# Connecting Agents

> Build and run pages with Claude Code or Codex from the editor chat, or with any MCP client from your IDE.

Glider documentation · Glider Agentic · Web page: https://cgglider.com/docs/agentic-connect/

Sections of this page: [From your IDE](https://cgglider.com/docs/agentic-connect.md) · [Editor chat](https://cgglider.com/docs/agentic-connect/chat.md) · [Artifact mode](https://cgglider.com/docs/agentic-connect/artifact.md)

One MCP server for every agent.

Glider serves a single MCP server at /api/mcp on the same port as the editor. Any MCP client can use it; Glider ships connect snippets and an editor-chat runner for Claude Code, Cursor and Codex.

## Claude Code

```bash
claude mcp add --transport http glider http://localhost:4004/api/mcp
```

## Cursor

```json
{
  "mcpServers": {
    "glider": { "url": "http://localhost:4004/api/mcp" }
  }
}
```

## Codex

```bash
codex mcp add glider --url http://localhost:4004/api/mcp
```

Put the Cursor snippet in .cursor/mcp.json. The editor's Connect agents button shows each snippet with this machine's address.

> **Note:** Tell the agent which page to work on: every tool call carries the page id, shown in the editor's address bar.
