load_cpg
Loads a Code Property Graph (CPG) from a specified file path for security analysis and code review in the Joern MCP Server.
Instructions
Loads a CPG from a file if the cpg is not loaded or the cpg is not the same as the filepath.
Args:
cpg_filepath (str): The path to the CPG file, the filepath is absolute path.
Returns:
str: True if the CPG is loaded successfully, False otherwise.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cpg_filepath": "<cpg_filepath>"
},
"name": "load_cpg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpg_filepath | Yes |