Package dev.tachyonmcp.api.server.domain
@NullMarked
package dev.tachyonmcp.api.server.domain
Domain types for MCP protocol data structures.
-
ClassDescriptionOptional metadata that clients can use to tailor how content is presented.Builder for
Annotations.Arguments container wrapping aJsonObjectwith optional deserialization support.An audio content block provided to or from an LLM.Builder forAudioContent.Binary resource contents, encoded as a base64 string.Builder forBlobResourceContents.A piece of content in a tool result, prompt message, or resource.MCP protocol type discriminator for content block variants.A complete resource embedded inline within a tool result, prompt, or other content.An empty response carrying only optional metadata.Requests user input via a form described by a JSON schema.Marks types that carry optional metadata (_meta) for protocol extensions.An icon entry for a tool or resource, pointing to an image resource.Builder forIcon.An image provided to or from an LLM.Builder forImageContent.A request for additional user input during a tool call or prompt get.Shared payload for an MCPinput_requiredoutcome: the pending input requests keyed by name, plus optional opaque continuation state.Thrown when a method argument cannot be decoded or validated.Logging levels matching the MCP protocol specification.An MCP progress token: an opaque value the client attaches to a request via_meta.progressTokenand the server echoes back onnotifications/progress.A progress token carrying a numeric value.A progress token carrying a string value.Describes a single argument accepted by a prompt template.A single message within a prompt, associating aRolewith itsContentBlock.A JSON-RPC 2.0 request/response id: a bare JSON string or number, never an object or array.An id carrying a numeric value.An id carrying a string value.The actual content of a resource, either text or binary.A reference to another resource, embedded within a content block.The sender of a message in a prompt or conversation.Requests user input by invoking another RPC method.Capabilities the server advertises to the client during initialization.Builder forServerCapabilities.Prompt capabilities.Resource capabilities.Server task capabilitiesTool capabilities.A protocol-neutral server error returned by server code.Categorizes the nature of a server error.Represents an async task that may complete, fail, require input, or report progress.A plain-text content block provided to or from an LLM.Text-based resource contents returned by a resource handler.Hints about tool behaviour that clients may use for safety or UX decisions.Reverse parser for RFC 6570 URI templates with scalar and unambiguous exploded list values.Value recovered from an RFC 6570 URI template.A scalar template variable.An exploded list template variable.Requests user input by opening a URL (e.g. for OAuth or form fill).