Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

51 lines
1.7 KiB
Swift

//
// MCPPackage.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct MCPPackage: Sendable, Codable, ParameterConvertible, Hashable {
/** Identifier is the package name or download URL. */
public var identifier: String?
/** Registry is where the package is fetched from: npm, pypi, oci, nuget, mcpb. */
public var registry: String?
/** Runtime is the publisher's hint for what launches it: npx, uvx, docker. */
public var runtime: String?
/** Transport is what the launched process speaks: usually \"stdio\". */
public var transport: String?
/** Version is the exact published package version. */
public var version: String?
public init(identifier: String? = nil, registry: String? = nil, runtime: String? = nil, transport: String? = nil, version: String? = nil) {
self.identifier = identifier
self.registry = registry
self.runtime = runtime
self.transport = transport
self.version = version
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case identifier
case registry
case runtime
case transport
case version
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(identifier, forKey: .identifier)
try container.encodeIfPresent(registry, forKey: .registry)
try container.encodeIfPresent(runtime, forKey: .runtime)
try container.encodeIfPresent(transport, forKey: .transport)
try container.encodeIfPresent(version, forKey: .version)
}
}