npm · @james.valencia/mcp-reportia
$npx -y @james.valencia/mcp-reportia@0.3.2 REPORTIA_BASE_URL (required) — Base URL of the Reportia API (without trailing slash). Example: https://reportia.example.com
REPORTIA_TOKEN · secret — Bearer token for M2M authentication. Mutually exclusive with REPORTIA_COOKIE; either can be paired with REPORTIA_EMAIL+REPORTIA_PASSWORD (session login) for cookie fallback.
REPORTIA_COOKIE · secret — Pre-issued Reportia session cookie (e.g. connect.sid=s%3A...). For upstream callers that already hold the resolved user's session and want the child to authenticate as that user without re-login. Mutually exclusive with REPORTIA_TOKEN. Skips /api/auth/login and /api/auth/logout.
REPORTIA_EMAIL — Email for cookie-session authentication.
REPORTIA_PASSWORD · secret — Password for cookie-session authentication.
REPORTIA_COMPANY_ID — Default companyId used when a tool accepts it as optional.
REPORTIA_TIMEOUT_MS — HTTP request timeout in milliseconds (default 30000).
REPORTIA_DOWNLOAD_DIR — Directory where downloaded Excel/PDF exports are saved (default ./downloads).
REPORTIA_USER_AGENT — Custom User-Agent header (default mcp-reportia/0.1.0).
REPORTIA_MAX_DOWNLOAD_BYTES — Maximum bytes for a single binary download (default 104857600 = 100MB).