# CodeOutline MCP server

> Enables AI agents to explore codebases through symbol extraction, call graphs, and incremental indexing via MCP or LSP.

- Repository: https://github.com/1dao/codeoutline
- Page: https://hostedmcp.org/servers/1dao/codeoutline
- Transport: stdio
- Stars: 0
- License: BSD-2-Clause

## Install

### Claude Code

```sh
claude mcp add codeoutline -- npx -y codeoutline
```

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

```json
{
  "mcpServers": {
    "codeoutline": {
      "command": "npx",
      "args": [
        "-y",
        "codeoutline"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "codeoutline": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "codeoutline"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"codeoutline","type":"stdio","command":"npx","args":["-y","codeoutline"]}'
```

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

```json
{
  "mcpServers": {
    "codeoutline": {
      "command": "npx",
      "args": [
        "-y",
        "codeoutline"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add codeoutline -- npx -y codeoutline
```

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

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

### Gemini CLI

```sh
gemini mcp add -s user codeoutline npx -- -y codeoutline
```

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

```json
{
  "mcpServers": {
    "codeoutline": {
      "command": "npx",
      "args": [
        "-y",
        "codeoutline"
      ]
    }
  }
}
```

## FAQ

### How can I use CodeOutline with my AI coding agent?

You can use the MCP tool `codeoutline_explore` which returns symbols, line-numbered source, call paths, and callers/callees.

### Does CodeOutline require a Lua installation?

No, the npm package automatically downloads the runtime for your platform, so no compiler or Lua installation is needed.

### What is the benefit of using the shared HTTP service instead of stdio?

A stdio server starts a new process and builds a new in-memory index for every session, whereas one HTTP service serves all sessions from a single process and a single index.

### Can I use CodeOutline in my code editor?

Yes, it provides an LSP server for editors like VS Code, Cursor, or Zed to provide symbols, definitions, references, and more.
