Model Context Protocol Server for Swift
SwiftMCP adopts a macro-based architecture to simplify the creation of MCP-compatible servers. The library uses Swift macros, such as @MCPServer
and @MCPTool
, to automatically extract metadata from code and generate the necessary JSON-RPC interface. This approach reduces boilerplate code and improves developer experience by automating schema generation and server configuration.
Swift
4