Codex
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.
With the command
powershell
codex mcp add pbrokkr --env PYTHONPATH=C:\Tools\PBRGenerator -- C:\Tools\PBRGenerator\.venv\Scripts\python.exe -m pbrgen mcpsh
codex mcp add pbrokkr --env PYTHONPATH=/opt/PBRGenerator -- /opt/PBRGenerator/.venv/bin/python -m pbrgen mcpCheck it:
sh
codex mcp listAs a file
Codex keeps its servers in ~/.codex/config.toml (on Windows, C:\Users\<you>\.codex\config.toml):
toml
[mcp_servers.pbrokkr]
command = 'C:\Tools\PBRGenerator\.venv\Scripts\python.exe'
args = ["-m", "pbrgen", "mcp"]
[mcp_servers.pbrokkr.env]
PYTHONPATH = 'C:\Tools\PBRGenerator'Single quotes keep the backslashes of a Windows path as they are. The Codex extension for editors reads the same file.
Try it
Use pbrokkr to describe the parameter
normal_strength, in Portuguese.