import type { McpToolEntry } from '@mavis/agent-tools'; import type { LocalMavisMcpAdapter } from '@mavis/agent-tools/desktop'; import type { LocalRuntimeAuthContext } from './model-resolver.js'; import type { LocalRuntimeRoutingContext } from './routing-headers.js'; /** @deprecated Read-only wiring for old turn/Skill consumers; remove after their v2 cutover. */ export interface LocalMcpRuntimeCapability { isBuiltinMatrixAvailable(): boolean; readConfiguredServerNames(): Promise>; createMavisAdapter( emit: (type: string, payload: Record) => void, ): LocalMavisMcpAdapter; listToolEntriesForTurn(input: { sessionId: string; workspaceRoot: string; authContext?: LocalRuntimeAuthContext; routingContextGetter?: () => LocalRuntimeRoutingContext | undefined; emitBusEvent(type: string, payload: Record): void; }): Promise; }