MCP Tools
ArchGraph exposes 9 tools via the Model Context Protocol.
search
Search for code nodes by name, type, or language.
| Parameter | Type | Description |
|---|---|---|
name | string | Name pattern (supports wildcards: auth*) |
type | string | Node type: function, class, module, file |
language | string | Filter by language: python, typescript, etc. |
repo | string | Repository name |
limit | number | Max results (default 20) |
stats
Get graph statistics for a repository.
| Parameter | Type | Description |
|---|---|---|
repo | string | Repository name |
impact
Analyze the blast radius of a code node -- trace upstream callers and downstream callees.
| Parameter | Type | Description |
|---|---|---|
node_id | string | Node identifier (e.g. func:src/auth.py:validate:42) |
direction | string | upstream, downstream, or both |
depth | number | Max traversal depth (default 3) |
context
Get a node with its surrounding context -- neighbors, relationships, and properties.
| Parameter | Type | Description |
|---|---|---|
node_id | string | Node identifier |
source
Retrieve the source code for a specific node.
| Parameter | Type | Description |
|---|---|---|
node_id | string | Node identifier |
query
Execute a raw Cypher query (read-only).
| Parameter | Type | Description |
|---|---|---|
cypher | string | Cypher query (MATCH/RETURN only, no writes) |
search_calls
Find callers or callees of a function.
| Parameter | Type | Description |
|---|---|---|
name | string | Function name |
direction | string | callers or callees |
detect_changes
Detect recently changed code and its impact.
| Parameter | Type | Description |
|---|---|---|
repo | string | Repository name |
since | string | Time period (e.g. 7d, 30d) |
find_vulnerabilities
Scan for security vulnerabilities -- input sources, dangerous sinks, taint paths.
| Parameter | Type | Description |
|---|---|---|
repo | string | Repository name |