Interface McpResponseMarshaler
Converts app-owned structured content objects into
McpValue.- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull McpResponseMarshalerAcquires Soklet's default structured-content marshaler.marshalStructuredContent(@Nullable Object value, @NonNull McpStructuredContentContext context) Converts app-owned structured content into anMcpValuetree that Soklet can embed into the MCP response.
-
Method Details
-
marshalStructuredContent
@NonNull McpValue marshalStructuredContent(@Nullable Object value, @NonNull McpStructuredContentContext context) Converts app-owned structured content into anMcpValuetree that Soklet can embed into the MCP response.- Parameters:
value- the app-owned structured content value, possiblynullcontext- the marshaling context for the current tool call- Returns:
- the marshaled MCP value
-
defaultInstance
Acquires Soklet's default structured-content marshaler.- Returns:
- the default marshaler instance
-