@giauphan/codeatlas-mcp 1.2.3 β 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -46
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,48 +1,36 @@
|
|
|
1
1
|
# πΊοΈ CodeAtlas MCP Server
|
|
2
2
|
|
|
3
|
-
**MCP server for [CodeAtlas](https://github.com/giauphan/CodeAtlas) β Expose code analysis data to AI assistants**
|
|
4
|
-
|
|
5
3
|
[](https://www.npmjs.com/package/@giauphan/codeatlas-mcp)
|
|
6
4
|

|
|
7
5
|

|
|
6
|
+

|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
A standalone [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server that reads CodeAtlas analysis data and exposes it to AI assistants like **Gemini, Claude, Cursor**, etc.
|
|
8
|
+
> A standalone [MCP](https://modelcontextprotocol.io/) server that exposes [CodeAtlas](https://github.com/giauphan/CodeAtlas) analysis data to AI assistants β **Gemini, Claude, Cursor, Windsurf**, and more.
|
|
12
9
|
|
|
13
|
-
|
|
10
|
+
---
|
|
14
11
|
|
|
15
|
-
|
|
16
|
-
|------|-------------|
|
|
17
|
-
| `list_projects` | List all projects analyzed by CodeAtlas |
|
|
18
|
-
| `get_project_structure` | Get modules, classes, functions, variables |
|
|
19
|
-
| `get_dependencies` | Get import/call/containment relationships |
|
|
20
|
-
| `get_insights` | Get AI-generated code insights |
|
|
21
|
-
| `search_entities` | Search for functions, classes by name |
|
|
22
|
-
| `get_file_entities` | Get all entities in a specific file |
|
|
12
|
+
## β‘ Quick Start
|
|
23
13
|
|
|
24
|
-
|
|
14
|
+
### 1. Analyze your project
|
|
25
15
|
|
|
26
|
-
|
|
27
|
-
2. Run **CodeAtlas: Analyze Project** in VS Code to generate `.codeatlas/analysis.json`
|
|
16
|
+
Install the [CodeAtlas VS Code extension](https://github.com/giauphan/CodeAtlas), then run:
|
|
28
17
|
|
|
29
|
-
## Installation
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
npm install -g @giauphan/codeatlas-mcp
|
|
33
18
|
```
|
|
34
|
-
|
|
35
|
-
Or use directly with `npx` (no install needed):
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
npx @giauphan/codeatlas-mcp
|
|
19
|
+
Ctrl+Shift+P β CodeAtlas: Analyze Project
|
|
39
20
|
```
|
|
40
21
|
|
|
41
|
-
|
|
22
|
+
This generates `.codeatlas/analysis.json` in your project root.
|
|
23
|
+
|
|
24
|
+
### 2. Add MCP config
|
|
42
25
|
|
|
43
|
-
|
|
26
|
+
Copy the JSON block below into **one** of these files depending on your AI assistant:
|
|
44
27
|
|
|
45
|
-
|
|
28
|
+
| AI Assistant | Config file |
|
|
29
|
+
|---|---|
|
|
30
|
+
| **Gemini** | `.gemini/settings.json` |
|
|
31
|
+
| **Claude Desktop** | `claude_desktop_config.json` |
|
|
32
|
+
| **Cursor** | `.cursor/mcp.json` |
|
|
33
|
+
| **Windsurf** | `.windsurf/mcp.json` |
|
|
46
34
|
|
|
47
35
|
```json
|
|
48
36
|
{
|
|
@@ -55,41 +43,56 @@ Add to your AI assistant's MCP config:
|
|
|
55
43
|
}
|
|
56
44
|
```
|
|
57
45
|
|
|
58
|
-
|
|
46
|
+
> **That's it!** Your AI assistant can now query your codebase structure, dependencies, and insights.
|
|
59
47
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## π οΈ Available Tools
|
|
51
|
+
|
|
52
|
+
| Tool | Description |
|
|
53
|
+
|------|-------------|
|
|
54
|
+
| `list_projects` | List all analyzed projects (auto-discovers `~/`) |
|
|
55
|
+
| `get_project_structure` | Get modules, classes, functions, variables |
|
|
56
|
+
| `get_dependencies` | Get import / call / containment relationships |
|
|
57
|
+
| `get_insights` | Get AI-generated code quality insights |
|
|
58
|
+
| `search_entities` | Search functions, classes by name (fuzzy match) |
|
|
59
|
+
| `get_file_entities` | Get all entities defined in a specific file |
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## π¦ Alternative: Global Install
|
|
64
|
+
|
|
65
|
+
If you prefer installing globally instead of using `npx`:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
npm install -g @giauphan/codeatlas-mcp
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
Then update your MCP config to:
|
|
72
72
|
|
|
73
73
|
```json
|
|
74
74
|
{
|
|
75
75
|
"mcpServers": {
|
|
76
76
|
"codeatlas": {
|
|
77
|
-
"command": "
|
|
78
|
-
"args": ["-y", "@giauphan/codeatlas-mcp"]
|
|
77
|
+
"command": "codeatlas-mcp"
|
|
79
78
|
}
|
|
80
79
|
}
|
|
81
80
|
}
|
|
82
81
|
```
|
|
83
82
|
|
|
84
|
-
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## π§ Environment Variables
|
|
85
86
|
|
|
86
87
|
| Variable | Description |
|
|
87
88
|
|----------|-------------|
|
|
88
|
-
| `CODEATLAS_PROJECT_DIR` |
|
|
89
|
+
| `CODEATLAS_PROJECT_DIR` | Force a specific project directory |
|
|
90
|
+
|
|
91
|
+
> By default, the server **auto-discovers** all projects with `.codeatlas/analysis.json` under your home directory.
|
|
89
92
|
|
|
90
|
-
|
|
93
|
+
---
|
|
91
94
|
|
|
92
|
-
## Development
|
|
95
|
+
## π§βπ» Development
|
|
93
96
|
|
|
94
97
|
```bash
|
|
95
98
|
git clone https://github.com/giauphan/codeatlas-mcp.git
|
package/package.json
CHANGED