A desktop coding agent with free access to frontier models.
TypeScript
/** @jsxImportSource react */
import type { Client } from "../../../app/types";
import type { McpDirectoryInfo } from "../../../app/constants";
import { McpAuthModal } from "./mcp-auth-modal";
export type ConnectionsModalsState = {
mcpAuthModalOpen: boolean;
mcpAuthEntry: McpDirectoryInfo | null;
mcpAuthNeedsReload: boolean;
};
export type ConnectionsModalsProps = {
client: Client | null;
projectDir: string;
reloadBlocked: boolean;
activeSessions: Array<{ id: string; title: string }>;
isRemoteWorkspace: boolean;
onForceStopSession: (sessionID: string) => void | Promise<void>;
onReloadEngine: () => void | Promise<void>;
modalState: ConnectionsModalsState;
onCloseMcpAuthModal: () => void;
onMcpAuthenticated: (name: string) => void;
onCompleteMcpAuthModal: () => void | Promise<void>;
};
export default function ConnectionsModals(props: ConnectionsModalsProps) {
return (
<McpAuthModal
open={props.modalState.mcpAuthModalOpen}
client={props.client}
entry={props.modalState.mcpAuthEntry}
projectDir={props.projectDir}
reloadRequired={props.modalState.mcpAuthNeedsReload}
reloadBlocked={props.reloadBlocked}
activeSessions={props.activeSessions}
isRemoteWorkspace={props.isRemoteWorkspace}
onForceStopSession={props.onForceStopSession}
onClose={props.onCloseMcpAuthModal}
onAuthenticated={props.onMcpAuthenticated}
onComplete={props.onCompleteMcpAuthModal}
onReloadEngine={props.onReloadEngine}
/>
);
}