This release is a pre-release and may not be stable for production use.
GEAI Proxy Documentation
NAME
geai-proxy – proxy service for managing Model Context Protocol (MCP) servers with GEAI
SYNOPSIS
geai-proxy [OPTIONS] CONFIG_FILE
DESCRIPTION
The GEAI Proxy is a Python-based tool that acts as an intermediary between the GEAI API and various tool servers. It manages the registration, execution, and result handling of tool operations through a proxy service.
INSTALLATION
# Install pygeai-proxy (includes pygeai as dependency)
pip install pygeai-proxy
MIGRATION FROM pygeai.proxy
If you were using the proxy module from the pygeai package (versions 0.1.46 - 0.5.0), please update:
Update your imports:
# Before
from pygeai.proxy.clients import ProxyClient
from pygeai.proxy.managers import ServerManager
# After
from pygeai_proxy.clients import ProxyClient
from pygeai_proxy.managers import ServerManager
Update your dependencies:
# Before
pip install pygeai
# After (pygeai is included as dependency)
pip install pygeai-proxy
The CLI command geai-proxy remains the same.
CONFIGURATION
The GEAI Proxy requires two distinct types of configuration:
1. MCP Servers Configuration
This section declares the Model Context Protocol (MCP) servers that this proxy will link with GEAI. The configuration follows the Claude Desktop standard format and supports multiple servers in one file.
Configuration File Format
{
"mcpServers": {
"serverName1": {
"command": "command-to-launch-server",
"args": ["arg1", "arg2", "..."]
},
"serverName2": {
"command": "command-to-launch-server",
"args": ["arg1", "arg2", "..."]
}
}
}
Example: Puppeteer Server
{
"mcpServers": {
"puppeteer": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-puppeteer"]
}
}
}
Example: Filesystem Server
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "~/mcp-shared-folder"]
}
}
}
Example: HTTP+SSE Server
{
"mcpServers": {
"markitdown": {
"uri": "http://localhost:5000/sse"
}
}
}
Example: Multiple Servers Combined
{
"mcpServers": {
"puppeteer": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-puppeteer"]
},
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "~/mcp-shared-folder"]
},
"markitdown": {
"uri": "http://localhost:5000/sse"
},
"custom-server": {
"command": "python",
"args": ["path/to/your/custom_mcp_server.py"]
}
}
}
PUBLIC TOOL REGISTRATION
Tools provided by both MCP and A2A servers can be published to GEAI under a public namespace by including the public_prefix field in their configuration entry.
This allows tools to be registered under a well-defined global identifier, making them discoverable and shareable across proxies and clients.
MCP Server Example with Public Prefix
Registers tools from the puppeteer MCP server under the prefix com.globant.puppeteer:
{
"mcpServers": {
"public_prefix": "com.globant.puppeteer",
"puppeteer": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-puppeteer"]
}
}
}
A2A Server Example with Public Prefix
Registers tools from the hello-world A2A agent under the prefix com.genexus.a2a.sampleagent:
{
"a2aServers": {
"hello-world": {
"public_prefix": "com.genexus.a2a.sampleagent",
"url": "http://localhost:9999",
"headers": {
"Authorization": "Bearer fh84ff...."
}
}
}
}
Resulting Tool Identifiers
For example, a tool named translate_text would be available as:
com.genexus.a2a.sampleagent.translate_text
2. Proxy Authentication Configuration
This section establishes the connection between the proxy and GEAI and manages user aliases.
Automatic Configuration (First Run)
geai-proxy sample-mcp-config.json --alias myalias
Manual Configuration (Reconfiguration)
geai-proxy --configure --alias myalias
During interactive setup, the CLI will prompt:
# Configuring GEAI proxy settings...
Generated new proxy ID: 37bae96b-bc99-4110-bb61-b912b28f9e32
-> Insert proxy ID (UUID) (Current: 37bae96b-bc99-4110-bb61-b912b28f9e32, Leave empty to keep):
-> Insert proxy API key:
-> Insert proxy base URL:
-> Insert proxy name:
-> Insert proxy description:
PROXY CONFIGURATION PARAMETERS
During interactive setup, the following parameters are requested:
-
proxy ID (UUID)
A unique identifier for this proxy instance. If left empty, the automatically generated UUID will be used. -
proxy API key
The API key used to authenticate the proxy with the GEAI backend. Must be a token from GEAI for a specific project. -
proxy base URL
The base URL of the GEAI installation to connect to.
Example:https://api.beta.saia.ai -
proxy name
Human-readable name for this proxy instance, stored under the alias. -
proxy description
Optional. Helps identify this proxy instance when using multiple aliases.
Environment Variables
All of the above configuration parameters can also be set via environment variables:
GEAI_API_KEYGEAI_API_BASE_URLPROXY_IDPROXY_NAMEPROXY_DESCRIPTION
These environment variables override or represent the configuration of the default alias. Therefore, they will only be taken into account if the proxy is invoked with --alias default. When using a different alias, these variables are ignored.
USAGE
To start the proxy server with a config and alias:
geai-proxy sample-mcp-config.json --alias myalias
Command Line Arguments
- config_file: Path to the MCP servers configuration file (JSON).
- --alias ALIAS: Alias for the proxy settings.
- --configure: Reconfigure proxy authentication settings.
FILES
sample-mcp-config.json– Sample configuration file for MCP servers.
SEE ALSO
pygeai (1)
THIRD-PARTY COMPONENTS
This software includes code from the a2a-python project by Google LLC, licensed under the Apache License 2.0.
Only the vendored component in pygeai_proxy/vendor/a2a/ is Apache-licensed. The rest is MIT-licensed.
License sources:
- https://github.com/google/a2a-python
pygeai_proxy/vendor/a2a/LICENSE
AUTHOR
Written by the GEAI development team.
COPYRIGHT
Copyright © 2025 GEAI development team.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
##Architecture
graph TD
user["User \nClient interacting with the GEAI"]
geai["GEAI \nGlobant Enterprise AI"]
proxy["MCP / A2A Proxy \nProxy that connects to multiple MCP Servers / A2A Agents to call tools"]
mcpA["MCP Server A \nTool server for search functionality"]
mcpB["MCP Server B \nTool server for code execution"]
A2A["A2A Agent \nAi Agent for database queries"]
user -->|Interacts/Calls tools via| geai
geai -->|Returns tool responses| user
geai -->|Calls tools via| proxy
proxy -->|Returns tool responses| geai
user -->|Calls Search Tool| proxy
proxy -->|Calls Search Tool| mcpA
mcpA -->|Returns search results| proxy
proxy -->|Calls Code Tool| mcpB
mcpB -->|Returns code output| proxy
proxy -->|Calls DB Agent| A2A
A2A -->|Returns sql query| proxy
Metadata
Release files for pygeai-proxy 0.1.0b9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pygeai_proxy-0.1.0b9.tar.gz | 29.3 kB | Without provenance | Details for pygeai_proxy-0.1.0b9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pygeai_proxy-0.1.0b9-py3-none-any.whl | Python 3 | none | any | Details for pygeai_proxy-0.1.0b9-py3-none-any.whl |
Total release size: 49.6 kB
Release files / pygeai_proxy-0.1.0b9.tar.gz
| Download URL | pygeai_proxy-0.1.0b9.tar.gz |
|---|---|
| Size | 29.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a821858ac19c749acb5c350c4a7014474e42f90e7f2e895ff4ea4d7a44940267
|
|
BLAKE2b-256 checksum How to use checksums |
ad3ce07fc2227903876d3ca2b698592b81c5e78b6eaaa8f7e387e8738a933bc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / pygeai_proxy-0.1.0b9-py3-none-any.whl
| Download URL | pygeai_proxy-0.1.0b9-py3-none-any.whl |
|---|---|
| Size | 20.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
49bffbe119b1ab2c025f8011d474ff5ddeb327ef077a2116fa8235508d0e336b
|
|
BLAKE2b-256 checksum How to use checksums |
76ae4a9964c7141f01b32773855ebf0be3fffbab822eaebc2032530ce35b5f59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for pygeai-proxy 0.1.0b9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.