set_project
Set or change the project directory Grafyx analyzes. Resolves 'No project loaded' errors by specifying the workspace root path.
Instructions
Set or change the project directory that Grafyx analyzes.
Call this when Grafyx reports 'No project loaded' — typically when running as a global MCP server. Pass the workspace root path.
After calling this, all other Grafyx tools will work on the specified project. Re-call with a different path to switch projects.
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": {
"project_path": "<project_path>"
},
"name": "set_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | Absolute path to the project root directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||