home / mcp / phantauth mcp server

Phantauth MCP Server

MCP Server generated by mcp.ag2.ai

Installation
Add the following to your MCP client configuration file.

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.

How to use

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.

How to install

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

Additional setup notes

Running the server uses a Python script. You configure runtime behavior with environment variables or a JSON configuration file.

python mcp_server/main.py stdio

Configuration and running notes

Environment 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"}'

Development and quality

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.sh

Available tools

start_server

Start the MCP server in the desired transport mode (e.g., stdio). This tool includes loading configuration and entering the MCP event loop.

lint

Check code for linting issues using the Ruff tool and fix format as needed.

format

Auto-format code to conform to style standards using Ruff.

static_analysis

Run static analysis tools (mypy, bandit, semgrep) to ensure type safety and security checks.

test

Run test suite with pytest and generate coverage reports.

pre_commit

Install and run pre-commit hooks to enforce quality on commits.