home / mcp / authorized buyers abm mcp server
MCP Server generated by mcp.ag2.ai
Configuration
View docs{
"mcpServers": {
"ag2-mcp-servers-authorized-buyers-marketplace-api": {
"command": "python",
"args": [
"mcp_server/main.py",
"stdio"
],
"env": {
"CONFIG": "{\"example_key\":\"example_value\"}",
"SECURITY": "YOUR_SECURITY_PARAMS",
"CONFIG_PATH": "PATH_TO_CONFIG.json"
}
}
}
}You run an MCP (Model Context Protocol) Server to expose a structured, context-aware API for the Authorized Buyers Marketplace API. It lets clients connect via a simple transport and perform context-aware operations against the configured data sources. This guide walks you through installing, configuring, and using the server so you can integrate it with your MCP clients quickly and reliably.
Start a local MCP server in stdio mode to connect your MCP client directly to the server process. The server reads its configuration from environment variables or a JSON configuration file, and it can be run with different transport modes.
Prerequisites you need before installing: Python 3.9 or newer, and a working Python environment with pip. You may also use uv for running commands.
# Step 1: Clone the project repository
git clone <repository-url>
cd mcp-server
# Step 2: Install development dependencies
pip install -e ".[dev]"
# Optional: If you prefer to use uv for running commands
uv pip install --editable ".[dev]"To run the MCP server in stdio mode using Python, execute the following command. This starts the MCP server process and communicates over standard input/output.
python mcp_server/main.py stdioConfigure the server using environment variables. The main configurable items are the path to a JSON configuration file, an inlined JSON config, and security-related parameters.
Environment variables you can use include:
If you provide a JSON configuration file, set CONFIG_PATH to the path of that file. If you prefer to pass the configuration directly, set CONFIG to a JSON string containing the configuration. For security-related parameters, set SECURITY to an appropriate set of environment values.
The entry point that demonstrates how these are loaded is contained within the main script’s typical execution block.
The project uses linting, static analysis, and testing tools to ensure code quality. Run these as part of your development workflow to maintain a healthy codebase.