# StateLode MCP server

> Connects stdio-first MCP clients to StateLode's hosted HTTP endpoint to provide a shared task layer for AI coding agents.

- Repository: https://github.com/Statelode/statelode-bridge
- Page: https://hostedmcp.org/servers/statelode/statelode-bridge
- Transport: stdio, remote
- Stars: 0
- License: Apache-2.0
- Latest version: 0.1.9

## Install

### Claude Code

```sh
claude mcp add --env 'STATELODE_TOKEN=<YOUR_STATELODE_TOKEN>' statelode-bridge -- npx -y statelode-bridge
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "statelode-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "statelode-bridge"
      ],
      "env": {
        "STATELODE_TOKEN": "<YOUR_STATELODE_TOKEN>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "statelode-bridge": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "statelode-bridge"
      ],
      "env": {
        "STATELODE_TOKEN": "<YOUR_STATELODE_TOKEN>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"statelode-bridge","type":"stdio","command":"npx","args":["-y","statelode-bridge"],"env":{"STATELODE_TOKEN":"<YOUR_STATELODE_TOKEN>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "statelode-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "statelode-bridge"
      ],
      "env": {
        "STATELODE_TOKEN": "<YOUR_STATELODE_TOKEN>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add statelode-bridge --env 'STATELODE_TOKEN=<YOUR_STATELODE_TOKEN>' -- npx -y statelode-bridge
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.statelode-bridge]
command = "npx"
args = ["-y", "statelode-bridge"]

[mcp_servers.statelode-bridge.env]
STATELODE_TOKEN = "<YOUR_STATELODE_TOKEN>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'STATELODE_TOKEN=<YOUR_STATELODE_TOKEN>' statelode-bridge npx -- -y statelode-bridge
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "statelode-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "statelode-bridge"
      ],
      "env": {
        "STATELODE_TOKEN": "<YOUR_STATELODE_TOKEN>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `STATELODE_TOKEN` | yes | yes | StateLode workspace bearer token. Mint at app.statelode.dev. |

## FAQ

### How do I set up StateLode for my IDEs?

You can run the setup command once per machine to install a global StateLode protocol into your installed IDE's global instruction files.

### How can I pin a specific repository to a StateLode project?

Use the init command with a project slug to write a statelode.json marker and a StateLode block into your IDE's repo guide files.

### Where should I store my StateLode token?

You should keep your token in the STATELODE_TOKEN environment variable or the MCP server config, but never in statelode.json or guide files.
