Skip to main content
Glama
App.swift1 kB
import MenuBarExtraAccess import SwiftUI @main struct App: SwiftUI.App { @StateObject private var serverController = ServerController() @AppStorage("isEnabled") private var isEnabled = true @State private var isMenuPresented = false var body: some Scene { MenuBarExtra("iMCP", image: #"MenuIcon-\#(isEnabled ? "On" : "Off")"#) { ContentView( serverManager: serverController, isEnabled: $isEnabled, isMenuPresented: $isMenuPresented ) } .menuBarExtraStyle(.window) .menuBarExtraAccess(isPresented: $isMenuPresented) Settings { SettingsView(serverController: serverController) } .commands { CommandGroup(replacing: .appTermination) { Button("Quit") { NSApplication.shared.terminate(nil) } .keyboardShortcut("q", modifiers: .command) } } } }

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/mattt/iMCP'

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