Files
Termind/Frameworks/TermindApplication/Agent/MCPAuthorizationPrompt.swift
T
Kaede Akino 4d6e4481c0 feat(mcp): add OAuth and 2025-03-26 compatibility
Integrate AgentKit 0.18.1 with native authorization on macOS and iOS, device-local OAuth credentials, V43 configuration persistence, and Assistant authorization prompts.

Add HTTPS callback metadata, keep native callbacks safe across actor boundaries, and distinguish authorization setup failures from cancellation. Extend the external MCP server to negotiate 2025-03-26.
2026-09-28 12:36:32 +08:00

15 lines
483 B
Swift

import AgentKit
import Foundation
/// Ephemeral interaction only. The browser URL and callback never enter the transcript or persistence.
public nonisolated struct MCPAuthorizationPrompt: Identifiable, Sendable {
public var id: UUID { request.id }
public let request: MCPAuthorizationRequest
public let createdAt: Date
public init(request: MCPAuthorizationRequest, createdAt: Date = .now) {
self.request = request
self.createdAt = createdAt
}
}