Skip to main content
Glama
TestHostApp.swift883 B
import AppKit import SwiftUI @main struct TestHostApp: App { @NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate var body: some Scene { WindowGroup { ContentView() .frame(minWidth: 600, minHeight: 500) .frame(width: 800, height: 600) } .windowResizability(.contentSize) .windowStyle(.titleBar) .defaultSize(width: 800, height: 600) } } class AppDelegate: NSObject, NSApplicationDelegate { func applicationDidFinishLaunching(_ notification: Notification) { // Make sure the app appears in foreground NSApp.activate(ignoringOtherApps: true) // Set activation policy to regular app NSApp.setActivationPolicy(.regular) } func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { true } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/steipete/Peekaboo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server