Package org.apache.juneau.bean.mcp.v20260728
package org.apache.juneau.bean.mcp.v20260728
Juneau
@Marshalled types for the Model Context Protocol (MCP) wire format.
Wire beans for MCP revision 2026-07-28.
See Also:
-
ClassDescriptionMCP
audiocontent block (base64 data).Base64 blob body forresources/readresults or embedded resource content.CacheableResult<T extends CacheableResult<T>>Shared SEP-2549 cache-hint base for the five cacheable2026-07-28result carriers (tools/list,prompts/list,resources/list,resources/templates/list, andresources/read).Parameters for "tools/call".Result payload for "tools/call".MCP client capability advertisement carried by RequestMeta.Parameters for "completion/complete".Result payload for "completion/complete".Completion values for a "completion/complete" request.Identifies the prompt argument or resource-template variable being completed, and its current partial value.Empty marker capability advertising "completion/complete" support (structure may grow with the spec).Optional already-resolved argument values supplied alongside acompletion/completerequest.Polymorphic "completion/complete" target reference (prompt or resource template).Polymorphic MCP content block (tool results, prompt messages).Parameters for "sampling/createMessage", a server-to-client duplex request (MCP sampling).Result payload for "sampling/createMessage" (MCP sampling).Closed action set for an elicitation answer (MCP2026-07-28SEP-2322).Client elicitation capability (SEP-2322): presence onClientCapabilities.getElicitation()signals the client understandsinput_requiredelicitation-flavored requests.One entry of aninput_requiredpause'sinputRequestsmap for an elicitation sub-request (MCP2026-07-28SEP-2322), built by atools/call/prompts/get/resources/readhandler and placed viaorg.apache.juneau.rest.server.mcp.v20260728.ElicitationRequests.The end user's answer to anElicitRequest(MCP2026-07-28SEP-2322), echoed back keyed by the same server-assigned id in a follow-up request'sinputResponsesand decoded viaorg.apache.juneau.rest.server.mcp.v20260728.ElicitationResponses.Fluent builder for a restricted elicitation JSON Schema (MCP2026-07-28SEP-2322), producing theJsonMapconsumed byElicitRequest.setRequestedSchema(java.util.Map).MCPresourcecontent block (inline resource body).Parameters for "prompts/get".Result payload for "prompts/get".MCP icon descriptor (the schema'sIcons.iconsentry shape), used byImplementation.Icon color-scheme hint, restricted to the schema's two legal values (MCP wire uses lowercase strings).MCPimagecontent block (base64 data).MCPImplementationobject (BaseMetadata+Iconsper the schema): requiredname/version, plus optionaltitle,description, and orderedicons.Result of atools/call,prompts/get, orresources/readhandler pausing to request more input (MCP2026-07-28SEP-2322 Multi-Round-Trip Requests).Result payload for "prompts/list".Result payload for "resources/list".Result payload for "resources/templates/list".Result payload for "tools/list".Server logging capability marker (structure may grow with the spec).SEP-2549 cache-hint authorization scope for aCacheableResult(MCP wire uses lowercase strings).JSON-RPC method names used by MCP over HTTP.MCP protocol version strings carried in per-request_metaandserver/discover.Shared SEP-2243 routing-name helper used by both the2026-07-28server adapter and client adapter.A model family/name hint forModelPreferences.getHints()(MCP sampling).Model-selection preferences forCreateMessageRequest(MCP sampling).Result payload for "ping".MCP prompt descriptor (prompts/listentry).Declared argument for an MCP prompt.Server capability flags for prompts.Single message line insideGetPromptResult.CompletionReferencetargeting a declared prompt by name.Params for thenotifications/prompts/list_changednotification.Parameters for "resources/read".Result payload for "resources/read".Opaque per-request MCP metadata carried under the JSON-RPCparams._metaproperty.RequestParams<T extends RequestParams<T>>CRTP base for MCP2026-07-28request params carrying optional negotiation/trace metadata under the reserved_metawire key.Metadata-only request params carrier for v2 methods whose only common params member is_meta.MCP resource descriptor (resources/listentry).Server capability flags for resources.Polymorphic MCP resource body (text or base64 blob).Params for thenotifications/resources/list_changednotification.MCP resource-template descriptor (resources/templates/listentry).CompletionReferencetargeting a registered resource template by its exact URI-template string.Params for thenotifications/resources/updatednotification: a specific subscribed resource's content changed.CRTP base for every successful MCP2026-07-28result, carrying the requiredresultTypediscriminator and optionalResultMetaunder the reserved_metawire key.Opaque per-result MCP metadata carried under the JSON-RPCresult._metaproperty.Role forPromptMessageentries (MCP wire uses lowercase strings).Client roots capability.Client sampling capability marker (MCP sampling): presence onClientCapabilities.getSampling()signals the client understands "sampling/createMessage".One message inCreateMessageRequest.getMessages()(MCP sampling).MCP server capability advertisement returned byServerDiscoverResult.Result payload for "server/discover".Wire filter forsubscriptions/listen: which notification kinds and resource URIs a client wants (seeSubscriptionsListenRequest.getNotifications()), or the honored subset a server actually granted (seeSubscriptionsAcknowledgedNotification.getNotifications()).Mandatory first frame on every acceptedsubscriptions/listenstream: echoes the honored subset of the client's requestedSubscriptionFilter(after capability gating).Request params forsubscriptions/listen(SEP-2575): the requested notification filter.Terminal JSON-RPC result for a gracefully-closedsubscriptions/listenstream.MCPtextcontent block.Text body forresources/readresults or embedded resource content.MCP tool descriptor (tools/listentry).Server capability flags for tools.Params for thenotifications/tools/list_changednotification.