import type { Transport } from '@modelcontextprotocol/sdk/shared/transport.js'; import { type BlackboardClientDependencies } from '../agent-blackboard/client.mts'; import type { RunTextCommand } from '../gh-cli/exec.mts'; import { type SdkImporter } from './sdk.mts'; export type RunMcpServerOptions = { cwd: string; env: NodeJS.ProcessEnv; version: string; importSdk?: SdkImporter; runGit?: RunTextCommand; /** Defaults to stdio. Tests pass one half of an in-memory pair. */ transport?: Transport; /** Test seam: where the startup check looks for `agent-blackboard`. Defaults to this module. */ resolveFrom?: string | URL; /** Test seam: replaces how the consumer's `agent-blackboard` client is loaded. */ blackboard?: BlackboardClientDependencies; }; /** * Starts the server and resolves once it is connected. Nothing on this path may write to stdout: * stdout is the protocol channel, so diagnostics go to stderr. */ export declare function runMcpServer(options: RunMcpServerOptions): Promise;