# Connect GizStack over MCP

GizStack exposes a stateless Streamable HTTP MCP server at `https://gizstack.com/v1/mcp` with **20 curated tools**
covering multimodal generation, persistent Linux Computers, Drive files, and Agents — all billed to one prepaid
balance under one API key.

## 1-line setup (Claude Code)

Create a key on [API keys & MCP](/token), then run:

```sh
claude mcp add --transport http gizstack https://gizstack.com/v1/mcp \
  --header "Authorization: Bearer $GIZSTACK_API_KEY"
```

## Cursor / generic MCP JSON config

```json
{
  "mcpServers": {
    "gizstack": {
      "url": "https://gizstack.com/v1/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_GIZSTACK_API_KEY"
      }
    }
  }
}
```

You can also target a specific team workspace by adding `"X-GizStack-Team": "team-slug"` to `headers`. If omitted,
tools automatically default to your personal workspace.

## What the 20 tools do

| Group | Tools | Use case |
| --- | --- | --- |
| **Multimodal AI (7)** | `models`, `chat`, `generate`, `task`, `embeddings`, `rerank`, `usage` | Generate video, images, speech, audio, and LLM responses; check spendable balance |
| **Computers (7)** | `listComputers`, `newComputer`, `startComputer`, `stopComputer`, `runInComputer`, `browseInComputer`, `forkComputer` | Boot persistent Linux workspaces in ~0.1s, run shell/ffmpeg/tests, browse the web, fork ZFS state |
| **Drive (4)** | `driveList`, `driveRead`, `driveChange`, `driveSearch` | Inspect generated media in `Generations/`, write scripts, search workspace files |
| **Agents (2)** | `listAgents`, `talk` | Delegate multi-step tasks to your team's persistent Agents |

## Example end-to-end agent workflow

1. Call `generate` with a video model to render a 5-second clip into `Generations/`.
2. Call `newComputer` (boots a warm Linux machine in ~0.1s).
3. Call `runInComputer` to run `ffmpeg` on the generated clip, add subtitles, and save the finished export back into Drive.
4. Call `stopComputer` when finished — your Drive files stay preserved for the next run.

Need every console action (projects, deployments, databases, team administration)? Connect `https://gizstack.com/mcp`
with a session token from `/token`.
