[architecture]
Analyzes the loaded workspace at the project-reference level. Returns direct edges, roots/leaves, transitive reachability, and cycle groups for architecture review.
Try this tool in Playground.
| Name | Type | Required | Description |
|---|---|---|---|
| projectName | string | No | Optional project name to focus reachability details. |
| includeTransitive | boolean | No | Include transitive dependency/dependent counts and focused reachability lists. Default is true. |
| includeCycles | boolean | No | Include detected cycle groups. Default is true. |
| includeEdges | boolean | No | Include the explicit direct edge list. Default is true. |
| pathStyle | string | No | Path style: 'absolute' (default) or 'relative' (to solution root). |
Inspect the full project graph
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_project_graph",
"arguments": {}
}
}{
"success": true,
"data": {
"projectCount": 3,
"edgeCount": 2,
"roots": [
"MyProject.Web"
],
"leaves": [
"MyProject.Data"
],
"edges": [
{
"fromProject": "MyProject.Web",
"toProject": "MyProject.Core"
},
{
"fromProject": "MyProject.Core",
"toProject": "MyProject.Data"
}
],
"cycleGroups": [],
"focus": {
"projectName": "MyProject.Web",
"transitiveDependencies": [
"MyProject.Core",
"MyProject.Data"
],
"transitiveDependents": []
}
},
"error": null
}Focus on one project
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_project_graph",
"arguments": {
"projectName": "MyProject.Web"
}
}
}{
"success": true,
"data": {
"projectCount": 3,
"edgeCount": 2,
"roots": [
"MyProject.Web"
],
"leaves": [
"MyProject.Data"
],
"edges": [
{
"fromProject": "MyProject.Web",
"toProject": "MyProject.Core"
},
{
"fromProject": "MyProject.Core",
"toProject": "MyProject.Data"
}
],
"cycleGroups": [],
"focus": {
"projectName": "MyProject.Web",
"transitiveDependencies": [
"MyProject.Core",
"MyProject.Data"
],
"transitiveDependents": []
}
},
"error": null
}Returns project nodes, direct edges, roots/leaves, cycles, and optional focused reachability data