codegraphcontext 0.2.0__tar.gz → 0.2.1__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.2.0/src/codegraphcontext.egg-info → codegraphcontext-0.2.1}/PKG-INFO +2 -2
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/README.md +1 -1
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/pyproject.toml +1 -1
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/cli/main.py +1 -1
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/core/database.py +6 -2
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/code_finder.py +2 -1
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/graph_builder.py +6 -1
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1/src/codegraphcontext.egg-info}/PKG-INFO +2 -2
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/LICENSE +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/MANIFEST.in +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/setup.cfg +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/__init__.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/__main__.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/cli/__init__.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/cli/cli_helpers.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/cli/config_manager.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/cli/registry_commands.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/cli/setup_macos.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/cli/setup_wizard.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/cli/visualizer.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/core/__init__.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/core/bundle_registry.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/core/cgc_bundle.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/core/database_falkordb.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/core/falkor_worker.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/core/jobs.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/core/watcher.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/prompts.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/server.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tool_definitions.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/__init__.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/advanced_language_query_tool.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/handlers/analysis_handlers.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/handlers/indexing_handlers.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/handlers/management_handlers.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/handlers/query_handlers.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/handlers/watcher_handlers.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/c.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/cpp.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/csharp.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/go.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/haskell.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/java.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/javascript.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/kotlin.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/php.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/python.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/ruby.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/rust.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/scala.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/swift.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/typescript.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/typescriptjsx.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/package_resolver.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/query_tool_languages/c_toolkit.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/query_tool_languages/cpp_toolkit.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/query_tool_languages/csharp_toolkit.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/query_tool_languages/go_toolkit.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/query_tool_languages/haskell_toolkit.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/query_tool_languages/java_toolkit.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/query_tool_languages/javascript_toolkit.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/query_tool_languages/python_toolkit.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/query_tool_languages/ruby_toolkit.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/query_tool_languages/rust_toolkit.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/query_tool_languages/scala_toolkit.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/query_tool_languages/swift_toolkit.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/query_tool_languages/typescript_toolkit.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/system.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/utils/debug_log.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/utils/tree_sitter_manager.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/utils/visualize_graph.py +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext.egg-info/SOURCES.txt +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext.egg-info/dependency_links.txt +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext.egg-info/entry_points.txt +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext.egg-info/requires.txt +0 -0
- {codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/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.2.
|
|
3
|
+
Version: 0.2.1
|
|
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
|
|
@@ -146,7 +146,7 @@ A powerful **MCP server** and **CLI toolkit** that indexes local code into a gra
|
|
|
146
146
|
---
|
|
147
147
|
|
|
148
148
|
## Project Details
|
|
149
|
-
- **Version:** 0.2.
|
|
149
|
+
- **Version:** 0.2.1
|
|
150
150
|
- **Authors:** Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
|
|
151
151
|
- **License:** MIT License (See [LICENSE](LICENSE) for details)
|
|
152
152
|
- **Website:** [CodeGraphContext](http://codegraphcontext.vercel.app/)
|
|
@@ -84,7 +84,7 @@ A powerful **MCP server** and **CLI toolkit** that indexes local code into a gra
|
|
|
84
84
|
---
|
|
85
85
|
|
|
86
86
|
## Project Details
|
|
87
|
-
- **Version:** 0.2.
|
|
87
|
+
- **Version:** 0.2.1
|
|
88
88
|
- **Authors:** Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
|
|
89
89
|
- **License:** MIT License (See [LICENSE](LICENSE) for details)
|
|
90
90
|
- **Website:** [CodeGraphContext](http://codegraphcontext.vercel.app/)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "codegraphcontext"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.1"
|
|
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"
|
|
@@ -1332,7 +1332,7 @@ def find_by_content_search(
|
|
|
1332
1332
|
results = code_finder.find_by_content(query)
|
|
1333
1333
|
except Exception as e:
|
|
1334
1334
|
error_msg = str(e).lower()
|
|
1335
|
-
if 'fulltext' in error_msg or 'db.index.fulltext' in error_msg:
|
|
1335
|
+
if ('fulltext' in error_msg or 'db.index.fulltext' in error_msg) and "Falkor" in db_manager.__class__.__name__:
|
|
1336
1336
|
console.print("\n[bold red]❌ Full-text search is not supported on FalkorDB[/bold red]\n")
|
|
1337
1337
|
console.print("[yellow]💡 You have two options:[/yellow]\n")
|
|
1338
1338
|
console.print(" 1. [cyan]Switch to Neo4j:[/cyan]")
|
|
@@ -178,8 +178,12 @@ class DatabaseManager:
|
|
|
178
178
|
try:
|
|
179
179
|
# Extract host and port from URI
|
|
180
180
|
host_port = uri.split('://')[1]
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
if ':' in host_port:
|
|
182
|
+
host = host_port.split(':')[0]
|
|
183
|
+
port = int(host_port.split(':')[1])
|
|
184
|
+
else:
|
|
185
|
+
host = host_port
|
|
186
|
+
port = 7687 # Default Neo4j port
|
|
183
187
|
|
|
184
188
|
# Test socket connection
|
|
185
189
|
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
|
@@ -84,13 +84,14 @@ class CodeFinder:
|
|
|
84
84
|
CALL db.index.fulltext.queryNodes("code_search_index", $search_term) YIELD node, score
|
|
85
85
|
WITH node, score
|
|
86
86
|
WHERE node:Function OR node:Class OR node:Variable
|
|
87
|
+
MATCH (node)<-[:CONTAINS]-(f:File)
|
|
87
88
|
RETURN
|
|
88
89
|
CASE
|
|
89
90
|
WHEN node:Function THEN 'function'
|
|
90
91
|
WHEN node:Class THEN 'class'
|
|
91
92
|
ELSE 'variable'
|
|
92
93
|
END as type,
|
|
93
|
-
node.name as name,
|
|
94
|
+
node.name as name, f.path as path,
|
|
94
95
|
node.line_number as line_number, node.source as source,
|
|
95
96
|
node.docstring as docstring, node.is_dependency as is_dependency
|
|
96
97
|
ORDER BY score DESC
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/graph_builder.py
RENAMED
|
@@ -277,7 +277,12 @@ class GraphBuilder:
|
|
|
277
277
|
""", path=file_path_str, name=file_name, relative_path=relative_path, is_dependency=is_dependency)
|
|
278
278
|
|
|
279
279
|
file_path_obj = Path(file_path_str)
|
|
280
|
-
|
|
280
|
+
if repo_result:
|
|
281
|
+
repo_path_obj = Path(repo_result['path'])
|
|
282
|
+
else:
|
|
283
|
+
# Fallback to the path we queried for
|
|
284
|
+
warning_logger(f"Repository node not found for {file_data['repo_path']} during indexing of {file_name}. Using original path.")
|
|
285
|
+
repo_path_obj = Path(file_data['repo_path']).resolve()
|
|
281
286
|
|
|
282
287
|
relative_path_to_file = file_path_obj.relative_to(repo_path_obj)
|
|
283
288
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codegraphcontext
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
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
|
|
@@ -146,7 +146,7 @@ A powerful **MCP server** and **CLI toolkit** that indexes local code into a gra
|
|
|
146
146
|
---
|
|
147
147
|
|
|
148
148
|
## Project Details
|
|
149
|
-
- **Version:** 0.2.
|
|
149
|
+
- **Version:** 0.2.1
|
|
150
150
|
- **Authors:** Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
|
|
151
151
|
- **License:** MIT License (See [LICENSE](LICENSE) for details)
|
|
152
152
|
- **Website:** [CodeGraphContext](http://codegraphcontext.vercel.app/)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/cli/config_manager.py
RENAMED
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/cli/registry_commands.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/core/bundle_registry.py
RENAMED
|
File without changes
|
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/core/database_falkordb.py
RENAMED
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/core/falkor_worker.py
RENAMED
|
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.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/cpp.py
RENAMED
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/csharp.py
RENAMED
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/go.py
RENAMED
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/haskell.py
RENAMED
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/java.py
RENAMED
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/javascript.py
RENAMED
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/kotlin.py
RENAMED
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/php.py
RENAMED
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/python.py
RENAMED
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/ruby.py
RENAMED
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/rust.py
RENAMED
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/scala.py
RENAMED
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/swift.py
RENAMED
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/languages/typescript.py
RENAMED
|
File without changes
|
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/tools/package_resolver.py
RENAMED
|
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
|
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/utils/tree_sitter_manager.py
RENAMED
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext/utils/visualize_graph.py
RENAMED
|
File without changes
|
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext.egg-info/requires.txt
RENAMED
|
File without changes
|
{codegraphcontext-0.2.0 → codegraphcontext-0.2.1}/src/codegraphcontext.egg-info/top_level.txt
RENAMED
|
File without changes
|