# AgentSensor MCP server

> Provides AI coding agents with real-time access to server and browser runtime errors, mapped to exact source files and line numbers.

- Repository: https://github.com/arif-js/agentsensor
- Page: https://hostedmcp.org/servers/arif-js/agentsensor
- Transport: stdio
- Stars: 0
- License: MIT

## Install

### Claude Code

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

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

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

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

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

### VS Code CLI

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

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

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

### Codex

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

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

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

### Gemini CLI

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

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

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

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `AUTO_TRIGGER` | no | no |  |

## Tools (4)

- `get_runtime_errors`
- `get_error_detail`
- `check_fix`
- `resolve_error`

## FAQ

### Does it require code changes to work?

No, it works with zero code changes by wrapping your existing dev script.

### Which runtimes are supported?

It currently supports the Node.js, JavaScript, and TypeScript ecosystem, including frameworks like Next.js, Vite, and Remix.

### Does it support Python or Go?

No, non-Node runtimes like Python, Go, and Rust are not supported yet, though they are planned for future releases.

### Is my data sent to the cloud?

No, the tool is 100% local with no accounts, no cloud, and no telemetry.
