#!/usr/bin/env node import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { createInternalRelayCast } from '@relaycast/sdk/internal'; import { type SessionState } from '@relaycast/mcp/dist/types.js'; type AgentType = 'agent' | 'human'; type RelayCastLike = ReturnType; export interface PatchedMcpServerOptions { apiKey?: string; baseUrl?: string; agentToken?: string; agentName?: string; agentType?: AgentType; strictAgentName?: boolean; telemetryTransport?: 'stdio' | 'http'; } type RegistrationSession = Pick; type SessionSetter = (partial: Partial) => void; type RegisterAgentWithRebindArgs = { session: RegistrationSession; setSession: SessionSetter; getRelay: () => RelayCastLike; name: string; type?: AgentType; persona?: string; metadata?: Record; strictAgentName?: boolean; preferredAgentName?: string | null; forcedAgentType?: AgentType; }; export declare function normalizeBaseUrl(baseUrl?: string): string; export declare function envFlagEnabled(value: string | undefined): boolean; export declare function normalizeAgentType(value: string | undefined): AgentType | undefined; export declare function registerAgentWithRebind({ session, setSession, getRelay, name, type, persona, metadata, strictAgentName, preferredAgentName, forcedAgentType, }: RegisterAgentWithRebindArgs): Promise>; export declare function createPatchedRelayMcpServer(options: PatchedMcpServerOptions): McpServer; export declare function resolvePatchedStdioBootstrapOptions(options: PatchedMcpServerOptions): Promise; export declare function startPatchedStdio(options: PatchedMcpServerOptions): Promise; export declare function optionsFromEnv(): PatchedMcpServerOptions; export {}; //# sourceMappingURL=relaycast-mcp.d.ts.map