# StateLode

This MCP server for Claude Code and Codex connects agents to StateLode’s shared task layer. Agents can search tasks, fetch their details and make changes.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: Statelode
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Statelode/statelode-bridge
- Updated: 2026-07-19
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/statelode

## What it does

StateLode gives agents a shared MCP interface for working with tasks. It exposes three tools: `tasksearch` to find tasks, `taskget` to retrieve one, and `task_mutate` to change it.

For clients that communicate over stdio, the `statelode-bridge` package forwards requests to StateLode’s hosted HTTP MCP endpoint and relays notifications back to the agent. A StateLode token is required; pass it through `STATELODE_TOKEN` or the MCP configuration. Keep it out of `statelode.json` and IDE instruction files.

The `setup` command adds shared rules to global instruction files for installed IDEs. Run `init <project-slug>` to link a repository to a StateLode project and update its agent instruction files. For Cursor and VS Code, `setup` prints a rules block to add in the app settings.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://api.statelode.dev/mcp`
- Environment variables: `STATELODE_TOKEN` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http statelode https://api.statelode.dev/mcp
```

2. **Platform CLI**
```bash
claude mcp add --env STATELODE_TOKEN=<STATELODE_TOKEN> --transport stdio statelode -- npx -y statelode-bridge
```
Replace <…> with your own values

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add statelode --url https://api.statelode.dev/mcp
```

2. **Platform CLI**
```bash
codex mcp add statelode --env STATELODE_TOKEN=<STATELODE_TOKEN> -- npx -y statelode-bridge
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "statelode": {
            "url": "https://api.statelode.dev/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "statelode": {
            "command": "npx",
            "args": [
                "-y",
                "statelode-bridge"
            ],
            "env": {
                "STATELODE_TOKEN": "<STATELODE_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "statelode": {
            "type": "http",
            "url": "https://api.statelode.dev/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "statelode": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "statelode-bridge"
            ],
            "env": {
                "STATELODE_TOKEN": "<STATELODE_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http statelode https://api.statelode.dev/mcp
```

2. **Platform CLI**
```bash
gemini mcp add -e STATELODE_TOKEN=<STATELODE_TOKEN> statelode npx -y statelode-bridge
```
Replace <…> with your own values

## When to use it
- search the shared StateLode task list
- fetch details for a selected task
- change a task through an MCP tool
- link a repository to a StateLode project

## Example prompts
- Find the StateLode task about authentication.
- Fetch the details for the task named “Update API”.
- Link this repository to the `my-project` project.

## Similar
- [Context7](https://affpapa.org/en/nevibecode/mcp/context7.md) — MCP server · 5563 installs
- [Search Google Flights](https://affpapa.org/en/nevibecode/mcp/search-google-flights.md) — MCP server · 2595 installs
- [Math-MCP](https://affpapa.org/en/nevibecode/mcp/math-mcp.md) — MCP server · 5958 installs
- [pipeworx gateway](https://affpapa.org/en/nevibecode/mcp/pipeworx-gateway.md) — MCP server · 419019 installs
- [SparkForge](https://affpapa.org/en/nevibecode/mcp/sparkforge.md) — MCP server · 219896 installs
- [OpenWebSearch](https://affpapa.org/en/nevibecode/mcp/openwebsearch.md) — MCP server · 494 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
