Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
The projection these were generated from predated the compute migration, so
they described /v1/visor — which the API serves at zero paths now.

No /v1/visor path survives here.
2026-09-05 18:55:38 -07:00

41 lines
1.4 KiB
Swift

//
// AiMCPSurface.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct AiMCPSurface: Sendable, Codable, ParameterConvertible, Hashable {
/** Apps is one row per subsystem this deployment composes, in manifest order. */
public var apps: [AiMCPApp]?
/** Names are this process's own tool names, present only when the query asked for them. */
public var names: [String]?
/** Tools is how many tools THIS PROCESS's MCP server carries: its own typed-op registry, projected. It is the only number a subsystem can state honestly — what the FLEET's server carries is a question only the host can ask, and it asks it by asking every subsystem (POST /v1/mcp, tools/list). */
public var tools: Int64?
public init(apps: [AiMCPApp]? = nil, names: [String]? = nil, tools: Int64? = nil) {
self.apps = apps
self.names = names
self.tools = tools
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case apps
case names
case tools
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(apps, forKey: .apps)
try container.encodeIfPresent(names, forKey: .names)
try container.encodeIfPresent(tools, forKey: .tools)
}
}