Index

A B C D E F G H I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

AbstractConfigurableMcpServer - Class in com.github.thought2code.mcp.annotated.server.configurable
This abstract class represents a configurable MCP (Model Context Protocol) server.
AbstractConfigurableMcpServer(McpServerConfiguration) - Constructor for class com.github.thought2code.mcp.annotated.server.configurable.AbstractConfigurableMcpServer
Creates a new instance of AbstractConfigurableMcpServer with the specified configuration.
AbstractMcpServer<S extends McpServerInfo> - Class in com.github.thought2code.mcp.annotated.server
This abstract class is used to provide a base implementation for an MCP server.
AbstractMcpServer() - Constructor for class com.github.thought2code.mcp.annotated.server.AbstractMcpServer
 
AbstractMcpServerComponent<T> - Class in com.github.thought2code.mcp.annotated.server.component
This abstract class represents an MCP server component (resource/prompt/tool) that is responsible for creating instances of a specific type T for a given method, and provides common functionality for all MCP server components.
AbstractMcpServerComponent() - Constructor for class com.github.thought2code.mcp.annotated.server.component.AbstractMcpServerComponent
Creates a new instance of AbstractMcpServerComponent.
AbstractParameterConverter<A extends Annotation> - Class in com.github.thought2code.mcp.annotated.server.converter
This abstract class is used to convert the value of a parameter annotated with AbstractParameterConverter to the required type, and provides a default implementation for the AbstractParameterConverter.convertAll(Parameter[], Map) method.
AbstractParameterConverter() - Constructor for class com.github.thought2code.mcp.annotated.server.converter.AbstractParameterConverter
 
asTextContent() - Method in interface com.github.thought2code.mcp.annotated.server.McpStructuredContent
Returns the text representation of this structured content.
ASYNC - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.ServerType
The MCP server runs in ASYNC mode.

B

basePackage() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpServerApplication
The base package for component scanning.
basePackageClass() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpServerApplication
The base package class for component scanning.
baseUrl() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerSSE
Returns the value of the baseUrl record component.
baseUrl() - Method in class com.github.thought2code.mcp.annotated.server.McpSseServerInfo
Deprecated.
Returns the base URL of the MCP server.
baseUrl(String) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerSSE.Builder
Sets the base URL.
baseUrl(String) - Method in class com.github.thought2code.mcp.annotated.server.McpSseServerInfo.Builder
Deprecated.
Sets the base URL of the MCP server.
bind(int) - Method in class com.github.thought2code.mcp.annotated.server.JettyHttpServer
Bind Jetty HTTP server to a specific port.
BOOLEAN - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
Java boolean is mapped to JSON schema data type boolean.
BOOLEAN_CLASS - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
Java Boolean is mapped to JSON schema data type boolean.
build() - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities.Builder
Builds an instance of McpServerCapabilities with the configured values.
build() - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerChangeNotification.Builder
Builds an instance of McpServerChangeNotification with the configured values.
build() - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration.Builder
Builds a new instance of McpServerConfiguration.
build() - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerSSE.Builder
Builds an instance of McpServerSSE with the configured values.
build() - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerStreamable.Builder
Builds an instance of McpServerStreamable with the configured values.
build() - Method in class com.github.thought2code.mcp.annotated.reflect.InvocationResult.Builder
Builds a new instance of InvocationResult with the configured values.
build() - Method in class com.github.thought2code.mcp.annotated.server.component.McpCompleteCompletion.Builder
Builds a new McpCompleteCompletion instance with the configured values.
build() - Method in class com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder
Deprecated.
Builds a new instance of McpServerInfo with the specified configuration.
build() - Method in class com.github.thought2code.mcp.annotated.server.McpSseServerInfo.Builder
Deprecated.
Builds a new McpSseServerInfo instance with the specified builder.
build() - Method in class com.github.thought2code.mcp.annotated.server.McpStreamableServerInfo.Builder
Deprecated.
Builds a new McpStreamableServerInfo instance with the specified builder.
builder() - Static method in record class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities
Creates a new instance of Builder to build McpServerCapabilities.
builder() - Static method in record class com.github.thought2code.mcp.annotated.configuration.McpServerChangeNotification
Creates a new instance of Builder to build McpServerChangeNotification.
builder() - Static method in record class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration
Creates a new instance of Builder to build McpServerConfiguration.
builder() - Static method in record class com.github.thought2code.mcp.annotated.configuration.McpServerSSE
Creates a new instance of Builder to build McpServerSSE.
builder() - Static method in record class com.github.thought2code.mcp.annotated.configuration.McpServerStreamable
Creates a new instance of Builder to build McpServerStreamable.
builder() - Static method in record class com.github.thought2code.mcp.annotated.reflect.InvocationResult
Returns a new instance of Builder for creating a new InvocationResult.
builder() - Static method in record class com.github.thought2code.mcp.annotated.server.component.McpCompleteCompletion
Creates a new McpCompleteCompletion.Builder instance for constructing McpCompleteCompletion objects.
builder() - Static method in class com.github.thought2code.mcp.annotated.server.McpServerInfo
Deprecated.
Returns a new instance of Builder to create a McpServerInfo instance.
builder() - Static method in class com.github.thought2code.mcp.annotated.server.McpSseServerInfo
Deprecated.
Returns a new builder instance to construct a McpSseServerInfo instance.
builder() - Static method in class com.github.thought2code.mcp.annotated.server.McpStreamableServerInfo
Deprecated.
Returns a new builder instance to construct a McpStreamableServerInfo instance.
Builder() - Constructor for class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities.Builder
 
Builder() - Constructor for class com.github.thought2code.mcp.annotated.configuration.McpServerChangeNotification.Builder
 
Builder() - Constructor for class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration.Builder
 
Builder() - Constructor for class com.github.thought2code.mcp.annotated.configuration.McpServerSSE.Builder
 
Builder() - Constructor for class com.github.thought2code.mcp.annotated.configuration.McpServerStreamable.Builder
 
Builder() - Constructor for class com.github.thought2code.mcp.annotated.reflect.InvocationResult.Builder
 
Builder() - Constructor for class com.github.thought2code.mcp.annotated.server.component.McpCompleteCompletion.Builder
 
Builder() - Constructor for class com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder
Deprecated.
 
Builder() - Constructor for class com.github.thought2code.mcp.annotated.server.McpSseServerInfo.Builder
Deprecated.
 
Builder() - Constructor for class com.github.thought2code.mcp.annotated.server.McpStreamableServerInfo.Builder
Deprecated.
 

C

capabilities - Variable in class com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder
Deprecated.
The capabilities of the MCP server.
capabilities() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration
Returns the value of the capabilities record component.
capabilities() - Method in class com.github.thought2code.mcp.annotated.server.McpServerInfo
Deprecated.
Returns the capabilities of the MCP server.
capabilities(McpServerCapabilities) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration.Builder
Sets the server capabilities.
capabilities(McpServerCapabilities) - Method in class com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder
Deprecated.
Sets the capabilities of the MCP server.
changeNotification - Variable in class com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder
Deprecated.
The change notification of the MCP server.
changeNotification() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration
Returns the value of the changeNotification record component.
changeNotification() - Method in class com.github.thought2code.mcp.annotated.server.McpServerInfo
Deprecated.
Returns the change notification of the MCP server.
changeNotification(McpServerChangeNotification) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration.Builder
Sets the change notification configuration.
changeNotification(McpServerChangeNotification) - Method in class com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder
Deprecated.
Sets the change notification of the MCP server.
check(McpServerConfiguration) - Static method in class com.github.thought2code.mcp.annotated.configuration.McpConfigurationChecker
Performs comprehensive validation of the MCP server configuration.
checkBlank(String, String) - Static method in class com.github.thought2code.mcp.annotated.configuration.McpConfigurationChecker
Validates that a single string configuration value is not blank.
checkBlank(String, String, String) - Static method in class com.github.thought2code.mcp.annotated.configuration.McpConfigurationChecker
Validates that at least one of two string configuration values is not blank.
checkNull(String, T) - Static method in class com.github.thought2code.mcp.annotated.configuration.McpConfigurationChecker
Validates that a single configuration value is not null.
checkNull(String, T, T) - Static method in class com.github.thought2code.mcp.annotated.configuration.McpConfigurationChecker
Validates that at least one of two configuration values is not null.
com.github.thought2code.mcp.annotated - package com.github.thought2code.mcp.annotated
 
com.github.thought2code.mcp.annotated.annotation - package com.github.thought2code.mcp.annotated.annotation
 
com.github.thought2code.mcp.annotated.common - package com.github.thought2code.mcp.annotated.common
 
com.github.thought2code.mcp.annotated.configuration - package com.github.thought2code.mcp.annotated.configuration
 
com.github.thought2code.mcp.annotated.di - package com.github.thought2code.mcp.annotated.di
 
com.github.thought2code.mcp.annotated.enums - package com.github.thought2code.mcp.annotated.enums
 
com.github.thought2code.mcp.annotated.exception - package com.github.thought2code.mcp.annotated.exception
 
com.github.thought2code.mcp.annotated.reflect - package com.github.thought2code.mcp.annotated.reflect
 
com.github.thought2code.mcp.annotated.server - package com.github.thought2code.mcp.annotated.server
 
com.github.thought2code.mcp.annotated.server.component - package com.github.thought2code.mcp.annotated.server.component
 
com.github.thought2code.mcp.annotated.server.configurable - package com.github.thought2code.mcp.annotated.server.configurable
 
com.github.thought2code.mcp.annotated.server.converter - package com.github.thought2code.mcp.annotated.server.converter
 
com.github.thought2code.mcp.annotated.util - package com.github.thought2code.mcp.annotated.util
 
completion() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities
Returns the value of the completion record component.
completion(Boolean) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities.Builder
Sets the completion capability.
configFileName() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpConfigurationLoader
Returns the value of the configFileName record component.
ConfigurableMcpServer - Interface in com.github.thought2code.mcp.annotated.server.configurable
This interface represents a configurable MCP (Model Context Protocol) server.
ConfigurableMcpSseServer - Class in com.github.thought2code.mcp.annotated.server.configurable
This class is used to create a new instance of ConfigurableMcpSseServer based on the specified McpServerConfiguration in HTTP SSE mode.
ConfigurableMcpSseServer(McpServerConfiguration) - Constructor for class com.github.thought2code.mcp.annotated.server.configurable.ConfigurableMcpSseServer
Creates a new instance of ConfigurableMcpSseServer with the specified configuration.
ConfigurableMcpStdioServer - Class in com.github.thought2code.mcp.annotated.server.configurable
This class is used to create a new instance of ConfigurableMcpStdioServer based on the specified McpServerConfiguration in STDIO mode.
ConfigurableMcpStdioServer(McpServerConfiguration) - Constructor for class com.github.thought2code.mcp.annotated.server.configurable.ConfigurableMcpStdioServer
Creates a new instance of ConfigurableMcpStdioServer with the specified configuration.
ConfigurableMcpStreamableServer - Class in com.github.thought2code.mcp.annotated.server.configurable
This class is used to create a new instance of ConfigurableMcpStreamableServer based on the specified McpServerConfiguration in Streamable HTTP mode.
ConfigurableMcpStreamableServer(McpServerConfiguration) - Constructor for class com.github.thought2code.mcp.annotated.server.configurable.ConfigurableMcpStreamableServer
Creates a new instance of ConfigurableMcpStreamableServer with the specified configuration.
configuration - Variable in class com.github.thought2code.mcp.annotated.server.configurable.AbstractConfigurableMcpServer
The configuration for the MCP server.
configure() - Method in class com.github.thought2code.mcp.annotated.di.GuiceInjectorModule
 
contextExtractor() - Method in class com.github.thought2code.mcp.annotated.server.McpStreamableServerInfo
Deprecated.
Returns the extractor to extract the transport context from the HTTP request.
contextExtractor(McpTransportContextExtractor<HttpServletRequest>) - Method in class com.github.thought2code.mcp.annotated.server.McpStreamableServerInfo.Builder
Deprecated.
Sets the extractor to extract the transport context from the HTTP request.
convert(Object, Class<?>) - Static method in class com.github.thought2code.mcp.annotated.util.TypeConverter
Converts the given value to the specified target type.
convert(Parameter, A, Map<String, Object>) - Method in interface com.github.thought2code.mcp.annotated.server.converter.ParameterConverter
Converts the value of the specified parameter annotated with the specified annotation to the required type.
convert(Parameter, McpPromptParam, Map<String, Object>) - Method in class com.github.thought2code.mcp.annotated.server.converter.McpPromptParameterConverter
Converts the value of the parameter annotated with McpPromptParam to the required type.
convert(Parameter, McpToolParam, Map<String, Object>) - Method in class com.github.thought2code.mcp.annotated.server.converter.McpToolParameterConverter
Converts the value of the parameter annotated with McpToolParam to the required type.
convertAll(Parameter[], Map<String, Object>) - Method in class com.github.thought2code.mcp.annotated.server.converter.AbstractParameterConverter
Converts the values of all parameters annotated with the specified annotation to the required types.
create(Method) - Method in class com.github.thought2code.mcp.annotated.server.component.McpServerCompletion
Creates a synchronous completion specification for the given method.
create(Method) - Method in interface com.github.thought2code.mcp.annotated.server.component.McpServerComponent
Creates an instance of the component for the specified method.
create(Method) - Method in class com.github.thought2code.mcp.annotated.server.component.McpServerPrompt
 
create(Method) - Method in class com.github.thought2code.mcp.annotated.server.component.McpServerResource
 
create(Method) - Method in class com.github.thought2code.mcp.annotated.server.component.McpServerTool
 

D

defaultIfBlank(String, String) - Static method in class com.github.thought2code.mcp.annotated.util.StringHelper
Returns the default value if the given string is blank, otherwise returns the original string.
DependencyInjector - Interface in com.github.thought2code.mcp.annotated.di
This interface defines the contract for a dependency injector.
DependencyInjectorProvider - Enum Class in com.github.thought2code.mcp.annotated.di
This enum provides a singleton instance of DependencyInjectorProvider that can be used to initialize and retrieve the DependencyInjector instance.
description() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpJsonSchemaProperty
The description of the JSON schema property.
description() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpPrompt
The description of the prompt.
description() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpPromptParam
The description of the prompt parameter.
description() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpResource
The description of the resource.
description() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpTool
The description of the tool.
description() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpToolParam
The description of the tool parameter.
disallowDelete() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerStreamable
Returns the value of the disallowDelete record component.
disallowDelete() - Method in class com.github.thought2code.mcp.annotated.server.McpStreamableServerInfo
Deprecated.
Returns whether to disallow http delete requests.
disallowDelete(boolean) - Method in class com.github.thought2code.mcp.annotated.server.McpStreamableServerInfo.Builder
Deprecated.
Sets whether to disallow http delete requests.
disallowDelete(Boolean) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerStreamable.Builder
Sets the disallow delete flag.
DOT - Static variable in class com.github.thought2code.mcp.annotated.util.StringHelper
The dot character constant.
DOUBLE - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
Java double is mapped to JSON schema data type number.
DOUBLE_CLASS - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
Java Double is mapped to JSON schema data type number.

E

empty() - Static method in record class com.github.thought2code.mcp.annotated.server.component.McpCompleteCompletion
Creates an empty McpCompleteCompletion instance.
EMPTY - Static variable in class com.github.thought2code.mcp.annotated.util.StringHelper
The empty string constant.
enabled() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration
Returns the value of the enabled record component.
enabled(Boolean) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration.Builder
Sets the enabled status.
endpoint() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerSSE
Returns the value of the endpoint record component.
endpoint(String) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerSSE.Builder
Sets the endpoint.
equals(Object) - Method in record class com.github.thought2code.mcp.annotated.common.Immutable
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.github.thought2code.mcp.annotated.configuration.McpConfigurationLoader
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerChangeNotification
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerSSE
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerStreamable
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.github.thought2code.mcp.annotated.reflect.InvocationResult
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
 
equals(Object) - Method in record class com.github.thought2code.mcp.annotated.server.component.McpCompleteCompletion
Indicates whether some other object is "equal to" this one.
exception() - Method in record class com.github.thought2code.mcp.annotated.reflect.InvocationResult
Returns the value of the exception record component.
exception(Exception) - Method in class com.github.thought2code.mcp.annotated.reflect.InvocationResult.Builder
Sets the exception that occurred during the invocation.

F

FLOAT - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
Java float is mapped to JSON schema data type number.
FLOAT_CLASS - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
Java Float is mapped to JSON schema data type number.
fromJson(String, Class<T>) - Static method in class com.github.thought2code.mcp.annotated.util.JacksonHelper
Deserialize a JSON string to an object of the specified type.
fromYaml(File, Class<T>) - Static method in class com.github.thought2code.mcp.annotated.util.JacksonHelper
Deserialize a YAML file to an object of the specified type.

G

get() - Method in record class com.github.thought2code.mcp.annotated.common.Immutable
Returns the value wrapped by this Immutable instance.
getAnnotationType() - Method in class com.github.thought2code.mcp.annotated.server.converter.McpPromptParameterConverter
Returns the type of the annotation this converter handles.
getAnnotationType() - Method in class com.github.thought2code.mcp.annotated.server.converter.McpToolParameterConverter
Returns the type of the annotation this converter handles.
getAnnotationType() - Method in interface com.github.thought2code.mcp.annotated.server.converter.ParameterConverter
Returns the type of the annotation that this converter supports.
getDeclaringClass() - Method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
Returns the class that declares the cached method.
getDefault() - Static method in record class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities
Returns the default capabilities of the MCP server.
getDefault() - Static method in record class com.github.thought2code.mcp.annotated.configuration.McpServerChangeNotification
Returns the default change notification of the MCP server.
getDefault() - Static method in record class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration
Returns the default configuration of the MCP server.
getDefault() - Static method in record class com.github.thought2code.mcp.annotated.configuration.McpServerSSE
Returns the default SSE configuration of the MCP server.
getDefault() - Static method in record class com.github.thought2code.mcp.annotated.configuration.McpServerStreamable
Returns the default streamable http server configuration of the MCP server.
getInjector() - Method in enum class com.github.thought2code.mcp.annotated.di.DependencyInjectorProvider
Returns the DependencyInjector instance.
getInstance(Class<T>) - Method in interface com.github.thought2code.mcp.annotated.di.DependencyInjector
Returns an instance of the specified type.
getInstance(Class<T>) - Method in class com.github.thought2code.mcp.annotated.di.GuiceDependencyInjector
 
getJsonSchemaType() - Method in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
Returns the JSON schema data type.
getJsonSchemaType(Class<?>) - Static method in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
Returns the JSON schema data type for the specified Java class.
getMcpPromptAnnotation() - Method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
Returns the annotation McpPrompt on the cached method.
getMcpPromptCompletionAnnotation() - Method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
Returns the annotation McpPromptCompletion on the cached method.
getMcpResourceAnnotation() - Method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
Returns the annotation McpResource on the cached method.
getMcpResourceCompletionAnnotation() - Method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
Returns the annotation McpResourceCompletion on the cached method.
getMcpToolAnnotation() - Method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
Returns the annotation McpTool on the cached method.
getMethod() - Method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
Returns the method cached by this MethodCache instance.
getMethodName() - Method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
Returns the name of the cached method.
getMethodSignature() - Method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
Returns the signature of the cached method.
getOrCache(Method) - Method in enum class com.github.thought2code.mcp.annotated.util.ReflectionHelper
Get or cache the metadata for the specified method.
getParameters() - Method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
Returns the parameters of the cached method.
getReturnType() - Method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
Returns the return type of the cached method.
getVariable(Class<T>, String) - Method in interface com.github.thought2code.mcp.annotated.di.DependencyInjector
Returns the value of the specified variable.
getVariable(Class<T>, String) - Method in class com.github.thought2code.mcp.annotated.di.GuiceDependencyInjector
 
GuiceDependencyInjector - Class in com.github.thought2code.mcp.annotated.di
This class implements the DependencyInjector interface using Google Guice.
GuiceDependencyInjector(Injector) - Constructor for class com.github.thought2code.mcp.annotated.di.GuiceDependencyInjector
Creates a new instance of GuiceDependencyInjector with the specified Guice Injector.
GuiceInjectorModule - Class in com.github.thought2code.mcp.annotated.di
This class is a Guice module that configures bindings for classes annotated with McpServerApplication, McpResource, McpPrompt, and McpTool.
GuiceInjectorModule(Class<?>) - Constructor for class com.github.thought2code.mcp.annotated.di.GuiceInjectorModule
Constructs a new GuiceInjectorModule with the specified main class.

H

hashCode() - Method in record class com.github.thought2code.mcp.annotated.common.Immutable
Returns a hash code value for this object.
hashCode() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpConfigurationLoader
Returns a hash code value for this object.
hashCode() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities
Returns a hash code value for this object.
hashCode() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerChangeNotification
Returns a hash code value for this object.
hashCode() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration
Returns a hash code value for this object.
hashCode() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerSSE
Returns a hash code value for this object.
hashCode() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerStreamable
Returns a hash code value for this object.
hashCode() - Method in record class com.github.thought2code.mcp.annotated.reflect.InvocationResult
Returns a hash code value for this object.
hashCode() - Method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
 
hashCode() - Method in record class com.github.thought2code.mcp.annotated.server.component.McpCompleteCompletion
Returns a hash code value for this object.
hasMore() - Method in record class com.github.thought2code.mcp.annotated.server.component.McpCompleteCompletion
Returns the value of the hasMore record component.
hasMore(boolean) - Method in class com.github.thought2code.mcp.annotated.server.component.McpCompleteCompletion.Builder
Sets whether more completions are available.
HttpBasedConfigurableMcpServer<T extends jakarta.servlet.http.HttpServlet> - Class in com.github.thought2code.mcp.annotated.server.configurable
Base class for configurable MCP servers that use HTTP as the transport protocol.
HttpBasedConfigurableMcpServer(McpServerConfiguration) - Constructor for class com.github.thought2code.mcp.annotated.server.configurable.HttpBasedConfigurableMcpServer
Creates a new instance of HttpBasedConfigurableMcpServer with the specified configuration.
HttpBasedMcpServer<S extends McpServerInfo,T extends jakarta.servlet.http.HttpServlet> - Class in com.github.thought2code.mcp.annotated.server
Base class for HTTP-based MCP servers.
HttpBasedMcpServer() - Constructor for class com.github.thought2code.mcp.annotated.server.HttpBasedMcpServer
 

I

Immutable<T> - Record Class in com.github.thought2code.mcp.annotated.common
A simple immutable wrapper class for a single value.
Immutable(T) - Constructor for record class com.github.thought2code.mcp.annotated.common.Immutable
Creates an instance of a Immutable record class.
initialize(DependencyInjector) - Method in enum class com.github.thought2code.mcp.annotated.di.DependencyInjectorProvider
Initializes the DependencyInjectorProvider with the specified DependencyInjector.
injector - Variable in class com.github.thought2code.mcp.annotated.server.component.AbstractMcpServerComponent
The dependency injector to use for injecting component attributes.
INSTANCE - Enum constant in enum class com.github.thought2code.mcp.annotated.di.DependencyInjectorProvider
The singleton instance of DependencyInjectorProvider.
INSTANCE - Enum constant in enum class com.github.thought2code.mcp.annotated.util.ReflectionHelper
The singleton instance of the ReflectionHelper enum.
instructions - Variable in class com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder
Deprecated.
The instructions of the MCP server.
instructions() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration
Returns the value of the instructions record component.
instructions() - Method in class com.github.thought2code.mcp.annotated.server.McpServerInfo
Deprecated.
Returns the instructions of the MCP server.
instructions(String) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration.Builder
Sets the server instructions.
instructions(String) - Method in class com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder
Deprecated.
Sets the instructions of the MCP server.
INT - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
Java int is mapped to JSON schema data type integer.
INTEGER - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
Java Integer is mapped to JSON schema data type integer.
InvocationResult - Record Class in com.github.thought2code.mcp.annotated.reflect
This record represents the result of reflection invocation of Java method.
InvocationResult(Object, Immutable<Exception>) - Constructor for record class com.github.thought2code.mcp.annotated.reflect.InvocationResult
Creates an instance of a InvocationResult record class.
InvocationResult.Builder - Class in com.github.thought2code.mcp.annotated.reflect
This class implements the builder pattern for creating a new instance of InvocationResult.
invoke(Object, MethodCache) - Method in enum class com.github.thought2code.mcp.annotated.util.ReflectionHelper
Invoke the method represented by the specified method cache on the given instance with no parameters.
invoke(Object, MethodCache, McpSchema.CompleteRequest.CompleteArgument) - Method in enum class com.github.thought2code.mcp.annotated.util.ReflectionHelper
Invoke the method represented by the specified method cache on the given instance with the provided argument.
invoke(Object, MethodCache, List<Object>) - Method in enum class com.github.thought2code.mcp.annotated.util.ReflectionHelper
Invoke the method represented by the specified method cache on the given instance with the provided parameters.
isBlank(String) - Static method in class com.github.thought2code.mcp.annotated.util.StringHelper
Checks if the given string is blank.
isError() - Method in record class com.github.thought2code.mcp.annotated.reflect.InvocationResult
Returns whether the invocation resulted in an error.
isInitialized() - Method in interface com.github.thought2code.mcp.annotated.di.DependencyInjector
Returns whether the dependency injector is initialized.
isInitialized() - Method in class com.github.thought2code.mcp.annotated.di.GuiceDependencyInjector
 

J

JacksonHelper - Class in com.github.thought2code.mcp.annotated.util
Helper class for Jackson JSON and YAML serialization and deserialization.
JavaTypeToJsonSchemaMapper - Enum Class in com.github.thought2code.mcp.annotated.enums
This enum is used to map Java types to JSON schema data types.
JettyHttpServer - Class in com.github.thought2code.mcp.annotated.server
A simple Jetty HTTP server implementation.
JettyHttpServer() - Constructor for class com.github.thought2code.mcp.annotated.server.JettyHttpServer
 

K

keepAliveInterval() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerStreamable
Returns the value of the keepAliveInterval record component.
keepAliveInterval() - Method in class com.github.thought2code.mcp.annotated.server.McpStreamableServerInfo
Deprecated.
Returns the interval to send keep-alive messages.
keepAliveInterval(Long) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerStreamable.Builder
Sets the keep-alive interval.
keepAliveInterval(Duration) - Method in class com.github.thought2code.mcp.annotated.server.McpStreamableServerInfo.Builder
Deprecated.
Sets the interval to send keep-alive messages.

L

loadConfig() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpConfigurationLoader
Loads the MCP server configuration from the specified YAML file.
localizeAttribute(String, String) - Method in class com.github.thought2code.mcp.annotated.server.component.AbstractMcpServerComponent
Localizes the attribute with the specified i18n key using the resource bundle, or returns the default value if the key is not found in the bundle.
LONG - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
Java long is mapped to JSON schema data type number.
LONG_CLASS - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
Java Long is mapped to JSON schema data type number.

M

McpCompleteCompletion - Record Class in com.github.thought2code.mcp.annotated.server.component
Represents a completion result for MCP (Model Context Protocol) server operations.
McpCompleteCompletion(List<String>, Integer, boolean) - Constructor for record class com.github.thought2code.mcp.annotated.server.component.McpCompleteCompletion
Compact constructor that creates a defensive copy of the values list.
McpCompleteCompletion.Builder - Class in com.github.thought2code.mcp.annotated.server.component
Builder class for constructing McpCompleteCompletion instances.
McpConfigurationChecker - Class in com.github.thought2code.mcp.annotated.configuration
Utility class for validating MCP server configuration properties.
McpConfigurationLoader - Record Class in com.github.thought2code.mcp.annotated.configuration
This record represents a YAML configuration loader for MCP (Model Context Protocol) server configuration.
McpConfigurationLoader() - Constructor for record class com.github.thought2code.mcp.annotated.configuration.McpConfigurationLoader
Constructs a YAMLConfigurationLoader with the default configuration file name.
McpConfigurationLoader(String) - Constructor for record class com.github.thought2code.mcp.annotated.configuration.McpConfigurationLoader
Creates an instance of a McpConfigurationLoader record class.
McpConfigurationMerger - Class in com.github.thought2code.mcp.annotated.configuration
Utility class for merging MCP server configurations.
mcpEndpoint() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerStreamable
Returns the value of the mcpEndpoint record component.
mcpEndpoint() - Method in class com.github.thought2code.mcp.annotated.server.McpStreamableServerInfo
Deprecated.
Returns the endpoint of the MCP server to send messages.
mcpEndpoint(String) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerStreamable.Builder
Sets the MCP endpoint.
mcpEndpoint(String) - Method in class com.github.thought2code.mcp.annotated.server.McpStreamableServerInfo.Builder
Deprecated.
Sets the endpoint of the MCP server to send messages.
McpI18nEnabled - Annotation Interface in com.github.thought2code.mcp.annotated.annotation
This annotation is used to mark a class as i18n enabled.
McpJsonSchemaDefinition - Annotation Interface in com.github.thought2code.mcp.annotated.annotation
This annotation is used to define the complex JSON schema type (such as custom Java data classes) for an MCP (Model Context Protocol) server.
McpJsonSchemaProperty - Annotation Interface in com.github.thought2code.mcp.annotated.annotation
This annotation is used to define the property of a complex JSON schema type (such as custom Java data classes) for an MCP (Model Context Protocol) server.
McpPrompt - Annotation Interface in com.github.thought2code.mcp.annotated.annotation
This annotation is used to mark a method as an MCP (Model Context Protocol) prompt method.
McpPromptCompletion - Annotation Interface in com.github.thought2code.mcp.annotated.annotation
Annotation for marking methods that provide completion functionality for MCP prompts.
McpPromptParam - Annotation Interface in com.github.thought2code.mcp.annotated.annotation
This annotation is used to mark a method parameter as an MCP (Model Context Protocol) prompt parameter.
McpPromptParameterConverter - Class in com.github.thought2code.mcp.annotated.server.converter
This class is used to convert the value of a parameter annotated with McpPromptParam to the required type.
McpPromptParameterConverter() - Constructor for class com.github.thought2code.mcp.annotated.server.converter.McpPromptParameterConverter
 
McpResource - Annotation Interface in com.github.thought2code.mcp.annotated.annotation
This annotation is used to mark a method as an MCP (Model Context Protocol) resource method.
McpResourceCompletion - Annotation Interface in com.github.thought2code.mcp.annotated.annotation
Annotation for marking methods that provide completion functionality for MCP resources.
McpServer<S extends McpServerInfo> - Interface in com.github.thought2code.mcp.annotated.server
This interface is used to define the contract for an MCP server.
McpServerApplication - Annotation Interface in com.github.thought2code.mcp.annotated.annotation
This annotation is used to mark a class as an MCP (Model Context Protocol) server application.
McpServerCapabilities - Record Class in com.github.thought2code.mcp.annotated.configuration
This record represents the capabilities of an MCP (Model Context Protocol) server.
McpServerCapabilities(Boolean, Boolean, Boolean, Boolean, Boolean) - Constructor for record class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities
Creates an instance of a McpServerCapabilities record class.
McpServerCapabilities.Builder - Class in com.github.thought2code.mcp.annotated.configuration
Builder class for McpServerCapabilities.
McpServerChangeNotification - Record Class in com.github.thought2code.mcp.annotated.configuration
This record represents a change notification for MCP (Model Context Protocol) server capabilities.
McpServerChangeNotification(Boolean, Boolean, Boolean) - Constructor for record class com.github.thought2code.mcp.annotated.configuration.McpServerChangeNotification
Creates an instance of a McpServerChangeNotification record class.
McpServerChangeNotification.Builder - Class in com.github.thought2code.mcp.annotated.configuration
Builder class for McpServerChangeNotification.
McpServerCompletion - Class in com.github.thought2code.mcp.annotated.server.component
MCP server component for handling completion requests.
McpServerCompletion() - Constructor for class com.github.thought2code.mcp.annotated.server.component.McpServerCompletion
 
McpServerComponent<T> - Interface in com.github.thought2code.mcp.annotated.server.component
This interface represents an MCP server component (resource/prompt/tool) that is responsible for creating instances of a specific type T for a given method.
McpServerComponentRegister - Class in com.github.thought2code.mcp.annotated.server.component
Central registry for MCP server components including resources, prompts, tools, and completions.
McpServerComponentRegister() - Constructor for class com.github.thought2code.mcp.annotated.server.component.McpServerComponentRegister
Creates a new instance of McpServerComponentRegister.
McpServerComponentRegistrationException - Exception in com.github.thought2code.mcp.annotated.exception
Exception thrown when an error occurs during MCP server component registration.
McpServerComponentRegistrationException(String) - Constructor for exception com.github.thought2code.mcp.annotated.exception.McpServerComponentRegistrationException
Constructs a new McpServerComponentRegistrationException with the specified detail message.
McpServerComponentRegistrationException(String, Throwable) - Constructor for exception com.github.thought2code.mcp.annotated.exception.McpServerComponentRegistrationException
Constructs a new McpServerComponentRegistrationException with the specified detail message and cause.
McpServerConfiguration - Record Class in com.github.thought2code.mcp.annotated.configuration
This record represents the configuration of an MCP (Model Context Protocol) server.
McpServerConfiguration(String, Boolean, ServerMode, String, String, ServerType, String, Long, McpServerCapabilities, McpServerChangeNotification, McpServerSSE, McpServerStreamable) - Constructor for record class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration
Creates an instance of a McpServerConfiguration record class.
McpServerConfiguration.Builder - Class in com.github.thought2code.mcp.annotated.configuration
Builder class for McpServerConfiguration.
McpServerConfigurationException - Exception in com.github.thought2code.mcp.annotated.exception
This exception is thrown to indicate a configuration error in the MCP (Model Context Protocol) server.
McpServerConfigurationException(String) - Constructor for exception com.github.thought2code.mcp.annotated.exception.McpServerConfigurationException
Creates a new instance of McpServerConfigurationException with the specified detail message.
McpServerConfigurationException(String, Throwable) - Constructor for exception com.github.thought2code.mcp.annotated.exception.McpServerConfigurationException
Creates a new instance of McpServerConfigurationException with the specified detail message and cause.
McpServerException - Exception in com.github.thought2code.mcp.annotated.exception
This exception is thrown to indicate a general error in the MCP (Model Context Protocol) server.
McpServerException(String) - Constructor for exception com.github.thought2code.mcp.annotated.exception.McpServerException
Creates a new instance of McpServerException with the specified detail message.
McpServerException(String, Throwable) - Constructor for exception com.github.thought2code.mcp.annotated.exception.McpServerException
Creates a new instance of McpServerException with the specified detail message and cause.
McpServerInfo - Class in com.github.thought2code.mcp.annotated.server
Deprecated, for removal: This API element is subject to removal in a future version.
McpServerInfo(McpServerInfo.Builder<?>) - Constructor for class com.github.thought2code.mcp.annotated.server.McpServerInfo
Deprecated.
Creates a new instance of McpServerInfo with the specified builder.
McpServerInfo.Builder<T extends McpServerInfo.Builder<T>> - Class in com.github.thought2code.mcp.annotated.server
Deprecated, for removal: This API element is subject to removal in a future version.
McpServerJsonProcessingException - Exception in com.github.thought2code.mcp.annotated.exception
This exception is thrown to indicate a JSON processing error in the MCP (Model Context Protocol) server.
McpServerJsonProcessingException(String) - Constructor for exception com.github.thought2code.mcp.annotated.exception.McpServerJsonProcessingException
Creates a new instance of McpServerJsonProcessingException with the specified detail message.
McpServerJsonProcessingException(String, Throwable) - Constructor for exception com.github.thought2code.mcp.annotated.exception.McpServerJsonProcessingException
Creates a new instance of McpServerJsonProcessingException with the specified detail message and cause.
McpServerPrompt - Class in com.github.thought2code.mcp.annotated.server.component
This class represents an MCP server prompt component.
McpServerPrompt() - Constructor for class com.github.thought2code.mcp.annotated.server.component.McpServerPrompt
Creates a new instance of McpServerPrompt.
McpServerResource - Class in com.github.thought2code.mcp.annotated.server.component
This class represents an MCP server resource component.
McpServerResource() - Constructor for class com.github.thought2code.mcp.annotated.server.component.McpServerResource
 
McpServers - Class in com.github.thought2code.mcp.annotated
This class is a singleton that provides methods to start MCP servers.
McpServerSSE - Record Class in com.github.thought2code.mcp.annotated.configuration
This record represents the Server-Sent Events (SSE) configuration for an MCP (Model Context Protocol) server.
McpServerSSE(String, String, String, Integer) - Constructor for record class com.github.thought2code.mcp.annotated.configuration.McpServerSSE
Creates an instance of a McpServerSSE record class.
McpServerSSE.Builder - Class in com.github.thought2code.mcp.annotated.configuration
Builder class for McpServerSSE.
McpServerStreamable - Record Class in com.github.thought2code.mcp.annotated.configuration
This record represents the streamable http server configuration for an MCP (Model Context Protocol) server.
McpServerStreamable(String, Boolean, Long, Integer) - Constructor for record class com.github.thought2code.mcp.annotated.configuration.McpServerStreamable
Creates an instance of a McpServerStreamable record class.
McpServerStreamable.Builder - Class in com.github.thought2code.mcp.annotated.configuration
Builder class for McpServerStreamable.
McpServerTool - Class in com.github.thought2code.mcp.annotated.server.component
This class represents an MCP server tool component.
McpServerTool() - Constructor for class com.github.thought2code.mcp.annotated.server.component.McpServerTool
Creates a new instance of McpServerTool.
McpSseServer - Class in com.github.thought2code.mcp.annotated.server
This class is used to create a new instance of McpSseServer based on the specified McpSseServerInfo in HTTP SSE mode.
McpSseServer() - Constructor for class com.github.thought2code.mcp.annotated.server.McpSseServer
 
McpSseServerInfo - Class in com.github.thought2code.mcp.annotated.server
Deprecated, for removal: This API element is subject to removal in a future version.
McpSseServerInfo.Builder - Class in com.github.thought2code.mcp.annotated.server
Deprecated, for removal: This API element is subject to removal in a future version.
McpStdioServer - Class in com.github.thought2code.mcp.annotated.server
This class is used to create a new instance of McpStdioServer based on the specified McpServerInfo in STDIO mode.
McpStdioServer() - Constructor for class com.github.thought2code.mcp.annotated.server.McpStdioServer
 
McpStreamableServer - Class in com.github.thought2code.mcp.annotated.server
This class is used to create a new instance of McpStreamableServer based on the specified McpStreamableServerInfo in Streamable HTTP mode.
McpStreamableServer() - Constructor for class com.github.thought2code.mcp.annotated.server.McpStreamableServer
 
McpStreamableServerInfo - Class in com.github.thought2code.mcp.annotated.server
Deprecated, for removal: This API element is subject to removal in a future version.
McpStreamableServerInfo.Builder - Class in com.github.thought2code.mcp.annotated.server
Deprecated, for removal: This API element is subject to removal in a future version.
McpStructuredContent - Interface in com.github.thought2code.mcp.annotated.server
Marker interface for MCP tool method results that return structured content.
McpTool - Annotation Interface in com.github.thought2code.mcp.annotated.annotation
This annotation is used to mark a method as an MCP (Model Context Protocol) tool method.
McpToolParam - Annotation Interface in com.github.thought2code.mcp.annotated.annotation
This annotation is used to mark a method parameter as an MCP (Model Context Protocol) tool parameter.
McpToolParameterConverter - Class in com.github.thought2code.mcp.annotated.server.converter
This class is used to convert the value of a parameter annotated with McpToolParam to the required type.
McpToolParameterConverter() - Constructor for class com.github.thought2code.mcp.annotated.server.converter.McpToolParameterConverter
 
merge(McpServerConfiguration, McpServerConfiguration) - Static method in class com.github.thought2code.mcp.annotated.configuration.McpConfigurationMerger
Merges base and profile MCP server configurations.
messageEndpoint() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerSSE
Returns the value of the messageEndpoint record component.
messageEndpoint() - Method in class com.github.thought2code.mcp.annotated.server.McpSseServerInfo
Deprecated.
Returns the endpoint of the MCP server to send messages.
messageEndpoint(String) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerSSE.Builder
Sets the message endpoint.
messageEndpoint(String) - Method in class com.github.thought2code.mcp.annotated.server.McpSseServerInfo.Builder
Deprecated.
Sets the endpoint of the MCP server to send messages.
MethodCache - Class in com.github.thought2code.mcp.annotated.reflect
This class caches information about a Java method, including its name, declaring class, parameters, and annotations.
MethodCache(Method) - Constructor for class com.github.thought2code.mcp.annotated.reflect.MethodCache
Creates a new instance of MethodCache with the specified method.
mimeType() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpResource
The MIME type of the resource.
mode() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration
Returns the value of the mode record component.
mode(ServerMode) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration.Builder
Sets the server mode.

N

name - Variable in class com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder
Deprecated.
The name of the MCP server.
name() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpJsonSchemaProperty
The name of the JSON schema property.
name() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpPrompt
The name of the prompt.
name() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpPromptCompletion
Specifies the name of the prompt for which completion is provided.
name() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpPromptParam
The name of the prompt parameter.
name() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpResource
The name of the resource.
name() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpTool
The name of the tool.
name() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpToolParam
The name of the tool parameter.
name() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration
Returns the value of the name record component.
name() - Method in class com.github.thought2code.mcp.annotated.server.McpServerInfo
Deprecated.
Returns the name of the MCP server.
name(String) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration.Builder
Sets the server name.
name(String) - Method in class com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder
Deprecated.
Sets the name of the MCP server.
NamedThreadFactory - Class in com.github.thought2code.mcp.annotated.common
A thread factory that creates threads with a specified name prefix.
NamedThreadFactory(String) - Constructor for class com.github.thought2code.mcp.annotated.common.NamedThreadFactory
Creates a new instance of NamedThreadFactory with the specified name prefix.
newThread(Runnable) - Method in class com.github.thought2code.mcp.annotated.common.NamedThreadFactory
 
NUMBER - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
Java Number is mapped to JSON schema data type number.

O

OBJECT - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
Java Object is mapped to JSON schema data type object.
of(Method) - Static method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
Creates a new instance of MethodCache with the specified method.
of(T) - Static method in record class com.github.thought2code.mcp.annotated.common.Immutable
Creates a new instance of Immutable with the specified value.

P

ParameterConverter<A extends Annotation> - Interface in com.github.thought2code.mcp.annotated.server.converter
This interface is used to convert the value of a parameter annotated with ParameterConverter to the required type.
port - Variable in class com.github.thought2code.mcp.annotated.server.configurable.HttpBasedConfigurableMcpServer
The port on which the MCP server will listen for requests.
port - Variable in class com.github.thought2code.mcp.annotated.server.HttpBasedMcpServer
The port on which the MCP server will listen for requests.
port() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerSSE
Returns the value of the port record component.
port() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerStreamable
Returns the value of the port record component.
port() - Method in class com.github.thought2code.mcp.annotated.server.McpSseServerInfo
Deprecated.
Returns the port of the MCP HTTP server.
port() - Method in class com.github.thought2code.mcp.annotated.server.McpStreamableServerInfo
Deprecated.
Returns the port of the MCP HTTP server.
port(int) - Method in class com.github.thought2code.mcp.annotated.server.McpSseServerInfo.Builder
Deprecated.
Sets the port of the MCP HTTP server.
port(int) - Method in class com.github.thought2code.mcp.annotated.server.McpStreamableServerInfo.Builder
Deprecated.
Sets the port of the MCP HTTP server.
port(Integer) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerSSE.Builder
Sets the port.
port(Integer) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerStreamable.Builder
Sets the port.
priority() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpResource
The priority of the resource.
profile() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration
Returns the value of the profile record component.
profile(String) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration.Builder
Sets the profile.
prompt() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities
Returns the value of the prompt record component.
prompt() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerChangeNotification
Returns the value of the prompt record component.
prompt(Boolean) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities.Builder
Sets the prompt capability.
prompt(Boolean) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerChangeNotification.Builder
Sets the prompt change notification flag.
provideReflections() - Method in class com.github.thought2code.mcp.annotated.di.GuiceInjectorModule
Provides a Reflections instance for the main class.
provideResourceBundle() - Method in class com.github.thought2code.mcp.annotated.di.GuiceInjectorModule
Provides a ResourceBundle instance for the main class.

R

ReflectionHelper - Enum Class in com.github.thought2code.mcp.annotated.util
Helper class for reflection operations.
registerCompletions() - Method in class com.github.thought2code.mcp.annotated.server.component.McpServerComponentRegister
Registers all completion specifications for prompts and resources.
registerComponents(McpSyncServer) - Method in class com.github.thought2code.mcp.annotated.server.component.McpServerComponentRegister
Registers all MCP server components (resources, prompts, and tools) with the specified server.
requestTimeout - Variable in class com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder
Deprecated.
The request timeout of the MCP server.
requestTimeout() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration
Returns the value of the requestTimeout record component.
requestTimeout() - Method in class com.github.thought2code.mcp.annotated.server.McpServerInfo
Deprecated.
Returns the request timeout of the MCP server.
requestTimeout(Long) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration.Builder
Sets the request timeout.
requestTimeout(Duration) - Method in class com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder
Deprecated.
Sets the request timeout of the MCP server.
required() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpJsonSchemaProperty
Whether the JSON schema property is required.
required() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpPromptParam
Whether the prompt parameter is required.
required() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpToolParam
Whether the tool parameter is required.
resource() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities
Returns the value of the resource record component.
resource() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerChangeNotification
Returns the value of the resource record component.
resource(Boolean) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities.Builder
Sets the resource capability.
resource(Boolean) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerChangeNotification.Builder
Sets the resource change notification flag.
resourceBundleBaseName() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpI18nEnabled
Specifies the base name of the resource bundle to be used for i18n.
result() - Method in record class com.github.thought2code.mcp.annotated.reflect.InvocationResult
Returns the value of the result record component.
result(Object) - Method in class com.github.thought2code.mcp.annotated.reflect.InvocationResult.Builder
Sets the result of the invocation.
roles() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpResource
The roles required to access the resource.
run() - Method in class com.github.thought2code.mcp.annotated.server.configurable.HttpBasedConfigurableMcpServer
Runs the MCP server.
run() - Method in class com.github.thought2code.mcp.annotated.server.HttpBasedMcpServer
Runs the MCP server.
run(Class<?>, String[]) - Static method in class com.github.thought2code.mcp.annotated.McpServers
Initializes the McpServers instance with the specified application main class and arguments.

S

self() - Method in class com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder
Deprecated.
Returns the self reference of the builder, which is used to chain the method calls and ensure the subclasses of McpServerInfo can also inherit the builder methods with parameterized type.
self() - Method in class com.github.thought2code.mcp.annotated.server.McpSseServerInfo.Builder
Deprecated.
Returns the self reference of the builder, which is used to chain the method calls.
self() - Method in class com.github.thought2code.mcp.annotated.server.McpStreamableServerInfo.Builder
Deprecated.
Returns the self reference of the builder, which is used to chain the method calls.
ServerMode - Enum Class in com.github.thought2code.mcp.annotated.enums
This enum represents the mode of MCP (Model Context Protocol) server.
ServerType - Enum Class in com.github.thought2code.mcp.annotated.enums
This enum represents the type of MCP (Model Context Protocol) server.
SPACE - Static variable in class com.github.thought2code.mcp.annotated.util.StringHelper
The space character constant.
sse() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration
Returns the value of the sse record component.
sse(McpServerSSE) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration.Builder
Sets the SSE configuration.
SSE - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.ServerMode
The MCP server runs in http SSE mode.
sseEndpoint() - Method in class com.github.thought2code.mcp.annotated.server.McpSseServerInfo
Deprecated.
Returns the endpoint of the MCP server to receive SSE events.
sseEndpoint(String) - Method in class com.github.thought2code.mcp.annotated.server.McpSseServerInfo.Builder
Deprecated.
Sets the endpoint of the MCP server to receive SSE events.
start() - Method in class com.github.thought2code.mcp.annotated.server.JettyHttpServer
Start Jetty HTTP server and bind it to the specified port.
startServer() - Method in class com.github.thought2code.mcp.annotated.McpServers
Starts a server with the default configuration file name.
startServer(String) - Method in class com.github.thought2code.mcp.annotated.McpServers
Starts a server with the specified configuration file name.
startSseServer(McpServerConfiguration.Builder) - Method in class com.github.thought2code.mcp.annotated.McpServers
Starts an http server-sent events (sse) server with the specified server configuration.
startSseServer(McpSseServerInfo) - Method in class com.github.thought2code.mcp.annotated.McpServers
Deprecated, for removal: This API element is subject to removal in a future version.
startStdioServer(McpServerConfiguration.Builder) - Method in class com.github.thought2code.mcp.annotated.McpServers
Starts a standard input/output (stdio) server with the specified server configuration.
startStdioServer(McpServerInfo) - Method in class com.github.thought2code.mcp.annotated.McpServers
Deprecated, for removal: This API element is subject to removal in a future version.
startStreamableServer(McpServerConfiguration.Builder) - Method in class com.github.thought2code.mcp.annotated.McpServers
Starts a streamable http server with the specified server configuration.
startStreamableServer(McpStreamableServerInfo) - Method in class com.github.thought2code.mcp.annotated.McpServers
Deprecated, for removal: This API element is subject to removal in a future version.
STDIO - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.ServerMode
The MCP server runs in STDIO mode.
stop() - Method in class com.github.thought2code.mcp.annotated.server.JettyHttpServer
Stop Jetty HTTP server.
streamable() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration
Returns the value of the streamable record component.
streamable(McpServerStreamable) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration.Builder
Sets the streamable configuration.
STREAMABLE - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.ServerMode
The MCP server runs in STREAMABLE http mode.
STRING - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
Java String is mapped to JSON schema data type string.
StringHelper - Class in com.github.thought2code.mcp.annotated.util
Helper class for string operations.
subscribeResource() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities
Returns the value of the subscribeResource record component.
subscribeResource(Boolean) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities.Builder
Sets the subscribe-resource capability.
sync() - Method in interface com.github.thought2code.mcp.annotated.server.configurable.ConfigurableMcpServer
Returns the sync specification for the MCP server.
sync() - Method in class com.github.thought2code.mcp.annotated.server.configurable.ConfigurableMcpSseServer
Returns the sync specification for the MCP server in HTTP SSE mode.
sync() - Method in class com.github.thought2code.mcp.annotated.server.configurable.ConfigurableMcpStdioServer
Returns the sync specification for the MCP server in STDIO mode.
sync() - Method in class com.github.thought2code.mcp.annotated.server.configurable.ConfigurableMcpStreamableServer
Returns the sync specification for the MCP server in Streamable HTTP mode.
sync(McpServerInfo) - Method in class com.github.thought2code.mcp.annotated.server.McpStdioServer
Returns the sync specification for the MCP server in STDIO mode.
sync(McpSseServerInfo) - Method in class com.github.thought2code.mcp.annotated.server.McpSseServer
Returns the sync specification for the MCP server in HTTP SSE mode.
sync(McpStreamableServerInfo) - Method in class com.github.thought2code.mcp.annotated.server.McpStreamableServer
Returns the sync specification for the MCP server in Streamable HTTP mode.
sync(S) - Method in interface com.github.thought2code.mcp.annotated.server.McpServer
Returns the sync specification for the MCP server.
SYNC - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.ServerType
The MCP server runs in SYNC mode.

T

title() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpPrompt
The title of the prompt.
title() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpPromptCompletion
Specifies an optional title or description for the prompt completion.
title() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpPromptParam
The title of the prompt parameter.
title() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpResource
The title of the resource.
title() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpTool
The title of the tool.
toJsonString(Object) - Static method in class com.github.thought2code.mcp.annotated.util.JacksonHelper
Serialize an object to a JSON string.
tool() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities
Returns the value of the tool record component.
tool() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerChangeNotification
Returns the value of the tool record component.
tool(Boolean) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities.Builder
Sets the tool capability.
tool(Boolean) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerChangeNotification.Builder
Sets the tool change notification flag.
toString() - Method in record class com.github.thought2code.mcp.annotated.common.Immutable
Returns a string representation of this record class.
toString() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpConfigurationLoader
Returns a string representation of this record class.
toString() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities
Returns a string representation of this record class.
toString() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerChangeNotification
Returns a string representation of this record class.
toString() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration
Returns a string representation of this record class.
toString() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerSSE
Returns a string representation of this record class.
toString() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerStreamable
Returns a string representation of this record class.
toString() - Method in record class com.github.thought2code.mcp.annotated.reflect.InvocationResult
Returns a string representation of this record class.
toString() - Method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
 
toString() - Method in record class com.github.thought2code.mcp.annotated.server.component.McpCompleteCompletion
Returns a string representation of this record class.
total() - Method in record class com.github.thought2code.mcp.annotated.server.component.McpCompleteCompletion
Returns the value of the total record component.
total(Integer) - Method in class com.github.thought2code.mcp.annotated.server.component.McpCompleteCompletion.Builder
Sets the total number of available completions.
transportProvider - Variable in class com.github.thought2code.mcp.annotated.server.configurable.HttpBasedConfigurableMcpServer
The MCP transport provider that will be used to handle requests.
transportProvider - Variable in class com.github.thought2code.mcp.annotated.server.HttpBasedMcpServer
The MCP transport provider that will be used to handle requests.
type() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration
Returns the value of the type record component.
type(ServerType) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration.Builder
Sets the server type.
TypeConverter - Class in com.github.thought2code.mcp.annotated.util
Helper class for Java and JSON schema type conversion.

U

uri() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpResource
The URI of the resource.
uri() - Element in annotation interface com.github.thought2code.mcp.annotated.annotation.McpResourceCompletion
Specifies the URI of the resource for which completion is provided.

V

value() - Method in record class com.github.thought2code.mcp.annotated.common.Immutable
Returns the value of the value record component.
valueOf(String) - Static method in enum class com.github.thought2code.mcp.annotated.di.DependencyInjectorProvider
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.github.thought2code.mcp.annotated.enums.ServerMode
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.github.thought2code.mcp.annotated.enums.ServerType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.github.thought2code.mcp.annotated.util.ReflectionHelper
Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.github.thought2code.mcp.annotated.di.DependencyInjectorProvider
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.github.thought2code.mcp.annotated.enums.ServerMode
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.github.thought2code.mcp.annotated.enums.ServerType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Method in record class com.github.thought2code.mcp.annotated.server.component.McpCompleteCompletion
Returns the value of the values record component.
values() - Static method in enum class com.github.thought2code.mcp.annotated.util.ReflectionHelper
Returns an array containing the constants of this enum class, in the order they are declared.
values(List<String>) - Method in class com.github.thought2code.mcp.annotated.server.component.McpCompleteCompletion.Builder
Sets the completion values with defensive copying.
version - Variable in class com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder
Deprecated.
The version of the MCP server.
version() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration
Returns the value of the version record component.
version() - Method in class com.github.thought2code.mcp.annotated.server.McpServerInfo
Deprecated.
Returns the version of the MCP server.
version(String) - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration.Builder
Sets the server version.
version(String) - Method in class com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder
Deprecated.
Sets the version of the MCP server.

W

warmup() - Method in class com.github.thought2code.mcp.annotated.server.configurable.AbstractConfigurableMcpServer
Warms up the MCP server.
warmup(S) - Method in class com.github.thought2code.mcp.annotated.server.AbstractMcpServer
Warms up the MCP server with the specified server info.
withTransportProvider(HttpServlet) - Method in class com.github.thought2code.mcp.annotated.server.JettyHttpServer
Register a servlet to be handled by Jetty HTTP server.
A B C D E F G H I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form