Skip to main content
Glama
main.swift668 B
import Foundation import PeekabooCore final class PeekabooVisualizerBridgeService: NSObject, NSXPCListenerDelegate { private let broker = VisualizerEndpointBroker() func listener(_ listener: NSXPCListener, shouldAcceptNewConnection newConnection: NSXPCConnection) -> Bool { newConnection.exportedInterface = NSXPCInterface(with: VisualizerEndpointBrokerProtocol.self) newConnection.exportedObject = self.broker newConnection.resume() return true } } let serviceDelegate = PeekabooVisualizerBridgeService() let listener = NSXPCListener.service() listener.delegate = serviceDelegate listener.resume() RunLoop.current.run()

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