EU Parliament Monitor - API Documentation - v0.7.0
    Preparing search index...

    Module MCP/MCPConnection

    Base MCP client — JSON-RPC 2.0 transport over stdio or HTTP gateway. Supports two transport modes:

    • stdio: Spawns the EP MCP server binary as a child process (default)
    • gateway: Connects to an MCP Gateway via HTTP (for agentic workflow environments)

    Gateway mode is activated when EP_MCP_GATEWAY_URL env var is set or gatewayUrl is provided in options.

    Classes

    MCPConnection

    Functions

    parseSSEResponse