Skip to main content
Glama

Peekaboo MCP

by steipete
ConfigCommandTests.swiftβ€’2.73 kB
import ArgumentParser import Foundation import Testing @testable import peekaboo @Suite("ConfigCommand Tests") struct ConfigCommandTests { @Test("ConfigCommand exists and has correct subcommands") func configCommandStructure() { // Verify the command exists let command = ConfigCommand.self // Check command configuration #expect(command.configuration.commandName == "config") #expect(command.configuration.abstract == "Manage Peekaboo configuration using PeekabooCore") // Check subcommands let subcommands = command.configuration.subcommands #expect(subcommands.count == 5) let hasInit = subcommands.contains { $0 == ConfigCommand.InitCommand.self } #expect(hasInit) let hasShow = subcommands.contains { $0 == ConfigCommand.ShowCommand.self } #expect(hasShow) let hasEdit = subcommands.contains { $0 == ConfigCommand.EditCommand.self } #expect(hasEdit) let hasValidate = subcommands.contains { $0 == ConfigCommand.ValidateCommand.self } #expect(hasValidate) let hasSetCredential = subcommands.contains { $0 == ConfigCommand.SetCredentialCommand.self } #expect(hasSetCredential) } @Test("InitCommand has correct configuration") func initCommand() { let command = ConfigCommand.InitCommand.self #expect(command.configuration.commandName == "init") #expect(command.configuration.abstract == "Create a default configuration file") } @Test("ShowCommand has correct configuration") func showCommand() { let command = ConfigCommand.ShowCommand.self #expect(command.configuration.commandName == "show") #expect(command.configuration.abstract == "Display current configuration") } @Test("EditCommand has correct configuration") func editCommand() { let command = ConfigCommand.EditCommand.self #expect(command.configuration.commandName == "edit") #expect(command.configuration.abstract == "Open configuration file in your default editor") } @Test("ValidateCommand has correct configuration") func validateCommand() { let command = ConfigCommand.ValidateCommand.self #expect(command.configuration.commandName == "validate") #expect(command.configuration.abstract == "Validate configuration file syntax") } @Test("SetCredentialCommand has correct configuration") func setCredentialCommand() { let command = ConfigCommand.SetCredentialCommand.self #expect(command.configuration.commandName == "set-credential") #expect(command.configuration.abstract == "Set an API key or credential securely") } }

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