Add support for Linux with glibc (#61)

* Conditionally import Glibc on Linux for fcntl calls

* Extract transport implementations into separate files

* Fix warning in test

* Add ubuntu-latest to CI test matrix

* Switch to vapor/swiftly-action for setup step

* Configure Prettier extension to format GitHub Actions workflows

* Setup with different actions depending on platform

* Rename step

* Rename job

* Update README
This commit is contained in:
Mattt 2025-04-10 05:22:56 -07:00 • committed by GitHub
commit 1e61f205a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,12 +4,20 @@ Swift implementation of the [Model Context Protocol][mcp] (MCP).
## Requirements
- Swift 6.0+ / Xcode 16+
- macOS 13.0+
- iOS / Mac Catalyst 16.0+
- watchOS 9.0+
- tvOS 16.0+
- visionOS 1.0+
- Swift 6.0+ (Xcode 16+)
### Supported Platforms
| Platform | Minimum Version |
|----------|----------------|
| macOS | 13.0+ |
| iOS / Mac Catalyst | 16.0+ |
| watchOS | 9.0+ |
| tvOS | 16.0+ |
| visionOS | 1.0+ |
| Linux | ✓ [^1] |
[^1]: Linux support requires glibc-based distributions such as Ubuntu, Debian, Fedora, CentOS, or RHEL. Alpine Linux and other musl-based distributions are not supported.
## Installation