home / mcp / phantauth mcp server
MCP Server generated by mcp.ag2.ai
Configuration
View docs{
"mcpServers": {
"ag2-mcp-servers-phantauth": {
"command": "python",
"args": [
"mcp_server/main.py",
"stdio"
],
"env": {
"CONFIG": "JSON string containing the MCP configuration",
"SECURITY": "Security parameters such as API keys",
"CONFIG_PATH": "Path to a JSON configuration file for the MCP server"
}
}
}
}You can run an MCP server that exposes a programmable interface for the OpenAPI-described API at phantauth.net. This server acts as a bridge between MCP clients and the underlying API, enabling standardized requests, context handling, and reliable transport. It is designed to be started locally or in a development environment and supports multiple transport modes to fit your tooling.
To interact with the MCP server, start it in stdio mode and connect your MCP client to the same process via standard input and output. You can also configure the server to load its settings from a JSON configuration file or environment variables. Once running, your client can request data, trigger actions, and receive responses in the MCP protocol format.
Prerequisites: Python 3.9 or later, and the ability to run Python tools via pip. You may also use uv as a lightweight runner.
pip install -e ".[dev]"uv pip install --editable ".[dev]"Running the server uses a Python script. You configure runtime behavior with environment variables or a JSON configuration file.
python mcp_server/main.py stdioEnvironment variables you can set to control the server include the path to a configuration file, a JSON string with the configuration, and security parameters.
CONFIG_PATH=/path/to/mcp_config.json
CONFIG='{"key":"value"}'
SECURITY='{"apiKey":"YOUR_API_KEY"}'The project uses a set of tooling for linting, formatting, static analysis, and tests to ensure code quality and reliability.
ruff check
ruff format
./scripts/static-analysis.sh
./scripts/test.shStart the MCP server in the desired transport mode (e.g., stdio). This tool includes loading configuration and entering the MCP event loop.
Check code for linting issues using the Ruff tool and fix format as needed.
Auto-format code to conform to style standards using Ruff.
Run static analysis tools (mypy, bandit, semgrep) to ensure type safety and security checks.
Run test suite with pytest and generate coverage reports.
Install and run pre-commit hooks to enforce quality on commits.