You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f52ae8d
Browse filesBrowse the repository at this point in the historyBrowse files
This page details the installation process for CodeGraphContext.
3
+
Welcome to **CodeGraphContext**! This guide provides a clear and seamless path to installing and configuring the tool, from prerequisites to launching your server.
4
4
5
-
## Prerequisites
5
+
## ⚙️ Prerequisites
6
6
7
-
Before you begin, ensure you have the following installed:
7
+
Ensure the following are installed before you begin:
8
8
9
-
-**Python:** Version 3.8 or higher.
10
-
-**AI Agentic Coding Tool:** An MCP-compatible AI assistant (e.g., Gemini, Claude, etc.) if you plan to use the MCP server.
9
+
-**Python**: Version 3.8 or higher.
10
+
-**AI Agentic Coding Tool**: An MCP-compatible AI assistant (e.g., Gemini, Claude) if you plan to use the MCP server.
11
11
12
-
## Getting Started
12
+
## 🚀 Getting Started
13
+
14
+
Follow these steps to set up **CodeGraphContext** effortlessly.
13
15
14
16
### 1. Install from PyPI
15
17
@@ -19,77 +21,91 @@ Install the `codegraphcontext` package directly from PyPI using pip:
19
21
pip install codegraphcontext
20
22
```
21
23
22
-
### 2. Configure the Server
24
+
### 2. Run the Setup Wizard
23
25
24
-
Run the interactive setup wizard to configure your Neo4j database connection and development environment:
26
+
Launch the interactive setup wizard to configure your Neo4j database and development environment:
25
27
26
28
```bash
27
29
cgc setup
28
30
```
29
31
30
-
The setup wizard will guide you through the following options:
32
+
The wizard guides you through a series of intuitive prompts to tailor your setup.
31
33
32
-
!!! details "Step-by-step guide for the setup wizard"
34
+
## 🧭 "Step-by-Step Guide for the Setup Wizard"
33
35
34
-
When you run `cgc setup`, you will be presented with a series of questions. Here’s a guide on how to answer them:
36
+
When you run `cgc setup`, the wizard offers a thoughtful journey through configuration. Follow these steps to complete your setup with ease:
35
37
36
-
**1. Database Location:**
38
+
**1. Select Your Database Location**
37
39
38
-
You will first be asked where you want to set up your Neo4j database.
40
+
Choose where your Neo4j database will reside:
39
41
40
-
* **Local (Recommended):** Choose this if you want to run Neo4j on your own machine. This is the easiest option if you have Docker installed.
41
-
* **Docker:** The wizard will automatically create a `docker-compose.yml` file and start a Neo4j container.
42
-
* **Local Binary:** For Debian-based systems, the wizard can install Neo4j for you.
43
-
* **Hosted:** Choose this if you have a remote Neo4j database like AuraDB. You will be prompted to enter your connection details.
44
-
* **I already have an existing neo4j instance running:** Choose this if you already have a Neo4j instance running (local or remote) and you want to provide the credentials manually.
42
+
-**Local (Recommended)**: Host Neo4j on your machine for simplicity.
43
+
-**Docker**: With Docker installed, the wizard crafts a `docker-compose.yml` file and launches a Neo4j container seamlessly.
44
+
-**Local Binary**: On Debian-based systems (e.g., Ubuntu), the wizard installs Neo4j directly with your permission.
45
+
-**Hosted**: Connect to a remote Neo4j instance, such as AuraDB, by providing your database URI, username, and password.
46
+
-**Existing Instance**: For an existing Neo4j server (local or remote), enter its connection credentials.
45
47
46
-
*(Image placeholder: Screenshot of the database location prompt)*
47
48
48
-
**2. IDE/CLI Configuration:**
49
+
**2. Configure Your Development Environment**
49
50
50
-
After setting up the database, the wizard will ask to configure your development environment.
51
+
Integrate CodeGraphContext with your preferred development tool for a harmonious workflow. Select from supported options:
51
52
52
-
* Choose your preferred IDE or CLI from the list. The wizard will automatically update the necessary configuration files.
53
+
- VS Code
54
+
- Cursor
55
+
- Windsurf
56
+
- Claude
57
+
- Gemini CLI
58
+
- ChatGPT Codex
59
+
- Cline
60
+
- RooCode
61
+
- Amazon Q Developer
53
62
54
-
*(Image placeholder: Screenshot of the IDE/CLI selection prompt)*
63
+
The wizard automatically updates configuration files to align with your choice.
55
64
56
-
**3. Configuration Files:**
57
65
58
-
Upon successful configuration, the wizard will create:
66
+
**3. Generate Configuration Files**
59
67
60
-
* `mcp.json`: In your current directory, for the MCP server configuration.
61
-
* `.env`: In `~/.codegraphcontext`, to store your Neo4j credentials securely.
68
+
Upon completing the prompts, the wizard creates two essential files:
62
69
63
-
#### Database Configuration
70
+
-**`mcp.json`**: Placed in your working directory, this file configures the MCP server.
71
+
-**`.env`**: Stored securely in `~/.codegraphcontext`, this file safeguards your Neo4j credentials.
64
72
65
-
You can choose from three database setups:
73
+
These files ensure smooth communication between CodeGraphContext, your Neo4j instance, and your AI assistant.
66
74
67
-
-**Local Setup (Docker Recommended):** The wizard can automatically set up a local Neo4j instance using Docker. This is the easiest way to get started if you have Docker and Docker Compose installed.
68
-
-**Local Setup (Linux Binary):** For Debian-based systems like Ubuntu, the wizard can automate the installation of Neo4j directly on your machine. This requires `sudo` privileges.
69
-
-**Hosted Setup:** If you have an existing remote Neo4j database (like Neo4j AuraDB), you can provide your credentials to connect to it.
75
+
### 3. Start the Server
70
76
71
-
#### IDE/CLI Configuration
77
+
Once configuration is complete, launch the MCP server with:
72
78
73
-
After setting up the database, the wizard can automatically configure your preferred development tool to work with CodeGraphContext. Supported tools include:
79
+
```bash
80
+
cgc start
81
+
```
74
82
75
-
- VS Code
76
-
- Cursor
77
-
- Windsurf
78
-
- Claude
79
-
- Gemini CLI
80
-
- ChatGPT Codex
81
-
- Cline
82
-
- RooCode
83
-
- Amazon Q Developer
83
+
Your **CodeGraphContext** server is now active, ready to power AI-assisted graph queries.
84
84
85
-
Upon successful configuration, the wizard will create the necessary files, including `mcp.json` for server configuration and a `.env` file for your credentials in `~/.codegraphcontext`.
85
+
## 🧱 Database Setup Options
86
86
87
-
### 3. Start the Server
87
+
Choose from three flexible database configurations:
88
88
89
-
Once the setup is complete, you can start the CodeGraphContext MCP server:
|**Hosted**| Connects to a remote Neo4j instance (e.g., AuraDB). | Connection credentials |
90
94
91
-
```bash
92
-
cgc start
93
-
```
95
+
## 💻 IDE/CLI Configuration Summary
96
+
97
+
The setup wizard streamlines integration with your preferred development tool, automatically generating configuration files for seamless interaction with the MCP server and database. Supported tools include:
98
+
99
+
- VS Code
100
+
- Cursor
101
+
- Windsurf
102
+
- Claude
103
+
- Gemini CLI
104
+
- ChatGPT Codex
105
+
- Cline
106
+
- RooCode
107
+
- Amazon Q Developer
108
+
109
+
## Next Steps
94
110
95
-
The server will now be running and ready to accept requests from your AI assistant.
111
+
With **CodeGraphContext** installed and configured, you’re ready to explore its AI-powered capabilities. Happy coding ✨!
0 commit comments