The CodeGraphContext CLI provides a set of commands to manage the server, index your code, and interact with the code graph.
Runs the interactive setup wizard to configure the server and database connection. This helps users set up a local Docker-based Neo4j instance or connect to a remote one.
Usage:
cgc setupStarts the CodeGraphContext MCP server, which listens for JSON-RPC requests from stdin.
Usage:
cgc startIndexes a directory or file by adding it to the code graph. If no path is provided, it indexes the current directory.
Arguments:
PATH(optional): Path to the directory or file to index. Defaults to the current directory.
Usage:
cgc index /path/to/your/projectDeletes a repository from the code graph.
Arguments:
PATH(required): Path of the repository to delete from the code graph.
Usage:
cgc delete /path/to/your/projectGenerates a URL to visualize a Cypher query in the Neo4j Browser. If no query is provided, a default query will be used.
Arguments:
QUERY(optional): The Cypher query to visualize.
Usage:
cgc visualize "MATCH (n) RETURN n"Lists all indexed repositories.
Usage:
cgc list_reposAdds a Python package to the code graph.
Arguments:
PACKAGE_NAME(required): Name of the Python package to add.
Usage:
cgc add_package requestsExecutes a read-only Cypher query.
Arguments:
QUERY(required): The read-only Cypher query to execute.
Usage:
cgc cypher "MATCH (n:Function) RETURN n.name"Lists all available tools and their descriptions.
Usage:
cgc list_mcp_toolsShow the main help message and exit.
Usage:
cgc helpShow the application version.
Usage:
cgc --versionor
cgc version