codegraphcontext 0.1.2__tar.gz → 0.1.4__tar.gz
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.
- {codegraphcontext-0.1.2/src/codegraphcontext.egg-info → codegraphcontext-0.1.4}/PKG-INFO +1 -1
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/pyproject.toml +1 -1
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext/cli/setup_wizard.py +17 -4
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4/src/codegraphcontext.egg-info}/PKG-INFO +1 -1
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/LICENSE +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/README.md +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/setup.cfg +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext/__init__.py +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext/__main__.py +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext/cli/__init__.py +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext/cli/main.py +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext/core/__init__.py +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext/core/database.py +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext/core/jobs.py +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext/core/watcher.py +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext/prompts.py +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext/server.py +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext/tools/__init__.py +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext/tools/code_finder.py +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext/tools/graph_builder.py +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext/tools/import_extractor.py +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext/tools/system.py +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext.egg-info/SOURCES.txt +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext.egg-info/dependency_links.txt +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext.egg-info/entry_points.txt +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext.egg-info/requires.txt +0 -0
- {codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codegraphcontext
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: An MCP server that indexes local code into a graph database to provide context to AI assistants.
|
|
5
5
|
Author-email: Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "codegraphcontext"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.4"
|
|
4
4
|
description = "An MCP server that indexes local code into a graph database to provide context to AI assistants."
|
|
5
5
|
authors = [{ name = "Shashank Shekhar Singh", email = "shashankshekharsingh1205@gmail.com" }]
|
|
6
6
|
readme = "README.md"
|
|
@@ -7,18 +7,27 @@ from pathlib import Path
|
|
|
7
7
|
import time
|
|
8
8
|
import json
|
|
9
9
|
import sys
|
|
10
|
+
import shutil
|
|
10
11
|
|
|
11
12
|
console = Console()
|
|
12
13
|
|
|
13
14
|
def _generate_mcp_json(creds):
|
|
14
15
|
"""Generates and prints the MCP JSON configuration."""
|
|
15
|
-
cgc_path =
|
|
16
|
-
|
|
16
|
+
cgc_path = shutil.which("cgc") or sys.executable
|
|
17
|
+
|
|
18
|
+
if "python" in Path(cgc_path).name:
|
|
19
|
+
# fallback to running as module if no cgc binary is found
|
|
20
|
+
command = cgc_path
|
|
21
|
+
args = ["-m", "cgc", "start"]
|
|
22
|
+
else:
|
|
23
|
+
command = cgc_path
|
|
24
|
+
args = ["start"]
|
|
25
|
+
|
|
17
26
|
mcp_config = {
|
|
18
27
|
"mcpServers": {
|
|
19
28
|
"CodeGraphContext": {
|
|
20
|
-
"command":
|
|
21
|
-
"args":
|
|
29
|
+
"command": command,
|
|
30
|
+
"args": args,
|
|
22
31
|
"env": {
|
|
23
32
|
"NEO4J_URI": creds.get("uri", ""),
|
|
24
33
|
"NEO4J_USER": creds.get("username", "neo4j"),
|
|
@@ -124,7 +133,11 @@ def find_latest_neo4j_creds_file():
|
|
|
124
133
|
|
|
125
134
|
def setup_hosted_db():
|
|
126
135
|
"""Guides user to configure a remote Neo4j instance."""
|
|
136
|
+
console.print("\nTo connect to a hosted Neo4j database, you'll need your connection credentials.")
|
|
137
|
+
console.print("If you don't have a hosted database, you can create a free one at [bold blue]https://neo4j.com/product/auradb/[/bold blue] (click 'Start free').")
|
|
138
|
+
|
|
127
139
|
questions = [
|
|
140
|
+
|
|
128
141
|
{
|
|
129
142
|
"type": "list",
|
|
130
143
|
"message": "How would you like to add your Neo4j credentials?",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codegraphcontext
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: An MCP server that indexes local code into a graph database to provide context to AI assistants.
|
|
5
5
|
Author-email: Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
|
|
6
6
|
License: MIT License
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext/tools/graph_builder.py
RENAMED
|
File without changes
|
{codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext/tools/import_extractor.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext.egg-info/requires.txt
RENAMED
|
File without changes
|
{codegraphcontext-0.1.2 → codegraphcontext-0.1.4}/src/codegraphcontext.egg-info/top_level.txt
RENAMED
|
File without changes
|