# CodeDiag MCP server

> Scans Node.js projects for API authentication gaps, security vulnerabilities, dependency issues, and testing coverage.

- Repository: https://github.com/sabahattink/codediag
- Page: https://hostedmcp.org/servers/sabahattink/codediag
- Transport: stdio
- Stars: 2
- License: MIT
- Latest version: 0.13.0

## Install

### Claude Code

```sh
claude mcp add codediag -- npx -y @sabahattink/codediag
```

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

```json
{
  "mcpServers": {
    "codediag": {
      "command": "npx",
      "args": [
        "-y",
        "@sabahattink/codediag"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "codediag": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@sabahattink/codediag"
      ]
    }
  }
}
```

### VS Code CLI

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

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

```json
{
  "mcpServers": {
    "codediag": {
      "command": "npx",
      "args": [
        "-y",
        "@sabahattink/codediag"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add codediag -- npx -y @sabahattink/codediag
```

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

```toml
[mcp_servers.codediag]
command = "npx"
args = ["-y", "@sabahattink/codediag"]
```

### Gemini CLI

```sh
gemini mcp add -s user codediag npx -- -y @sabahattink/codediag
```

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

```json
{
  "mcpServers": {
    "codediag": {
      "command": "npx",
      "args": [
        "-y",
        "@sabahattink/codediag"
      ]
    }
  }
}
```

## FAQ

### Does CodeDiag require an account or internet connection?

No, it requires no account or server, and you can run it fully offline using the --no-audit flag.

### Which web frameworks does it support for API health checks?

It supports a wide range of frameworks including NestJS, Express, Fastify, Hono, Elysia, Next.js, SvelteKit, React Router, and tRPC.

### How is the project health score calculated?

The score is a weighted average of five analyzers: Security (30%), API Health (25%), Dependencies (20%), Testing (15%), and Structure (10%).
