contentrain_scan
Scan project source code to detect content strings and component dependencies. Use graph mode for relationships, candidates for paginated string extraction, or summary for overview statistics.
Instructions
Scan project source code for content strings. Three modes: "graph" builds import/component graph for project intelligence, "candidates" extracts string literals with pre-filtering and pagination, "summary" provides quick overview stats. Read-only — no changes to disk or git. MCP finds strings deterministically; the agent decides what is content. Recommended workflow: start with "summary" or "graph" for orientation, then paginate through "candidates" to evaluate strings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Scan mode. Default: candidates | |
| paths | No | Directories to scan (relative to project root). Default: auto-detect | |
| include | No | File extensions to include. Default: .tsx, .jsx, .vue, .ts, .js, .mjs, .astro, .svelte | |
| exclude | No | Additional directory names to exclude | |
| limit | No | Candidates mode: batch size. Default: 50 | |
| offset | No | Candidates mode: pagination offset. Default: 0 | |
| min_length | No | Candidates mode: minimum string length. Default: 2 | |
| max_length | No | Candidates mode: maximum string length. Default: 500 |