The mcpgen CLI requires a supported Python interpreter to run. This section explains how to configure Python for OpenEdge MCP Server.

Initial configuration

On the first run, mcpgen prompts you to specify the Python interpreter. Supported versions are Python 3.11 and later.
Enter the Python command or path you want to use.
Examples: python3.12, python3.13, /usr/bin/python3.11

Python command: _

Enter the full path to the executable, for example /usr/bin/python3.11. Your selection is saved in the ./mcpgen_python file located in the mcpgen installation directory. This configuration is reused for all future runs.

Reconfigure python

To change the Python interpreter after initial setup, use the following commands:
Platform Command
Unix/Linux ./mcpgen --select-python
Windows PowerShell ./mcpgen.ps1 -SelectPython

Temporary override

To override the Python interpreter for a single command:
Platform Command
Unix/Linux/macOS MCPGEN_PYTHON=/usr/local/bin/python3.12 ./mcpgen list
Windows PowerShell $env:MCPGEN_PYTHON="C:\Python311\python.exe"; ./mcpgen.ps1 list

Note

The Python configuration is stored in the mcpgen installation directory, not in the current working directory. This ensures consistent behavior regardless of where you run mcpgen.