EU Parliament Monitor — API Documentation - v0.8.59
    Preparing search index...
    • Read and parse the gh-aw MCP config file, returning gateway connection details. Returns undefined fields when the config file is absent, the relevant fields are missing, or parsing fails.

      Never throws — all errors are silently swallowed and result in an empty config so that callers can always fall back to defaults.

      Parameters

      • configPath: string

        Absolute path to mcp-config.json.

      • readFileImpl: (path: string, encoding: BufferEncoding) => string = fs.readFileSync

        Injectable file-read function (default: fs.readFileSync). Accepts the same (path, encoding) signature. Used for unit-test injection.

      Returns GatewayConfig

      Parsed gateway config (fields may be undefined).