import type { LoadedMcpConfig } from "@earendil-works/pi-coding-agent"; import type { TmsAccess } from "../prompt/testomat.io.js"; export declare const SERVER = "testomatio"; /** * The Testomat.io MCP server needs a project id as well as a token — a token on * its own does not identify a project to it. Without one the agent still reaches * the project through `check-tests` and REST, which need only the token, so the * prompt says exactly that instead of naming tools that are not there. */ export declare function tmsAccess(): TmsAccess; export declare function hasTestomatio(): boolean; export declare function hasMcp(): boolean; export interface EnvMcpServer { url: string; headers: Record; } /** * Extra MCP servers handed to a run from outside — the Testeiya Hub passes the * company's connected services (Linear, Jira, …) this way. Inline JSON: * `{ "": { "url": "…", "headers": { … } } }`. A bad value warns and runs * without the servers, the same soft failure as a broken config file. * * Parsed once per value, so a warning prints once however often it is read. */ export declare class EnvMcpServers { private static parsedFrom; private static parsed; static read(): Record; private static parse; private static headers; private static ignore; } export declare function envMcpServers(): Record; export declare function mcpServerScript(): string; /** * The servers pi's MCP extension connects, built from the environment: the * Testomat.io one, plus any handed in through TESTEIYA_MCP_SERVERS. Replaces * pi's own config loading, so a CI clone cannot point the agent at an MCP * server of its own through `.pi/mcp.json`. */ export declare function mcpConfig(): LoadedMcpConfig;