Current section

Files

Jump to
opencode_sdk lib opencode generated mcp_local_config.ex
Raw

lib/opencode/generated/mcp_local_config.ex

defmodule OpenCode.Generated.McpLocalConfig do
@moduledoc """
Provides struct and type for a McpLocalConfig
"""
@type t :: %__MODULE__{
command: [String.t()],
enabled: boolean | nil,
environment: map | nil,
timeout: number | nil,
type: String.t()
}
defstruct [:command, :enabled, :environment, :timeout, :type]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
command: [:string],
enabled: :boolean,
environment: :map,
timeout: :number,
type: {:const, "local"}
]
end
end