McpServer.Tool.Meta (HTTP MCP Server v0.8.0)

View Source

Metadata container for tool UI configuration.

Wraps McpServer.Tool.Meta.UI and is serialized as the _meta field on tools.

Fields

Examples

iex> McpServer.Tool.Meta.new(ui: McpServer.Tool.Meta.UI.new(resource_uri: "ui://dashboard"))
%McpServer.Tool.Meta{ui: %McpServer.Tool.Meta.UI{resource_uri: "ui://dashboard", visibility: [:model, :app]}}

iex> McpServer.Tool.Meta.new()
%McpServer.Tool.Meta{ui: nil}

Summary

Functions

Creates a new Tool.Meta struct.

Types

t()

@type t() :: %McpServer.Tool.Meta{ui: McpServer.Tool.Meta.UI.t() | nil}

Functions

new(opts \\ [])

@spec new(keyword()) :: t()

Creates a new Tool.Meta struct.

Parameters