Skip to main content
Glama
CommandProtocols.swift1.08 kB
@preconcurrency import ArgumentParser import Foundation // MARK: - Concurrency Helpers /// Marker protocol that bridges `ParsableArguments` into our MainActor-isolated world. @preconcurrency @MainActor protocol MainActorParsableArguments: ParsableArguments {} /// Marker protocol that bridges `AsyncParsableCommand` into our MainActor-isolated world. @preconcurrency @MainActor protocol MainActorAsyncParsableCommand: AsyncParsableCommand {} /// Marker protocol that bridges `ParsableCommand` into our MainActor-isolated world. @preconcurrency @MainActor protocol MainActorParsableCommand: ParsableCommand {} // MARK: - Verbose Protocol /// Protocol for commands that support verbose logging protocol VerboseCommand { var verbose: Bool { get } } extension VerboseCommand { /// Configure logger for verbose mode if enabled func configureVerboseLogging() { // Configure logger for verbose mode if enabled Logger.shared.setVerboseMode(verbose) if verbose { Logger.shared.verbose("Verbose logging enabled") } } }

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