# Scanner Mcp

> MCP server that scans C++ repositories. File listing, AST code extraction, dependency graph, and importance ranking for AI coding agents.

- **Type:** MCP server
- **Install:** `agentstack add mcp-chrisipanaque-scanner-mcp`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [chrisipanaque](https://agentstack.voostack.com/s/chrisipanaque)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [chrisipanaque](https://github.com/chrisipanaque)
- **Source:** https://github.com/chrisipanaque/scanner-mcp

## Install

```sh
agentstack add mcp-chrisipanaque-scanner-mcp
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

scanner-mcp

  An MCP server that scans C++ repositories and exposes 4 tools for AI agents

  
  
  
  

---

## Features

- **scan_files** — list all files (path, extension, size) via lightweight filesystem walk
- **scan_code** — extract includes, classes, structs, functions, namespaces via tree-sitter AST
- **get_file_connections** — forward/reverse dependency graph between files
- **get_file_rankings** — importance scoring by deps, symbols, and include frequency
- **Shared cache** — first call to any tool parses the repo; subsequent calls return instantly

## Setup for agents

Clone and build (requires CMake ≥ 3.14 — install from https://cmake.org/download/):

```bash
git clone 
cd scanner-mcp
cmake -B build && cmake --build build
```

Then add to `opencode.json`:

```json
{
  "mcp": {
    "scanner-mcp": {
      "type": "local",
      "command": ["/absolute/path/to/scanner-mcp/build/scanner-mcp"],
      "enabled": true
    }
  }
}
```

## Tools

| Tool | Arguments | Returns |
|---|---|---|
| `scan_files` | `path` (req) | `{ files: [{ path, extension, size }] }` |
| `scan_code` | `path` (req), `refresh` | `{ code: [{ file, includes, classes, structs, functions, namespaces }] }` |
| `get_file_connections` | `path` (req), `refresh` | `{ file_connections: { forward, reverse } }` |
| `get_file_rankings` | `path` (req), `refresh` | `{ file_rankings: [{ path, score, incoming_deps, outgoing_deps, symbols, include_freq }] }` |

`scan_files` walks the filesystem only — no parsing, no cache, always fast.
`scan_code`, `get_file_connections`, and `get_file_rankings` share a cache keyed by absolute path. The first call parses the repo once; subsequent calls return instantly. Set `refresh: true` to bust the cache when files change.

## Requirements

- **CMake** ≥ 3.14
- **C++17** compiler (GCC 9+, Clang 10+, Apple Clang 14+)
- **Linux** (x86_64)

## Architecture

```
FILE DISCOVERY      → walk, filter, metadata                   scan_files
CODE EXTRACTION      → includes, symbols via tree-sitter AST   scan_code
DEPENDENCY ANALYSIS  → forward/reverse connections             get_file_connections
IMPORTANCE RANKING   → scoring heuristics                      get_file_rankings
```

## License

MIT

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [chrisipanaque](https://github.com/chrisipanaque)
- **Source:** [chrisipanaque/scanner-mcp](https://github.com/chrisipanaque/scanner-mcp)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-chrisipanaque-scanner-mcp
- Seller: https://agentstack.voostack.com/s/chrisipanaque
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
