home / mcp / workload manager api mcp server
MCP Server generated by mcp.ag2.ai
Configuration
View docs{
"mcpServers": {
"ag2-mcp-servers-workload-manager-api": {
"url": "https://mcp.example.com/mcp",
"headers": {
"CONFIG": "{\"key\":\"value\"}",
"SECURITY": "YOUR_API_KEY",
"CONFIG_PATH": "mcp_server/mcp_config.json"
}
}
}
}You run an MCP Server that exposes a Model Context Protocol interface for the Google Workload Manager API. This server lets MCP clients interact with the API in a standardized way, enabling you to query, update, and manage workload resources through MCP-compatible requests while keeping your tooling decoupled from direct API calls.
Start the MCP server using a local, self-contained process. You will run a single command that launches the server in stdio mode and then connect your MCP client to it. The server accepts configuration through environment variables or a JSON config file so you can tailor security and behavior to your environment.
Prerequisites you need before installing and running: Python 3.9 or newer, and the Python package installer (pip) along with the uv runtime for optional execution. You will install dependencies and then start the server.
# Step 1: Install dependencies
pip install -e ".[dev]"
# If you prefer, install via uv
uv pip install --editable ".[dev]"
# Step 2: Run static checks and tests locally when desired
ruff check
ruff format
./scripts/static-analysis.sh
./scripts/test.shThe server is started with a standard Python invocation in stdio mode. You can also influence runtime behavior using environment variables. The following start command is the definitive runtime for launching the server locally.
python mcp_server/main.py stdioLinting and formatting tool used to ensure code quality and consistency.
Static type checking tool to catch type errors before runtime.
Testing framework used to run unit and integration tests.
Hook-based checks that run before every commit to enforce quality gates.
Build and publish tool used to package the MCP server.
Script that runs static analysis tools like mypy, bandit, and semgrep for security and quality checks.