MCP ServerResources
Database Schema
Knowledge graph structure reference
View the structure of the knowledge graph before writing Cypher queries.
URI
db://schema/{repository}Node Types
CodeSymbol
Functions, classes, methods, variables, interfaces, enums, and more.
| Property | Type | Description |
|---|---|---|
name | STRING | Symbol name |
symbol_type | STRING | Symbol kind (see table below) |
file_path | STRING | File location |
line_number | INT64 | Starting line |
content | STRING | Full symbol body |
signature | STRING | Symbol signature |
Symbol Types
TypeScript:
| Kind | Description |
|---|---|
Class | ES6 class definition |
Method | Class method |
Function | Standalone function |
Attribute | Class property |
Interface | TypeScript interface |
TypeAlias | Type alias (type X = ...) |
Enum | Enum declaration |
Constant | Const export |
Export | Re-export statement |
Python:
| Kind | Description |
|---|---|
Class | Class definition |
Method | Class method |
Function | Standalone function |
Attribute | Class attribute |
Enum | Enum subclass |
Constant | Module-level UPPER_CASE constant |
TypeAlias | Type alias assignment |
File
Source files in the repository.
| Property | Type |
|---|---|
path | STRING |
extension | STRING |
Community
Code communities detected by modularity analysis.
| Property | Type | Description |
|---|---|---|
label | STRING | Community name |
cohesion | DOUBLE | 0-1, higher is more cohesive |
symbol_count | INT64 | Number of symbols |
Process
Execution flows through the codebase.
| Property | Type | Description |
|---|---|---|
label | STRING | Process name |
process_type | STRING | intra_community or cross_community |
step_count | INT64 | Number of steps |
Relationships
| Relationship | From | To | Description |
|---|---|---|---|
CALLS | CodeSymbol | CodeSymbol | Function calls |
CONTAINED_BY | CodeSymbol | File | Symbol in file |
MEMBER_OF | CodeSymbol | Community | Symbol belongs to community |
STEP_IN_PROCESS | CodeSymbol | Process | Step in execution flow |
Example Query
// Find all functions in the Authentication community
MATCH (s:CodeSymbol)-[:MEMBER_OF]->(c:Community)
WHERE c.label = "Authentication"
AND s.symbol_type = "Function"
RETURN s.name, s.file_pathRelated
- Cypher Query Tool - Execute queries
- Codebase Map - Explore communities