# Glasir MCP server

> Builds a local, queryable graph of codebase definitions, references, and dependencies to provide structural intelligence to AI coding assistants.

- Repository: https://github.com/Attackwave/glasir
- Page: https://hostedmcp.org/servers/attackwave/glasir
- Transport: stdio
- Stars: 0
- License: Apache-2.0
- Latest version: 0.13.2

## Install

### Claude Code

```sh
claude mcp add glasir -- docker run -i --rm ghcr.io/attackwave/glasir:v0.13.2
```

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

```json
{
  "mcpServers": {
    "glasir": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/attackwave/glasir:v0.13.2"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "glasir": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/attackwave/glasir:v0.13.2"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"glasir","type":"stdio","command":"docker","args":["run","-i","--rm","ghcr.io/attackwave/glasir:v0.13.2"]}'
```

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

```json
{
  "mcpServers": {
    "glasir": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/attackwave/glasir:v0.13.2"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add glasir -- docker run -i --rm ghcr.io/attackwave/glasir:v0.13.2
```

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

```toml
[mcp_servers.glasir]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/attackwave/glasir:v0.13.2"]
```

### Gemini CLI

```sh
gemini mcp add -s user glasir docker -- run -i --rm ghcr.io/attackwave/glasir:v0.13.2
```

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

```json
{
  "mcpServers": {
    "glasir": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/attackwave/glasir:v0.13.2"
      ]
    }
  }
}
```

## FAQ

### How does Glasir handle code changes?

The server runs with a watch mode to follow your edits and uses git hooks to keep the graph current after pulls, checkouts, or rebases.

### What kind of information can I query from the graph?

You can query for symbol connections, impact analysis, dependency cycles, and shortest paths between symbols.

### Can I exclude specific files from being indexed?

Yes, Glasir respects .gitignore files and allows for a custom .glasirignore file to further refine what is indexed.
