Skip to main content
Glama
ContentView.swift1.1 kB
// // ContentView.swift // MCPTest // // Created by Cameron on 16/02/2025. // import SwiftUI import OSLog struct ContentView: View { @State private var text: String = "" var body: some View { VStack { Image(systemName: "globe") .imageScale(.large) .foregroundStyle(.tint) TextField("Enter text", text: $text) .textFieldStyle(RoundedBorderTextFieldStyle()) .padding(.horizontal) Text(text) Button("Log something") { let message = ProcessInfo.processInfo.environment.map { "\($0.key): \($0.value)" }.joined(separator: "\n") Logger.myApp.debug("Environment: \(message)") debugPrint("Button was pressed.") text = "You just pressed the button!" } } .padding() } } #Preview { ContentView() } // OS Log Extension extension Logger { static let myApp = Logger( subsystem: "com.cameroncooke.MCPTest", category: "default" ) }

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/SampsonKY/XcodeBuildMCP'

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