Snodo.ServerCard (snodo v0.5.0)

Copy Markdown View Source

Builds public MCP Server Cards and optional site-wide AI Catalog documents.

Only use public identity metadata and URLs when publishing these documents.

Summary

Functions

Builds a v1 Server Card from a runtime and its public Streamable HTTP URL.

Builds an AI Catalog v1.0 from a list of {identifier, hosted_card_url} pairs.

The media type of a hosted MCP Server Card.

Functions

build(runtime, endpoint_url)

@spec build(Snodo.Server.Runtime.t(), String.t()) :: map()

Builds a v1 Server Card from a runtime and its public Streamable HTTP URL.

The runtime's name must use the schema's namespace/name format, and its description is required. Invalid card metadata raises ArgumentError.

catalog(entries)

@spec catalog([{String.t(), String.t()}]) :: map()

Builds an AI Catalog v1.0 from a list of {identifier, hosted_card_url} pairs.

Serve the result as application/ai-catalog+json at your site's /.well-known/ai-catalog.json route.

media_type()

@spec media_type() :: String.t()

The media type of a hosted MCP Server Card.