Uses of Interface
org.mcpjava.server.content.ContentBlock
Packages that use ContentBlock
Package
Description
Core annotations and APIs for building Model Context Protocol (MCP) servers.
Content blocks, for inclusion in resources and tool call responses.
Define MCP prompts.
Mechanism for providing the implementation of the API.
Define MCP tools.
-
Uses of ContentBlock in org.mcpjava.server
Methods in org.mcpjava.server that return ContentBlockModifier and TypeMethodDescriptionEncode the given object into MCP content. -
Uses of ContentBlock in org.mcpjava.server.content
Subinterfaces of ContentBlock in org.mcpjava.server.contentModifier and TypeInterfaceDescriptioninterfaceAudio data contentinterfaceEmbedded resource content.interfaceImage data contentinterfaceContent which links to a resource.interfaceText content -
Uses of ContentBlock in org.mcpjava.server.prompts
Methods in org.mcpjava.server.prompts that return ContentBlockMethods in org.mcpjava.server.prompts with parameters of type ContentBlockModifier and TypeMethodDescriptionPromptResponse.Builder.addMessage(Role role, ContentBlock content) Add a message to the resultstatic PromptResponsePromptResponse.of(Role role, ContentBlock content) Create a newPromptResponsewith a single message -
Uses of ContentBlock in org.mcpjava.server.spi
Methods in org.mcpjava.server.spi with parameters of type ContentBlockModifier and TypeMethodDescriptiondefault PromptResponseMcpServerSPI.newPromptResponse(Role role, ContentBlock content) Create a newPromptResponsewith a single message -
Uses of ContentBlock in org.mcpjava.server.tools
Methods in org.mcpjava.server.tools that return types with arguments of type ContentBlockMethods in org.mcpjava.server.tools with parameters of type ContentBlockModifier and TypeMethodDescriptionToolResponse.Builder.addContent(ContentBlock content) Add some unstructured content to the response