Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,16 @@ import PackageDescription
var dependencies: [Package.Dependency] = [
.package(url: "https://github.com/apple/swift-system.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.5.0"),
.package(url: "https://github.com/loopwork-ai/eventsource.git", from: "1.1.0")
]

// Target dependencies needed on all platforms
var targetDependencies: [Target.Dependency] = [
.product(name: "SystemPackage", package: "swift-system"),
.product(name: "Logging", package: "swift-log"),
.product(name: "EventSource", package: "eventsource", condition: .when(platforms: [.macOS, .iOS, .tvOS, .visionOS, .watchOS]))
]

// Add EventSource only on Apple platforms (non-Linux)
#if !os(Linux)
dependencies.append(
.package(url: "https://github.com/loopwork-ai/eventsource.git", from: "1.1.0"))
targetDependencies.append(.product(name: "EventSource", package: "eventsource"))
#endif

let package = Package(
name: "mcp-swift-sdk",
platforms: [
Expand Down