Index
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
AbstractConfigurableMcpServerwith 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
Tfor 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
AbstractParameterConverterto the required type, and provides a default implementation for theAbstractParameterConverter.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
ASYNCmode.
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
baseUrlrecord 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
booleanis mapped to JSON schema data typeboolean. - BOOLEAN_CLASS - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
-
Java
Booleanis mapped to JSON schema data typeboolean. - build() - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities.Builder
-
Builds an instance of
McpServerCapabilitieswith the configured values. - build() - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerChangeNotification.Builder
-
Builds an instance of
McpServerChangeNotificationwith 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
McpServerSSEwith the configured values. - build() - Method in class com.github.thought2code.mcp.annotated.configuration.McpServerStreamable.Builder
-
Builds an instance of
McpServerStreamablewith the configured values. - build() - Method in class com.github.thought2code.mcp.annotated.reflect.InvocationResult.Builder
-
Builds a new instance of
InvocationResultwith the configured values. - build() - Method in class com.github.thought2code.mcp.annotated.server.component.McpCompleteCompletion.Builder
-
Builds a new
McpCompleteCompletioninstance with the configured values. - build() - Method in class com.github.thought2code.mcp.annotated.server.McpServerInfo.Builder
-
Deprecated.Builds a new instance of
McpServerInfowith the specified configuration. - build() - Method in class com.github.thought2code.mcp.annotated.server.McpSseServerInfo.Builder
-
Deprecated.Builds a new
McpSseServerInfoinstance with the specified builder. - build() - Method in class com.github.thought2code.mcp.annotated.server.McpStreamableServerInfo.Builder
-
Deprecated.Builds a new
McpStreamableServerInfoinstance with the specified builder. - builder() - Static method in record class com.github.thought2code.mcp.annotated.configuration.McpServerCapabilities
-
Creates a new instance of
Builderto buildMcpServerCapabilities. - builder() - Static method in record class com.github.thought2code.mcp.annotated.configuration.McpServerChangeNotification
-
Creates a new instance of
Builderto buildMcpServerChangeNotification. - builder() - Static method in record class com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration
-
Creates a new instance of
Builderto buildMcpServerConfiguration. - builder() - Static method in record class com.github.thought2code.mcp.annotated.configuration.McpServerSSE
-
Creates a new instance of
Builderto buildMcpServerSSE. - builder() - Static method in record class com.github.thought2code.mcp.annotated.configuration.McpServerStreamable
-
Creates a new instance of
Builderto buildMcpServerStreamable. - builder() - Static method in record class com.github.thought2code.mcp.annotated.reflect.InvocationResult
-
Returns a new instance of
Builderfor creating a newInvocationResult. - builder() - Static method in record class com.github.thought2code.mcp.annotated.server.component.McpCompleteCompletion
-
Creates a new
McpCompleteCompletion.Builderinstance for constructingMcpCompleteCompletionobjects. - builder() - Static method in class com.github.thought2code.mcp.annotated.server.McpServerInfo
-
Deprecated.Returns a new instance of
Builderto create aMcpServerInfoinstance. - builder() - Static method in class com.github.thought2code.mcp.annotated.server.McpSseServerInfo
-
Deprecated.Returns a new builder instance to construct a
McpSseServerInfoinstance. - builder() - Static method in class com.github.thought2code.mcp.annotated.server.McpStreamableServerInfo
-
Deprecated.Returns a new builder instance to construct a
McpStreamableServerInfoinstance. - 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
capabilitiesrecord 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
changeNotificationrecord 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
completionrecord 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
configFileNamerecord 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
ConfigurableMcpSseServerbased on the specifiedMcpServerConfigurationin HTTP SSE mode. - ConfigurableMcpSseServer(McpServerConfiguration) - Constructor for class com.github.thought2code.mcp.annotated.server.configurable.ConfigurableMcpSseServer
-
Creates a new instance of
ConfigurableMcpSseServerwith the specified configuration. - ConfigurableMcpStdioServer - Class in com.github.thought2code.mcp.annotated.server.configurable
-
This class is used to create a new instance of
ConfigurableMcpStdioServerbased on the specifiedMcpServerConfigurationin STDIO mode. - ConfigurableMcpStdioServer(McpServerConfiguration) - Constructor for class com.github.thought2code.mcp.annotated.server.configurable.ConfigurableMcpStdioServer
-
Creates a new instance of
ConfigurableMcpStdioServerwith the specified configuration. - ConfigurableMcpStreamableServer - Class in com.github.thought2code.mcp.annotated.server.configurable
-
This class is used to create a new instance of
ConfigurableMcpStreamableServerbased on the specifiedMcpServerConfigurationin Streamable HTTP mode. - ConfigurableMcpStreamableServer(McpServerConfiguration) - Constructor for class com.github.thought2code.mcp.annotated.server.configurable.ConfigurableMcpStreamableServer
-
Creates a new instance of
ConfigurableMcpStreamableServerwith 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
McpPromptParamto 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
McpToolParamto 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
DependencyInjectorProviderthat can be used to initialize and retrieve theDependencyInjectorinstance. - 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
disallowDeleterecord 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
doubleis mapped to JSON schema data typenumber. - DOUBLE_CLASS - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
-
Java
Doubleis mapped to JSON schema data typenumber.
E
- empty() - Static method in record class com.github.thought2code.mcp.annotated.server.component.McpCompleteCompletion
-
Creates an empty
McpCompleteCompletioninstance. - 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
enabledrecord 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
endpointrecord 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
exceptionrecord 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
floatis mapped to JSON schema data typenumber. - FLOAT_CLASS - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
-
Java
Floatis mapped to JSON schema data typenumber. - 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
Immutableinstance. - 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
DependencyInjectorinstance. - 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
McpPrompton the cached method. - getMcpPromptCompletionAnnotation() - Method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
-
Returns the annotation
McpPromptCompletionon the cached method. - getMcpResourceAnnotation() - Method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
-
Returns the annotation
McpResourceon the cached method. - getMcpResourceCompletionAnnotation() - Method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
-
Returns the annotation
McpResourceCompletionon the cached method. - getMcpToolAnnotation() - Method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
-
Returns the annotation
McpToolon the cached method. - getMethod() - Method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
-
Returns the method cached by this
MethodCacheinstance. - 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
DependencyInjectorinterface using Google Guice. - GuiceDependencyInjector(Injector) - Constructor for class com.github.thought2code.mcp.annotated.di.GuiceDependencyInjector
-
Creates a new instance of
GuiceDependencyInjectorwith the specified GuiceInjector. - 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, andMcpTool. - GuiceInjectorModule(Class<?>) - Constructor for class com.github.thought2code.mcp.annotated.di.GuiceInjectorModule
-
Constructs a new
GuiceInjectorModulewith 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
hasMorerecord 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
HttpBasedConfigurableMcpServerwith 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
Immutablerecord class. - initialize(DependencyInjector) - Method in enum class com.github.thought2code.mcp.annotated.di.DependencyInjectorProvider
-
Initializes the
DependencyInjectorProviderwith the specifiedDependencyInjector. - 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
instructionsrecord 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
intis mapped to JSON schema data typeinteger. - INTEGER - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
-
Java
Integeris mapped to JSON schema data typeinteger. - 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
InvocationResultrecord 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
keepAliveIntervalrecord 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
longis mapped to JSON schema data typenumber. - LONG_CLASS - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
-
Java
Longis mapped to JSON schema data typenumber.
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
McpCompleteCompletioninstances. - 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
McpConfigurationLoaderrecord 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
mcpEndpointrecord 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
McpPromptParamto 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
McpServerCapabilitiesrecord 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
McpServerChangeNotificationrecord 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
Tfor 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
McpServerComponentRegistrationExceptionwith the specified detail message. - McpServerComponentRegistrationException(String, Throwable) - Constructor for exception com.github.thought2code.mcp.annotated.exception.McpServerComponentRegistrationException
-
Constructs a new
McpServerComponentRegistrationExceptionwith 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
McpServerConfigurationrecord 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
McpServerConfigurationExceptionwith the specified detail message. - McpServerConfigurationException(String, Throwable) - Constructor for exception com.github.thought2code.mcp.annotated.exception.McpServerConfigurationException
-
Creates a new instance of
McpServerConfigurationExceptionwith 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
McpServerExceptionwith the specified detail message. - McpServerException(String, Throwable) - Constructor for exception com.github.thought2code.mcp.annotated.exception.McpServerException
-
Creates a new instance of
McpServerExceptionwith 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
McpServerInfowith 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
McpServerJsonProcessingExceptionwith the specified detail message. - McpServerJsonProcessingException(String, Throwable) - Constructor for exception com.github.thought2code.mcp.annotated.exception.McpServerJsonProcessingException
-
Creates a new instance of
McpServerJsonProcessingExceptionwith 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
McpServerSSErecord 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
McpServerStreamablerecord 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
McpSseServerbased on the specifiedMcpSseServerInfoin 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
McpStdioServerbased on the specifiedMcpServerInfoin 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
McpStreamableServerbased on the specifiedMcpStreamableServerInfoin 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
McpToolParamto 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
messageEndpointrecord 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
MethodCachewith 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
moderecord 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
namerecord 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
NamedThreadFactorywith 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
Numberis mapped to JSON schema data typenumber.
O
- OBJECT - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
-
Java
Objectis mapped to JSON schema data typeobject. - of(Method) - Static method in class com.github.thought2code.mcp.annotated.reflect.MethodCache
-
Creates a new instance of
MethodCachewith the specified method. - of(T) - Static method in record class com.github.thought2code.mcp.annotated.common.Immutable
-
Creates a new instance of
Immutablewith 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
ParameterConverterto 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
portrecord component. - port() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerStreamable
-
Returns the value of the
portrecord 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
profilerecord 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
promptrecord component. - prompt() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerChangeNotification
-
Returns the value of the
promptrecord 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
Reflectionsinstance for the main class. - provideResourceBundle() - Method in class com.github.thought2code.mcp.annotated.di.GuiceInjectorModule
-
Provides a
ResourceBundleinstance 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
requestTimeoutrecord 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
resourcerecord component. - resource() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerChangeNotification
-
Returns the value of the
resourcerecord 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
resultrecord 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
McpServerInfocan 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
sserecord 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
SSEmode. - 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
STDIOmode. - 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
streamablerecord 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
STREAMABLEhttp mode. - STRING - Enum constant in enum class com.github.thought2code.mcp.annotated.enums.JavaTypeToJsonSchemaMapper
-
Java
Stringis mapped to JSON schema data typestring. - 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
subscribeResourcerecord 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
SYNCmode.
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
toolrecord component. - tool() - Method in record class com.github.thought2code.mcp.annotated.configuration.McpServerChangeNotification
-
Returns the value of the
toolrecord 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
totalrecord 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
typerecord 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
valuerecord 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
valuesrecord 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
versionrecord 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.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form