Class McpServerUtils
java.lang.Object
io.meeds.mcp.server.util.McpServerUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe optional argument every tool answering a list takes (returnsList(ToolCallback)), unless it declares one of its own with that name: the comma-separated top-level keys to keep in each item of a list result.static final StringThe description of theFIELDS_ARGUMENTargument, as clients list it. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.springframework.ai.tool.ToolCallback> aggregateToolCallbacks(org.springframework.beans.factory.ObjectProvider<List<org.springframework.ai.tool.ToolCallback>> toolCalls, List<org.springframework.ai.tool.ToolCallback> toolCallbacksList, List<org.springframework.ai.tool.ToolCallbackProvider> toolCallbackProvider) static org.springframework.util.MimeTypegetMimeType(String toolName) static List<io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification> toAsyncToolSpecification(List<org.springframework.ai.tool.ToolCallback> tools) static io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecificationtoAsyncToolSpecification(org.springframework.ai.tool.ToolCallback toolCallback, org.springframework.util.MimeType mimeType) static io.modelcontextprotocol.server.McpServerFeatures.SyncToolSpecificationtoSyncToolSpecification(org.springframework.ai.tool.ToolCallback toolCallback, org.springframework.util.MimeType mimeType) static List<io.modelcontextprotocol.server.McpServerFeatures.SyncToolSpecification> toSyncToolSpecifications(List<org.springframework.ai.tool.ToolCallback> tools)
-
Field Details
-
FIELDS_ARGUMENT
The optional argument every tool answering a list takes (returnsList(ToolCallback)), unless it declares one of its own with that name: the comma-separated top-level keys to keep in each item of a list result.- See Also:
-
FIELDS_DESCRIPTION
The description of theFIELDS_ARGUMENTargument, as clients list it.- See Also:
-
-
Method Details
-
getToolResponseMimeType
-
toSyncToolSpecifications
-
toAsyncToolSpecification
-
aggregateToolCallbacks
public static List<org.springframework.ai.tool.ToolCallback> aggregateToolCallbacks(org.springframework.beans.factory.ObjectProvider<List<org.springframework.ai.tool.ToolCallback>> toolCalls, List<org.springframework.ai.tool.ToolCallback> toolCallbacksList, List<org.springframework.ai.tool.ToolCallbackProvider> toolCallbackProvider) -
toAsyncToolSpecification
public static io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification toAsyncToolSpecification(org.springframework.ai.tool.ToolCallback toolCallback, org.springframework.util.MimeType mimeType) -
toSyncToolSpecification
public static io.modelcontextprotocol.server.McpServerFeatures.SyncToolSpecification toSyncToolSpecification(org.springframework.ai.tool.ToolCallback toolCallback, org.springframework.util.MimeType mimeType) -
getMimeType
-