MCPKit

0.6.0

Batteries-included scaffolding for exposing a Swift app's features as a Model Context Protocol (MCP) server, built on the official MCP Swift SDK.
adamtheturtle/MCPKit

What's New

0.6.0

2026-09-08T13:06:55Z
  • Reject NUL bytes and invalid UTF-8 in text tool results.
  • Add ResourceError and map it through MCP server resource reads.
  • Harden tool schema conversion with object-schema validation, diagnostics, and annotation metadata.
  • Avoid fetching the advertised tool list before callTool unless debug logging is enabled.
  • Log calls whose names are absent from the advertised tool list.
  • Add a runnable stdio server example based on MCPToolProvider.

What's Changed

Full Changelog: 0.5.1...0.6.0

MCPKit

Swift versions Platforms

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

Installation

.package(url: "https://github.com/adamtheturtle/MCPKit.git", from: "0.1.0")

Add the MCPKit product to your target dependencies.

Product

  • 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.

Client configuration migration

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.

Requirements

  • Swift 6.1+
  • macOS 13+, Mac Catalyst 16+, iOS 16+, watchOS 9+, tvOS 16+, or visionOS 1+

Testing

Unit tests use Swift Testing. See Docs/SwiftTestingMigration.md for the migration status and contribution notes.

License

MIT. See LICENSE.

Description

  • Swift Tools 6.1.0
View More Packages from this Author

Dependencies

Last updated: Sun Sep 13 2026 09:29:43 GMT-0900 (Hawaii-Aleutian Daylight Time)