@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.
Files changed (2) hide show
  1. package/README.md +49 -46
  2. 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
  [![npm version](https://img.shields.io/npm/v/@giauphan/codeatlas-mcp.svg)](https://www.npmjs.com/package/@giauphan/codeatlas-mcp)
6
4
  ![License](https://img.shields.io/badge/License-MIT-green.svg)
7
5
  ![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue?logo=typescript)
6
+ ![Node](https://img.shields.io/badge/Node-%3E%3D18-brightgreen?logo=node.js)
8
7
 
9
- ## What is this?
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
- ## Tools
10
+ ---
14
11
 
15
- | Tool | Description |
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
- ## Prerequisites
14
+ ### 1. Analyze your project
25
15
 
26
- 1. Install the [CodeAtlas VS Code extension](https://github.com/giauphan/CodeAtlas)
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
- ## Configuration
22
+ This generates `.codeatlas/analysis.json` in your project root.
23
+
24
+ ### 2. Add MCP config
42
25
 
43
- Add to your AI assistant's MCP config:
26
+ Copy the JSON block below into **one** of these files depending on your AI assistant:
44
27
 
45
- ### Gemini (`.gemini/settings.json`)
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
- ### Claude (`claude_desktop_config.json`)
46
+ > **That's it!** Your AI assistant can now query your codebase structure, dependencies, and insights.
59
47
 
60
- ```json
61
- {
62
- "mcpServers": {
63
- "codeatlas": {
64
- "command": "npx",
65
- "args": ["-y", "@giauphan/codeatlas-mcp"]
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
- ### Cursor (`.cursor/mcp.json`)
71
+ Then update your MCP config to:
72
72
 
73
73
  ```json
74
74
  {
75
75
  "mcpServers": {
76
76
  "codeatlas": {
77
- "command": "npx",
78
- "args": ["-y", "@giauphan/codeatlas-mcp"]
77
+ "command": "codeatlas-mcp"
79
78
  }
80
79
  }
81
80
  }
82
81
  ```
83
82
 
84
- ## Environment Variables
83
+ ---
84
+
85
+ ## πŸ”§ Environment Variables
85
86
 
86
87
  | Variable | Description |
87
88
  |----------|-------------|
88
- | `CODEATLAS_PROJECT_DIR` | Optional: specify a project directory to analyze |
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
- The server auto-discovers projects by scanning `~/` for `.codeatlas/analysis.json` files.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giauphan/codeatlas-mcp",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "MCP server for CodeAtlas β€” exposes code analysis data to AI assistants via Model Context Protocol",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",