# Connecting an AI helper

An **AI helper** (Claude Code, Codex, Cursor, or anything that speaks the Model Context Protocol) can build your
community with you: ask it for a look, a page, a widget or a script, and it makes them in your community, through the
same checks as your own editors.

## What a key opens

A key opens one community's look and code: its design, page, shelves, scripts and data. Never money, members, ranks, or
chat as you. A key:

- is made by an officer, up to 5 a community;
- stops working when that officer steps down or leaves, and after 180 days;
- is a secret, like a password. Delete a key you don't use any more.

## The quick way

1. Open the community's menu › **Code and AI helpers…** › **AI helpers**.
2. Name the key and press **Make a key and copy a prompt**.
3. Paste the prompt into Claude Code, Codex or Cursor. It connects itself: no settings to edit.

The helper's server is named `gc-<your community's name>`, so several communities can be connected at once.

An empty **Store** channel shows its officers **Connect an AI helper**, the same steps.

## By hand

The address is your Games Communities address followed by `/v1/mcp` (for example `https://gamescommunities.com/v1/mcp`),
with the key as a Bearer token.

**Claude Code**:

```sh
claude mcp add --scope user --transport http gc-my-store https://gamescommunities.com/v1/mcp --header "Authorization: Bearer <your key>"
```

**Codex** (`~/.codex/config.toml`):

```toml
[mcp_servers.gc-my-store]
url = "https://gamescommunities.com/v1/mcp"
http_headers = { Authorization = "Bearer <your key>" }
```

**Cursor and others** (`~/.cursor/mcp.json` or their MCP settings):

```json
{ "mcpServers": { "gc-my-store": { "url": "https://gamescommunities.com/v1/mcp", "headers": { "Authorization": "Bearer <your key>" } } } }
```

## The AI helper on your PC

In the Windows app, Code… › **AI helper** is a chat with a model running on your own PC, no key to copy and no account
anywhere else. Under **Runs on**, **GC's model** comes first: the app checks your graphics card and memory and picks the
best model that fits (pick another from the list). The first time you open the AI helper, that model starts downloading
by itself (unless it's too big for your PC or one is there already); **Download** does it again later. It asks where to
keep it the first time (models are 3 to 23 GB: pick a drive with room), goes on where it stopped if cancelled, and checks every file before using it; **Delete…**
removes it again. The model starts with your first ask (a big one takes a minute) and stops 10 minutes after its last
answer. Nothing you say leaves your PC.

> [!TIP]
> Already use [Ollama](https://ollama.com) or [LM Studio](https://lmstudio.ai)? Get a model in it that can call tools,
> then pick it under **Runs on** instead (another server on this PC works too: its address ending in `/v1`, for example
> llama.cpp's `llama-server` on `http://127.0.0.1:8080/v1`). Set **Context** to what the server gives the model, and tick
> **It sees pictures** only for a model that reads pictures. The app remembers the choice on this PC.

Tell it what you want; each step it takes shows as one line (click to read it). **Stop** ends its answer, **New chat**
starts afresh. It publishes only after it looked at its draft; undo any change from Design… › **History…**. Closed, the
chat keeps going at the window's corner. A small model can't do as much as Claude Code or Codex: for big changes, use the
terminal.

**Share this chat to help train Games Communities' helper** (under the chat, off in each new chat; officers 18 or over):
ticked, the chat goes to Games Communities after each answer, to train its own model. Keys are taken out on your PC,
your community's members' names on the service, and pictures are never sent. Untick it to withdraw that chat, or
**Withdraw all** for every chat you shared: they're deleted at once. See the [privacy policy](/privacy).

## The terminal

In the Windows app, Code… › **Terminal** opens PowerShell in a folder that already holds the key's settings
(`.mcp.json`) and a `CLAUDE.md` about your community. Press **Start Claude** or **Start Codex**.

## Giving the helper this manual

The helper already has `reference(topic)` for the exact rules. For the bigger picture, point it to this manual:

- `reference("manual")` lists the manual's pages; `reference("manual/<page>")` gives one (for example
  `reference("manual/stores/design")`); `reference("manual", "<words>")` finds lines across all of them.
- `https://gamescommunities.com/docs/llms.txt` lists every page as Markdown; `llms-full.txt` is all of it in one file
  (`games-communities-docs.md` to download). Any page's address ending in `.md` instead of `.html` is that page as Markdown.
- Every page has **View as Markdown** at the top.

Next: [what the helper can do](tools.md), and [things to ask it](recipes.md).
