Uses of Enum Class
org.mcpjava.server.Role
Packages that use Role
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.
-
Uses of Role in org.mcpjava.server
Methods in org.mcpjava.server that return Role -
Uses of Role in org.mcpjava.server.content
Methods in org.mcpjava.server.content that return types with arguments of type RoleModifier and TypeMethodDescriptionAnnotations.audience()The intended audience for the data or objectMethods in org.mcpjava.server.content with parameters of type RoleModifier and TypeMethodDescriptionAnnotations.Builder.setAudience(Role... roles) Sets the intended audience for the contentMethod parameters in org.mcpjava.server.content with type arguments of type RoleModifier and TypeMethodDescriptionAnnotations.Builder.setAudience(Set<Role> roles) Sets the intended audience for the content -
Uses of Role in org.mcpjava.server.prompts
Methods in org.mcpjava.server.prompts that return RoleMethods in org.mcpjava.server.prompts with parameters of type RoleModifier 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 Role in org.mcpjava.server.spi
Methods in org.mcpjava.server.spi with parameters of type RoleModifier and TypeMethodDescriptiondefault PromptResponseMcpServerSPI.newPromptResponse(Role role, ContentBlock content) Create a newPromptResponsewith a single message