OzMcp.Structs.Implementation (OzMcp v0.9.0)

Copy Markdown View Source

Helper module used to build Implementation structure.

(MCP protocol: 2025-11-25)

Short example:

%Implementation{}
  |> Implementation.name("my-server")
  |> Implementation.title("My MCP Server")
  |> Implementation.version("1.0.0")
  |> Implementation.build()

Result:

%{name: "my-server", version: "1.0.0", title: "My MCP Server"}

Specification: Implementation

Fields

FieldSetterTypeRequired
iconsicons/2list of OzMcp.Structs.Icon.t/0no
namename/2stringyes
titletitle/2stringno
versionversion/2stringyes
descriptiondescription/2stringno
websiteUrlwebsite_url/2stringno

Summary

Types

t()

@type t() :: %OzMcp.Structs.Implementation{
  description: String.t() | nil,
  icons: [OzMcp.Structs.Icon.t()] | nil,
  name: String.t(),
  title: String.t() | nil,
  version: String.t(),
  websiteUrl: String.t() | nil
}

Functions

build(struct)

@spec build(t()) :: map()

description(struct, value)

@spec description(t(), String.t() | nil) :: t()

icons(struct, value)

@spec icons(t(), [OzMcp.Structs.Icon.t()] | nil) :: t()

name(struct, value)

@spec name(t(), String.t()) :: t()

title(struct, value)

@spec title(t(), String.t() | nil) :: t()

version(struct, value)

@spec version(t(), String.t()) :: t()

website_url(struct, value)

@spec website_url(t(), String.t() | nil) :: t()