Skip to main content
Glama

Peekaboo MCP

by steipete
ClickCommandTests.swiftβ€’1.23 kB
import ArgumentParser import Foundation import Testing @testable import peekaboo @Suite("ClickCommand Tests") struct ClickCommandTests { @Test("Click command requires argument or option") func requiresArgumentOrOption() async throws { var command = ClickCommand() command.jsonOutput = true // Should fail without any arguments await #expect(throws: (any Error).self) { try await command.run() } } @Test("Click command parses coordinates correctly") func parsesCoordinates() async throws { var command = ClickCommand() command.coords = "100,200" command.jsonOutput = true // This will fail because there's no session, but it should get past argument parsing await #expect(throws: (any Error).self) { try await command.run() } } @Test("Click command validates coordinate format") func validatesCoordinateFormat() async throws { var command = ClickCommand() command.coords = "invalid" command.jsonOutput = true // Should fail with validation error await #expect(throws: (any Error).self) { try await command.run() } } }

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