Scaffolding for exposing Swift app features as a Model Context Protocol server, built on the official MCP Swift SDK.
Documentation | Swift Package Index | Release notes
.package(url: "https://github.com/adamtheturtle/MCPKit.git", from: "0.1.0")Add the MCPKit product to your target dependencies.
MCPKit: Provider protocols, server bootstrap, argument helpers, result builders, and activity logging for MCP integrations.MCPKitExample: Minimal stdio host (swift run MCPKitExample --mcp) demonstrating tools, prompts, and bootstrap.
Applications that show client setup instructions or edit client configuration should use
MCPClientInstall and its
MCPDesktopClient catalogue. Keeping client paths, formats, snippets, and safe file
editing in that package prevents duplicate catalogues from drifting.
- Swift 6.1+
- macOS 13+, Mac Catalyst 16+, iOS 16+, watchOS 9+, tvOS 16+, or visionOS 1+
Unit tests use Swift Testing. See Docs/SwiftTestingMigration.md for the migration status and contribution notes.
MIT. See LICENSE.