Noizu.MCP.Types.Resource (Noizu MCP v0.1.3)

Copy Markdown View Source

An MCP resource definition as advertised by resources/list.

Summary

Types

t()

@type t() :: %Noizu.MCP.Types.Resource{
  annotations: map() | nil,
  description: String.t() | nil,
  icons: [map()] | nil,
  meta: map() | nil,
  mime_type: String.t() | nil,
  name: String.t() | nil,
  size: non_neg_integer() | nil,
  title: String.t() | nil,
  uri: String.t()
}

Functions

from_map(map)

@spec from_map(map()) :: t()

to_map(resource)

@spec to_map(t()) :: map()