Cursor and Grok Build
See MCP overview for what the server does. The examples run PBrokkR from the source code in C:\Tools\PBRGenerator (replace it with your folder). With the downloaded program, the command is pbrokkr-cli (pbrokkr-cli.exe on Windows) with the argument mcp, and no PYTHONPATH: see the command an agent must start.
Cursor
Cursor reads mcp.json: .cursor/mcp.json in a project, or ~/.cursor/mcp.json for every project (on Windows, C:\Users\<you>\.cursor\mcp.json).
{
"mcpServers": {
"pbrokkr": {
"command": "C:\\Tools\\PBRGenerator\\.venv\\Scripts\\python.exe",
"args": ["-m", "pbrgen", "mcp"],
"env": { "PYTHONPATH": "C:\\Tools\\PBRGenerator" }
}
}
}You can also add it from the interface: Settings > MCP > Add new MCP server, which opens the same file.
After saving, open Settings > MCP: the server should show a green dot and its twelve tools. If it shows an error, click it to read the message.
Grok Build
With the command:
grok mcp add pbrokkr --env PYTHONPATH=C:\Tools\PBRGenerator -- C:\Tools\PBRGenerator\.venv\Scripts\python.exe -m pbrgen mcpgrok mcp add pbrokkr --env PYTHONPATH=/opt/PBRGenerator -- /opt/PBRGenerator/.venv/bin/python -m pbrgen mcpIf your version does not accept --env, write it in the configuration file instead, in TOML:
[mcp_servers.pbrokkr]
command = 'C:\Tools\PBRGenerator\.venv\Scripts\python.exe'
args = ["-m", "pbrgen", "mcp"]
env = { PYTHONPATH = 'C:\Tools\PBRGenerator' }Check it:
grok mcp list
grok mcp doctorTry it
Use pbrokkr to list the engine export profiles and the files each one writes.