Table of contents
Official Content
  • This documentation is valid for:

The GEAI Proxy is a Python-based component that enables dynamic integration of external Tools into Glob.AI OS via the Model Context Protocol (MCP) and Agent-to-Agent (A2A). It acts as a bridge between Glob.AI OS and one or more MCP- or A2A-compliant Servers, and manages the registration, execution, and result handling of Tool operations.

Once the MCP/A2A Servers are properly configured and connected through the GEAI Proxy, the Tools they expose automatically appear in the AI and Tools Tab of an Agent, ready for use by any Agent without additional setup.

Note: Starting with PyGEAI 0.8.0, the GEAI Proxy is distributed as the standalone pygeai-proxy package.

Installation

Install the GEAI Proxy with pip:

pip install pygeai-proxy

The pygeai package is installed automatically as a dependency. The geai-proxy command is available once the installation finishes.

If you used the proxy module from the pygeai package (versions 0.1.46 to 0.5.0), update your imports and dependencies:

# 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
# 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 supports integration with MCP-compliant Tool Servers, and also with A2A-compliant external Agents.

It requires two types of configuration:

  • Tool Servers configuration (supports MCP and A2A Servers)
  • Proxy authentication configuration (to connect with Glob.AI OS)

1. Tool servers configuration

This section defines the MCP and A2A Servers that this proxy will link to Glob.AI OS. The configuration follows the Claude Desktop standard format and supports multiple servers in a single file.

Configuration file format

{
  "mcpServers": {
    "serverName1": {
      "command": "command-to-launch-server",
      "args": ["arg1", "arg2", ...]
    },
    "serverName2": {
      "command": "command-to-launch-server",
      "args": ["arg1", "arg2", ...]
    }
  }
}

Example configurations

Puppeteer server (for web automation):

{
  "mcpServers": {
    "puppeteer": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-puppeteer"]
    }
  }
}

Filesystem server (for file operations):

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "~/mcp-shared-folder"
      ]
    }
  }
}
MCP Server with HTTP+SSE transport:
{
  "mcpServers": {
    "markitdown": {
      "uri": "http://localhost:5000/sse"
    }
  }
}
A2A Server:
{
  "a2aServers": {
    "hello-world": {
      "url": "http://localhost:9999",
      "headers": {
        "Authorization": "Bearer <your-token>"
      }
    }
  }
}

Combined configuration (MCP + HTTP+SSE + custom):

{
  "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

The public_prefix field registers the Tools of a server under a public namespace. This makes the Tools discoverable and shareable across proxies and clients.

Add public_prefix to the configuration entry of the MCP or A2A Server. For example, this entry registers the Tools of the hello-world A2A Server under the prefix com.genexus.a2a.sampleagent:

{
  "a2aServers": {
    "hello-world": {
      "public_prefix": "com.genexus.a2a.sampleagent",
      "url": "http://localhost:9999",
      "headers": {
        "Authorization": "Bearer <your-token>"
      }
    }
  }
}

Each Tool is then available with the prefix followed by the Tool name. For example, a Tool named translate_text is registered as:

com.genexus.a2a.sampleagent.translate_text

2. Proxy authentication configuration

This section establishes the connection between the proxy and Glob.AI OS and manages user aliases. You can configure it automatically on the first run or manually reconfigure an existing alias.

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 prompts you for each required setting:

# Configuring GEAI proxy settings...
Generated new proxy ID: <generated-uuid>
-> Insert proxy ID (UUID) (Current: <generated-uuid>, 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, an automatically generated UUID is used.
  • proxy API key: The API key used to authenticate the proxy with Glob.AI OS. Must be an API token from Glob.AI OS for a specific Project.
  • proxy base URL: The base URL of the Glob.AI OS installation to connect to. For example: https://api.saia.ai.
  • proxy name: A 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

Each configuration parameter can also be set with an environment variable:

  • GEAI_API_KEY
  • GEAI_API_BASE_URL
  • PROXY_ID
  • PROXY_NAME
  • PROXY_DESCRIPTION

These variables represent the configuration of the default alias. They are only taken into account when the proxy runs with --alias default. With any other alias, they are ignored.

Usage

Starting the proxy

The general syntax of the command is:

geai-proxy [OPTIONS] CONFIG_FILE

To start the proxy server with a specific configuration and alias:

geai-proxy sample-mcp-config.json --alias myalias

Command line arguments

Argument Description Required
config_file Path to the MCP servers configuration file (JSON format), for example sample-mcp-config.json Yes
--alias Alias for the proxy settings No
--configure Command to reconfigure proxy authentication No

Command line usage

geai-proxy sample-mcp-config.json --alias beta

Result

Once the GEAI Proxy is running and the MCP and A2A Servers are connected, the Tools they expose appear under the AI and Tools Tab of an Agent in Agentic Hub. Agents can immediately start using these Tools. No manual import or setup is required.

Last update: 2026 | © Globant S.A. All rights reserved.