codegraphcontext 0.1.2__tar.gz → 0.1.3__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.
Files changed (27) hide show
  1. {codegraphcontext-0.1.2/src/codegraphcontext.egg-info → codegraphcontext-0.1.3}/PKG-INFO +1 -1
  2. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/pyproject.toml +1 -1
  3. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext/cli/setup_wizard.py +13 -4
  4. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3/src/codegraphcontext.egg-info}/PKG-INFO +1 -1
  5. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/LICENSE +0 -0
  6. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/README.md +0 -0
  7. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/setup.cfg +0 -0
  8. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext/__init__.py +0 -0
  9. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext/__main__.py +0 -0
  10. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext/cli/__init__.py +0 -0
  11. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext/cli/main.py +0 -0
  12. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext/core/__init__.py +0 -0
  13. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext/core/database.py +0 -0
  14. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext/core/jobs.py +0 -0
  15. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext/core/watcher.py +0 -0
  16. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext/prompts.py +0 -0
  17. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext/server.py +0 -0
  18. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext/tools/__init__.py +0 -0
  19. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext/tools/code_finder.py +0 -0
  20. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext/tools/graph_builder.py +0 -0
  21. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext/tools/import_extractor.py +0 -0
  22. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext/tools/system.py +0 -0
  23. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext.egg-info/SOURCES.txt +0 -0
  24. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext.egg-info/dependency_links.txt +0 -0
  25. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext.egg-info/entry_points.txt +0 -0
  26. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/src/codegraphcontext.egg-info/requires.txt +0 -0
  27. {codegraphcontext-0.1.2 → codegraphcontext-0.1.3}/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.2
3
+ Version: 0.1.3
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.2"
3
+ version = "0.1.3"
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 = sys.executable # Path to the python executable in the current venv
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": cgc_path,
21
- "args": ["start"],
29
+ "command": command,
30
+ "args": args,
22
31
  "env": {
23
32
  "NEO4J_URI": creds.get("uri", ""),
24
33
  "NEO4J_USER": creds.get("username", "neo4j"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codegraphcontext
3
- Version: 0.1.2
3
+ Version: 0.1.3
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