Index

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

A

accessToken() - Method in record class com.tnsai.mcp.auth.PkceFlow.TokenResponse
Returns the value of the accessToken record component.
addAssistantMessage(String) - Method in class com.tnsai.mcp.model.SamplingRequest.Builder
 
addMessage(SamplingMessage) - Method in class com.tnsai.mcp.model.SamplingRequest.Builder
 
addPromptProvider(PromptProvider) - Method in class com.tnsai.mcp.server.HttpMcpServer.Builder
Adds a prompt provider.
addPromptProvider(PromptProvider) - Method in class com.tnsai.mcp.server.McpRequestHandler
Adds a prompt provider.
addPromptProvider(PromptProvider) - Method in class com.tnsai.mcp.server.McpServer
Adds a prompt provider to the server.
addPromptProvider(PromptProvider) - Method in class com.tnsai.mcp.server.McpServer.Builder
Adds a prompt provider.
addResourceProvider(ResourceProvider) - Method in class com.tnsai.mcp.server.HttpMcpServer.Builder
Adds a resource provider.
addResourceProvider(ResourceProvider) - Method in class com.tnsai.mcp.server.McpRequestHandler
Adds a resource provider.
addResourceProvider(ResourceProvider) - Method in class com.tnsai.mcp.server.McpServer
Adds a resource provider to the server.
addResourceProvider(ResourceProvider) - Method in class com.tnsai.mcp.server.McpServer.Builder
Adds a resource provider.
addRoot(Root) - Method in class com.tnsai.mcp.client.McpClient
Adds a root and notifies the server.
addSource(McpRegistrySource) - Method in class com.tnsai.mcp.registry.UnifiedMcpRegistry
Adds a registry source.
addToolErrorListener(ToolErrorListener) - Method in class com.tnsai.mcp.server.McpRequestHandler
Adds a listener for tool execution error events.
addToolProvider(ToolProvider) - Method in class com.tnsai.mcp.server.HttpMcpServer.Builder
Adds a tool provider.
addToolProvider(ToolProvider) - Method in class com.tnsai.mcp.server.McpRequestHandler
Adds a tool provider.
addToolProvider(ToolProvider) - Method in class com.tnsai.mcp.server.McpServer
Adds a tool provider to the server.
addToolProvider(ToolProvider) - Method in class com.tnsai.mcp.server.McpServer.Builder
Adds a tool provider.
addUserMessage(String) - Method in class com.tnsai.mcp.model.SamplingRequest.Builder
 
afterEach(ExtensionContext) - Method in class com.tnsai.mcp.testing.McpServerTestKit
 
ALERT - Enum constant in enum class com.tnsai.mcp.model.LogLevel
 
annotation(String, Object) - Method in class com.tnsai.mcp.model.McpToolDefinition.Builder
Generic annotation setter.
apiKey(String) - Method in class com.tnsai.mcp.client.SSETransport.Builder
Sets the API key for Bearer authentication.
apiKey(String) - Method in class com.tnsai.mcp.client.StreamableHttpTransport.Builder
Sets the API key for Bearer authentication.
apiKey(String) - Method in class com.tnsai.mcp.McpServerConfig.Builder
 
apiKey(String, String) - Method in class com.tnsai.mcp.McpServerConfig.Builder
 
appName() - Method in record class com.tnsai.mcp.composio.ComposioClient.ComposioTool
Returns the value of the appName record component.
appName() - Method in record class com.tnsai.mcp.composio.ComposioClient.ConnectionStatus
Returns the value of the appName record component.
assertToolExists(String) - Method in class com.tnsai.mcp.testing.McpServerTestKit
Asserts that a tool with the given name exists on the server.
assertToolReturns(String, Map<String, Object>, Predicate<JsonNode>) - Method in class com.tnsai.mcp.testing.McpServerTestKit
Asserts that a tool returns a result matching the given predicate.
assistant(String) - Static method in class com.tnsai.mcp.model.SamplingMessage
 
assistant(String) - Static method in class com.tnsai.mcp.server.PromptProvider.PromptMessage
Creates an assistant message with text content.
authMethod() - Method in record class com.tnsai.mcp.composio.ComposioClient.ConnectionStatus
Returns the value of the authMethod record component.
authorizationEndpoint() - Method in record class com.tnsai.mcp.auth.McpOAuthDiscovery.OAuthMetadata
Returns the value of the authorizationEndpoint record component.
autoReconnect(boolean) - Method in class com.tnsai.mcp.client.StdioTransport.Builder
Enables or disables automatic reconnection.

B

BaseTransport - Class in com.tnsai.mcp.client
Shared scaffolding for McpTransport implementations.
BaseTransport() - Constructor for class com.tnsai.mcp.client.BaseTransport
 
beforeEach(ExtensionContext) - Method in class com.tnsai.mcp.testing.McpServerTestKit
 
blob(String, byte[], String) - Static method in class com.tnsai.mcp.model.ResourceContent
 
broadcast(String) - Method in class com.tnsai.mcp.server.McpSessionManager
Sends a notification to all active sessions.
broadcastNotification(String, JsonNode) - Method in class com.tnsai.mcp.server.HttpMcpServer
Broadcasts a notification to all active sessions.
build() - Method in class com.tnsai.mcp.auth.OAuthMcpTransport.Builder
Builds the OAuthMcpTransport instance.
build() - Method in class com.tnsai.mcp.client.McpClient.Builder
Builds the McpClient instance.
build() - Method in class com.tnsai.mcp.client.SSETransport.Builder
Builds the SSETransport instance.
build() - Method in class com.tnsai.mcp.client.StdioTransport.Builder
Builds the StdioTransport instance.
build() - Method in class com.tnsai.mcp.client.StreamableHttpTransport.Builder
Builds the StreamableHttpTransport instance.
build() - Method in class com.tnsai.mcp.McpServerConfig.Builder
Builds the McpServerConfig instance.
build() - Method in class com.tnsai.mcp.model.McpToolArgs.Builder
Builds the argument map.
build() - Method in class com.tnsai.mcp.model.McpToolDefinition.Builder
 
build() - Method in class com.tnsai.mcp.model.ModelPreferences.Builder
 
build() - Method in class com.tnsai.mcp.model.Resource.Builder
 
build() - Method in class com.tnsai.mcp.model.ResourceTemplate.Builder
 
build() - Method in class com.tnsai.mcp.model.SamplingRequest.Builder
 
build() - Method in class com.tnsai.mcp.server.HttpMcpServer.Builder
Builds the HttpMcpServer instance.
build() - Method in class com.tnsai.mcp.server.McpServer.Builder
Builds the McpServer instance.
buildAuthorizationUrl(String, String, String, String, String, PkceFlow.PkceChallenge) - Static method in class com.tnsai.mcp.auth.PkceFlow
Builds an OAuth authorization URL with PKCE parameters.
builder() - Static method in class com.tnsai.mcp.auth.OAuthMcpTransport
Creates a new builder for OAuthMcpTransport.
builder() - Static method in class com.tnsai.mcp.client.McpClient
Creates a new builder for McpClient.
builder() - Static method in class com.tnsai.mcp.client.SSETransport
Creates a new SSETransport builder.
builder() - Static method in class com.tnsai.mcp.client.StdioTransport
Creates a new builder for StdioTransport.
builder() - Static method in class com.tnsai.mcp.client.StreamableHttpTransport
Creates a new StreamableHttpTransport builder.
builder() - Static method in class com.tnsai.mcp.McpServerConfig
Creates a builder for more complex configurations.
builder() - Static method in class com.tnsai.mcp.model.McpToolArgs
Creates a new builder.
builder() - Static method in class com.tnsai.mcp.model.McpToolDefinition
 
builder() - Static method in class com.tnsai.mcp.model.ModelPreferences
 
builder() - Static method in class com.tnsai.mcp.model.Resource
 
builder() - Static method in class com.tnsai.mcp.model.ResourceTemplate
 
builder() - Static method in class com.tnsai.mcp.model.SamplingRequest
 
builder() - Static method in class com.tnsai.mcp.server.HttpMcpServer
Creates a new builder for HttpMcpServer.
builder() - Static method in class com.tnsai.mcp.server.McpServer
Creates a new builder for McpServer.
Builder() - Constructor for class com.tnsai.mcp.client.McpClient.Builder
 
Builder() - Constructor for class com.tnsai.mcp.client.StdioTransport.Builder
 
Builder() - Constructor for class com.tnsai.mcp.model.ModelPreferences.Builder
 
Builder() - Constructor for class com.tnsai.mcp.model.Resource.Builder
 
Builder() - Constructor for class com.tnsai.mcp.model.ResourceTemplate.Builder
 
Builder() - Constructor for class com.tnsai.mcp.model.SamplingRequest.Builder
 
Builder() - Constructor for class com.tnsai.mcp.server.HttpMcpServer.Builder
 
Builder() - Constructor for class com.tnsai.mcp.server.McpServer.Builder
 
buildLogNotification(LogMessage) - Method in class com.tnsai.mcp.server.McpRequestHandler
Builds a log notification message for sending to the client.
buildNotification(String, JsonNode) - Method in class com.tnsai.mcp.server.McpRequestHandler
Builds a JSON-RPC notification string.
buildWrapped() - Method in class com.tnsai.mcp.model.McpToolArgs.Builder
Builds and wraps in McpToolArgs for typed access.

C

call(String) - Method in class com.tnsai.mcp.hub.McpToolBridge
Call a tool with no arguments.
call(String, String, Object) - Method in class com.tnsai.mcp.hub.McpToolBridge
Call a tool with a single argument.
call(String, Map<String, Object>) - Method in class com.tnsai.mcp.hub.McpToolBridge
Call a tool on the MCP server.
CamelMcpHubClient - Class in com.tnsai.mcp.registry
Registry client for the Camel MCP Hub at mcp.camel-ai.org.
CamelMcpHubClient() - Constructor for class com.tnsai.mcp.registry.CamelMcpHubClient
Creates a CamelMcpHubClient with default HTTP client.
CamelMcpHubClient(HttpClient) - Constructor for class com.tnsai.mcp.registry.CamelMcpHubClient
Creates a CamelMcpHubClient with a custom HTTP client.
category() - Method in record class com.tnsai.mcp.server.event.ToolErrorEvent
Returns the value of the category record component.
clear() - Method in class com.tnsai.mcp.testing.McpInspectorClient
Clears all recorded messages.
clearAll() - Method in class com.tnsai.mcp.auth.McpTokenManager
Clears all stored tokens.
clearCache() - Method in class com.tnsai.mcp.registry.UnifiedMcpRegistry
Clears all cached entries.
clearToolErrorHistory() - Method in class com.tnsai.mcp.server.McpRequestHandler
Clears the tool error history.
clientId() - Method in record class com.tnsai.mcp.auth.McpClientRegistration.RegistrationResponse
Returns the value of the clientId record component.
clientId(String) - Method in class com.tnsai.mcp.auth.OAuthMcpTransport.Builder
Sets the OAuth client ID for token refresh.
clientName() - Method in record class com.tnsai.mcp.auth.McpClientRegistration.RegistrationRequest
Returns the value of the clientName record component.
clientName() - Method in record class com.tnsai.mcp.auth.McpClientRegistration.RegistrationResponse
Returns the value of the clientName record component.
clientName(String) - Method in class com.tnsai.mcp.client.McpClient.Builder
Sets the client name for initialization.
clientRoots(List<Root>) - Method in class com.tnsai.mcp.server.McpServer.Builder
Sets the initial client roots.
clientSecret() - Method in record class com.tnsai.mcp.auth.McpClientRegistration.RegistrationResponse
Returns the value of the clientSecret record component.
clientVersion(String) - Method in class com.tnsai.mcp.client.McpClient.Builder
Sets the client version for initialization.
close() - Method in class com.tnsai.mcp.hub.McpTool
Clean up resources.
code() - Method in enum class com.tnsai.mcp.server.event.ToolErrorCategory
Returns the machine-readable error code.
codeChallenge() - Method in record class com.tnsai.mcp.auth.PkceFlow.PkceChallenge
Returns the value of the codeChallenge record component.
codeChallengeMethod() - Method in record class com.tnsai.mcp.auth.PkceFlow.PkceChallenge
Returns the value of the codeChallengeMethod record component.
codeChallengeMethodsSupported() - Method in record class com.tnsai.mcp.auth.McpOAuthDiscovery.OAuthMetadata
Returns the value of the codeChallengeMethodsSupported record component.
codeVerifier() - Method in record class com.tnsai.mcp.auth.PkceFlow.PkceChallenge
Returns the value of the codeVerifier record component.
com.tnsai.mcp - package com.tnsai.mcp
 
com.tnsai.mcp.auth - package com.tnsai.mcp.auth
 
com.tnsai.mcp.client - package com.tnsai.mcp.client
 
com.tnsai.mcp.composio - package com.tnsai.mcp.composio
 
com.tnsai.mcp.database - package com.tnsai.mcp.database
 
com.tnsai.mcp.goose - package com.tnsai.mcp.goose
 
com.tnsai.mcp.hub - package com.tnsai.mcp.hub
 
com.tnsai.mcp.model - package com.tnsai.mcp.model
 
com.tnsai.mcp.observability - package com.tnsai.mcp.observability
 
com.tnsai.mcp.registry - package com.tnsai.mcp.registry
 
com.tnsai.mcp.server - package com.tnsai.mcp.server
 
com.tnsai.mcp.server.event - package com.tnsai.mcp.server.event
 
com.tnsai.mcp.spi - package com.tnsai.mcp.spi
 
com.tnsai.mcp.stripe - package com.tnsai.mcp.stripe
 
com.tnsai.mcp.testing - package com.tnsai.mcp.testing
 
command(String...) - Method in class com.tnsai.mcp.client.StdioTransport.Builder
Sets the command to execute.
commandName() - Method in record class com.tnsai.mcp.client.StdioTransport.DisconnectReason
Returns the value of the commandName record component.
complete(CompletionRequest) - Method in class com.tnsai.mcp.client.McpClient
Requests auto-completion suggestions from the server.
completePromptArgument(String, String, String) - Method in class com.tnsai.mcp.client.McpClient
Requests prompt argument completion suggestions.
completeResourceUri(String) - Method in class com.tnsai.mcp.client.McpClient
Requests resource URI completion suggestions.
Completion() - Constructor for class com.tnsai.mcp.model.CompletionResponse.Completion
 
CompletionArgument() - Constructor for class com.tnsai.mcp.model.CompletionRequest.CompletionArgument
 
CompletionArgument(String, String) - Constructor for class com.tnsai.mcp.model.CompletionRequest.CompletionArgument
 
CompletionRef() - Constructor for class com.tnsai.mcp.model.CompletionRequest.CompletionRef
 
CompletionRequest - Class in com.tnsai.mcp.model
Request for auto-completion in MCP.
CompletionRequest() - Constructor for class com.tnsai.mcp.model.CompletionRequest
 
CompletionRequest(CompletionRequest.CompletionRef, CompletionRequest.CompletionArgument) - Constructor for class com.tnsai.mcp.model.CompletionRequest
 
CompletionRequest.CompletionArgument - Class in com.tnsai.mcp.model
 
CompletionRequest.CompletionRef - Class in com.tnsai.mcp.model
 
CompletionResponse - Class in com.tnsai.mcp.model
Response from auto-completion request in MCP.
CompletionResponse() - Constructor for class com.tnsai.mcp.model.CompletionResponse
 
CompletionResponse.Completion - Class in com.tnsai.mcp.model
 
ComposioApp(String, String, String, boolean) - Constructor for record class com.tnsai.mcp.composio.ComposioClient.ComposioApp
Creates an instance of a ComposioApp record class.
ComposioAuthBridge - Class in com.tnsai.mcp.composio
Bridges Composio's API key authentication to MCP-compatible auth headers.
ComposioAuthBridge(String) - Constructor for class com.tnsai.mcp.composio.ComposioAuthBridge
Creates a new ComposioAuthBridge with the given API key.
ComposioClient - Class in com.tnsai.mcp.composio
Client for the Composio platform API.
ComposioClient(String) - Constructor for class com.tnsai.mcp.composio.ComposioClient
Creates a new ComposioClient with the given API key.
ComposioClient.ComposioApp - Record Class in com.tnsai.mcp.composio
Represents a Composio app (e.g., GitHub, Slack, Gmail).
ComposioClient.ComposioTool - Record Class in com.tnsai.mcp.composio
Represents a Composio tool.
ComposioClient.ConnectionStatus - Record Class in com.tnsai.mcp.composio
Represents the connection status for a Composio app.
ComposioDiscovery - Class in com.tnsai.mcp.composio
Discovers Composio tools and converts them to MCP-compatible definitions.
ComposioDiscovery(ComposioClient) - Constructor for class com.tnsai.mcp.composio.ComposioDiscovery
Creates a new ComposioDiscovery with the given client.
ComposioTool(String, String, String, JsonNode) - Constructor for record class com.tnsai.mcp.composio.ComposioClient.ComposioTool
Creates an instance of a ComposioTool record class.
Composition - Search tag in interface com.tnsai.mcp.client.HttpInterceptor
Section
config() - Method in record class com.tnsai.mcp.goose.GooseExtensionLoader.GooseExtension
Returns the value of the config record component.
Config map keys - Search tag in class com.tnsai.mcp.spi.DefaultMcpClientFactory
Section
connect() - Method in class com.tnsai.mcp.auth.OAuthMcpTransport
 
connect() - Method in class com.tnsai.mcp.client.BaseTransport
 
connect() - Method in class com.tnsai.mcp.client.HttpTransport
 
connect() - Method in class com.tnsai.mcp.client.McpClient
Connects to the MCP server.
connect() - Method in interface com.tnsai.mcp.client.McpTransport
Connects to the MCP server.
connect() - Method in class com.tnsai.mcp.client.SSETransport
 
connect() - Method in class com.tnsai.mcp.client.StdioTransport
 
connect() - Method in class com.tnsai.mcp.client.StreamableHttpTransport
 
connect() - Method in class com.tnsai.mcp.hub.McpTool
Connect to the MCP server and initialize the session.
connect() - Method in class com.tnsai.mcp.observability.McpTracingInterceptor
 
connect() - Method in class com.tnsai.mcp.observability.TracingMcpClient
Connects to the MCP server with tracing.
connect() - Method in class com.tnsai.mcp.testing.McpInspectorClient
 
connect() - Method in class com.tnsai.mcp.testing.MockMcpTransport
 
connected() - Method in record class com.tnsai.mcp.composio.ComposioClient.ComposioApp
Returns the value of the connected record component.
connected() - Method in record class com.tnsai.mcp.composio.ComposioClient.ConnectionStatus
Returns the value of the connected record component.
ConnectionStatus(String, boolean, String) - Constructor for record class com.tnsai.mcp.composio.ComposioClient.ConnectionStatus
Creates an instance of a ConnectionStatus record class.
connectTimeout(Duration) - Method in class com.tnsai.mcp.client.SSETransport.Builder
Sets the connection timeout.
content() - Method in record class com.tnsai.mcp.testing.McpInspectorClient.MessageRecord
Returns the value of the content record component.
costPriority(double) - Method in class com.tnsai.mcp.model.ModelPreferences.Builder
 
crash(int, String) - Static method in record class com.tnsai.mcp.client.StdioTransport.DisconnectReason
Creates a crash reason from a process exit.
crashed() - Method in record class com.tnsai.mcp.client.StdioTransport.DisconnectReason
Returns the value of the crashed record component.
create(McpTransport) - Static method in class com.tnsai.mcp.client.McpClient
Creates an McpClient with the given transport and default settings.
create(String...) - Static method in class com.tnsai.mcp.client.StdioTransport
Creates a simple StdioTransport with default settings.
createCustomer(String, String) - Method in class com.tnsai.mcp.stripe.StripeMcpClient
Creates a new customer.
createPaymentIntent(long, String) - Method in class com.tnsai.mcp.stripe.StripeMcpClient
Creates a payment intent with the given amount and currency.
createSamplingMessage(SamplingRequest) - Method in class com.tnsai.mcp.client.McpClient
Sends a sampling/createMessage request to the server to generate text.
createSession(McpRequestHandler) - Method in class com.tnsai.mcp.server.McpSessionManager
Creates a new session.
CRITICAL - Enum constant in enum class com.tnsai.mcp.model.LogLevel
 
custom(McpTransport, String, String) - Static method in class com.tnsai.mcp.hub.McpToolBridge
Create a bridge with custom transport.

D

debug(String, String) - Static method in class com.tnsai.mcp.model.LogMessage
 
DEBUG - Enum constant in enum class com.tnsai.mcp.model.LogLevel
 
decrementActiveSessions() - Method in class com.tnsai.mcp.observability.McpMetricsCollector
Decrements the active sessions gauge by one.
DefaultMcpClientFactory - Class in com.tnsai.mcp.spi
Default McpClientFactory shipped by tnsai-mcp.
DefaultMcpClientFactory() - Constructor for class com.tnsai.mcp.spi.DefaultMcpClientFactory
 
delegate(McpTransport) - Method in class com.tnsai.mcp.auth.OAuthMcpTransport.Builder
Sets the underlying transport to delegate to.
describeTable(String) - Method in class com.tnsai.mcp.database.GoogleMcpToolboxClient
Describes the schema of a table.
describeTable(String) - Method in class com.tnsai.mcp.database.PostgresMcpClient
Describes the schema of a table.
description() - Method in record class com.tnsai.mcp.composio.ComposioClient.ComposioApp
Returns the value of the description record component.
description() - Method in record class com.tnsai.mcp.composio.ComposioClient.ComposioTool
Returns the value of the description record component.
description() - Method in record class com.tnsai.mcp.goose.GooseExtensionLoader.GooseExtension
Returns the value of the description record component.
description() - Method in record class com.tnsai.mcp.goose.GooseRecipeParser.Recipe
Returns the value of the description record component.
description() - Method in record class com.tnsai.mcp.goose.TnsAIGooseExtension.ExtensionManifest
Returns the value of the description record component.
description() - Method in record class com.tnsai.mcp.goose.TnsAIGooseExtension.ExtensionTool
Returns the value of the description record component.
description() - Method in record class com.tnsai.mcp.registry.McpServerEntry
Returns the value of the description record component.
description(String) - Method in class com.tnsai.mcp.model.McpToolDefinition.Builder
 
description(String) - Method in class com.tnsai.mcp.model.Resource.Builder
 
description(String) - Method in class com.tnsai.mcp.model.ResourceTemplate.Builder
 
detect(String) - Static method in class com.tnsai.mcp.client.TransportDetector
Detects the best transport for a given endpoint.
detect(String, Map<String, String>) - Static method in class com.tnsai.mcp.client.TransportDetector
Detects the best transport for a given endpoint with custom headers.
direction() - Method in record class com.tnsai.mcp.testing.McpInspectorClient.MessageRecord
Returns the value of the direction record component.
disconnect() - Method in class com.tnsai.mcp.auth.OAuthMcpTransport
 
disconnect() - Method in class com.tnsai.mcp.client.BaseTransport
 
disconnect() - Method in class com.tnsai.mcp.client.HttpTransport
 
disconnect() - Method in class com.tnsai.mcp.client.McpClient
Disconnects from the MCP server.
disconnect() - Method in interface com.tnsai.mcp.client.McpTransport
Disconnects from the MCP server.
disconnect() - Method in class com.tnsai.mcp.client.SSETransport
 
disconnect() - Method in class com.tnsai.mcp.client.StdioTransport
 
disconnect() - Method in class com.tnsai.mcp.client.StreamableHttpTransport
 
disconnect() - Method in class com.tnsai.mcp.hub.McpTool
Disconnect from the MCP server.
disconnect() - Method in class com.tnsai.mcp.observability.McpTracingInterceptor
 
disconnect() - Method in class com.tnsai.mcp.observability.TracingMcpClient
Disconnects from the MCP server with tracing.
disconnect() - Method in class com.tnsai.mcp.testing.McpInspectorClient
 
disconnect() - Method in class com.tnsai.mcp.testing.MockMcpTransport
 
DisconnectReason(int, String, boolean, String) - Constructor for record class com.tnsai.mcp.client.StdioTransport.DisconnectReason
Creates an instance of a DisconnectReason record class.
discover(String) - Static method in class com.tnsai.mcp.auth.McpOAuthDiscovery
Discovers OAuth metadata from a server URL.
discoverTools() - Method in class com.tnsai.mcp.composio.ComposioDiscovery
Discovers all available Composio tools and converts them to MCP tool definitions.
discoverTools() - Method in class com.tnsai.mcp.hub.McpTool
Discover available tools from the MCP server.
discoverTools(String) - Method in class com.tnsai.mcp.composio.ComposioDiscovery
Discovers tools for a specific Composio app and converts them to MCP tool definitions.
Dynamic Tool Discovery (use McpToolBridge) - Search tag in class com.tnsai.mcp.hub.McpTool
Section
Dynamic tools (e.g. MCP proxies) - Search tag in class com.tnsai.mcp.server.TnsAIToolProvider
Section

E

EMERGENCY - Enum constant in enum class com.tnsai.mcp.model.LogLevel
 
emitLogMessage(LogMessage) - Method in class com.tnsai.mcp.server.McpRequestHandler
Emits a log message.
emitLogMessage(LogMessage) - Method in class com.tnsai.mcp.server.McpServer
Emits a log message to the client if it meets the current log level.
end() - Method in interface com.tnsai.mcp.observability.McpSpan
Ends this span, recording its duration.
endpoint() - Method in record class com.tnsai.mcp.registry.McpServerEntry
Returns the value of the endpoint record component.
endpoint(String) - Method in class com.tnsai.mcp.client.StreamableHttpTransport.Builder
Sets the MCP server endpoint URL.
endpoint(String) - Method in class com.tnsai.mcp.McpServerConfig.Builder
 
enqueueNotification(String) - Method in class com.tnsai.mcp.server.McpSession
Enqueues a notification to be delivered via the SSE stream or polled later.
environment(String, String) - Method in class com.tnsai.mcp.client.StdioTransport.Builder
Adds an environment variable for the process.
environment(Map<String, String>) - Method in class com.tnsai.mcp.client.StdioTransport.Builder
Adds multiple environment variables for the process.
equals(Object) - Method in record class com.tnsai.mcp.auth.McpClientRegistration.RegistrationRequest
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.mcp.auth.McpClientRegistration.RegistrationResponse
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.mcp.auth.McpOAuthDiscovery.OAuthMetadata
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.mcp.auth.PkceFlow.PkceChallenge
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.mcp.auth.PkceFlow.TokenResponse
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.mcp.client.StdioTransport.DisconnectReason
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.mcp.composio.ComposioClient.ComposioApp
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.mcp.composio.ComposioClient.ComposioTool
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.mcp.composio.ComposioClient.ConnectionStatus
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.mcp.goose.GooseExtensionLoader.GooseExtension
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.mcp.goose.GooseRecipeParser.Recipe
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.mcp.goose.GooseRecipeParser.RecipeStep
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.mcp.goose.TnsAIGooseExtension.ExtensionManifest
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.mcp.goose.TnsAIGooseExtension.ExtensionTool
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class com.tnsai.mcp.model.Resource
 
equals(Object) - Method in class com.tnsai.mcp.model.ResourceContent
 
equals(Object) - Method in class com.tnsai.mcp.model.ResourceTemplate
 
equals(Object) - Method in class com.tnsai.mcp.model.Root
 
equals(Object) - Method in record class com.tnsai.mcp.registry.McpServerEntry
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.mcp.server.event.ToolErrorEvent
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.mcp.server.McpRequestHandler.HandlerResult.Error
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.mcp.server.McpRequestHandler.HandlerResult.Notification
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.mcp.server.McpRequestHandler.HandlerResult.Response
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.tnsai.mcp.testing.McpInspectorClient.MessageRecord
Indicates whether some other object is "equal to" this one.
error(String) - Static method in class com.tnsai.mcp.server.PromptProvider.PromptResult
Creates an error result.
error(String) - Static method in class com.tnsai.mcp.server.ToolProvider.ToolResult
Creates an error result.
error(String, String) - Static method in class com.tnsai.mcp.model.LogMessage
 
Error(int, String) - Constructor for record class com.tnsai.mcp.server.McpRequestHandler.HandlerResult.Error
Creates an instance of a Error record class.
ERROR - Enum constant in enum class com.tnsai.mcp.model.LogLevel
 
ERROR - Enum constant in enum class com.tnsai.mcp.observability.McpSpan.SpanStatus
Operation encountered an error.
Example — payment interceptor sketch - Search tag in interface com.tnsai.mcp.client.HttpInterceptor
Section
exchangeCode(String, String, String, String, String) - Static method in class com.tnsai.mcp.auth.PkceFlow
Exchanges an authorization code for tokens using the PKCE code verifier.
execute(String, Map<String, Object>) - Method in class com.tnsai.mcp.stripe.StripePaymentTool
Executes a Stripe operation by name.
executeCypher(String) - Method in class com.tnsai.mcp.database.Neo4jMcpClient
Executes a Cypher query.
executeQuery(String) - Method in class com.tnsai.mcp.database.GoogleMcpToolboxClient
Executes a SQL query.
executeQuery(String) - Method in class com.tnsai.mcp.database.PostgresMcpClient
Executes a SQL query.
executeTool(String, JsonNode) - Method in class com.tnsai.mcp.server.TnsAIToolProvider
 
executeTool(String, JsonNode) - Method in interface com.tnsai.mcp.server.ToolProvider
Executes a tool with the given arguments.
executeTool(String, Map<String, Object>) - Method in class com.tnsai.mcp.client.McpClient
Executes a tool on the server.
executeTool(String, Map<String, Object>) - Method in class com.tnsai.mcp.composio.ComposioClient
Executes a Composio tool with the given parameters.
executeTool(String, Map<String, Object>) - Method in class com.tnsai.mcp.observability.TracingMcpClient
Executes a tool on the server with tracing and metrics.
exitCode() - Method in record class com.tnsai.mcp.client.StdioTransport.DisconnectReason
Returns the value of the exitCode record component.
expand(Map<String, String>) - Method in class com.tnsai.mcp.model.ResourceTemplate
Expands the template with the given variables.
expiresIn() - Method in record class com.tnsai.mcp.auth.PkceFlow.TokenResponse
Returns the value of the expiresIn record component.
ExtensionManifest(String, String, String, List<TnsAIGooseExtension.ExtensionTool>) - Constructor for record class com.tnsai.mcp.goose.TnsAIGooseExtension.ExtensionManifest
Creates an instance of a ExtensionManifest record class.
ExtensionTool(String, String, JsonNode) - Constructor for record class com.tnsai.mcp.goose.TnsAIGooseExtension.ExtensionTool
Creates an instance of a ExtensionTool record class.

F

Features - Search tag in class com.tnsai.mcp.client.SSETransport
Section
Features - Search tag in class com.tnsai.mcp.hub.McpTool
Section
forPromptArgument(String, String, String) - Static method in class com.tnsai.mcp.model.CompletionRequest
Creates a request for prompt argument completion.
forResource(String) - Static method in class com.tnsai.mcp.model.CompletionRequest
Creates a request for resource URI completion.
from(McpServerConfig) - Static method in class com.tnsai.mcp.client.HttpTransport
Creates HttpTransport from McpServerConfig.
from(Collection<?>, Collection<DynamicToolMethod>) - Static method in class com.tnsai.mcp.server.TnsAIToolProvider
Creates a provider from a mix of POJOs and dynamic tools.
fromDirectory(String, String) - Static method in class com.tnsai.mcp.model.Root
Creates a Root from a directory path string.
fromDynamic(DynamicToolMethod...) - Static method in class com.tnsai.mcp.server.TnsAIToolProvider
Creates a provider from one or more DynamicToolMethods — tools whose name, description, schema, and dispatch handler are supplied at construction time.
fromDynamic(List<DynamicToolMethod>) - Static method in class com.tnsai.mcp.server.TnsAIToolProvider
fromFile(File) - Static method in class com.tnsai.mcp.model.Root
Creates a Root from a File.
fromPath(Path) - Static method in class com.tnsai.mcp.model.Root
Creates a Root from a file path.
fromPath(Path, String) - Static method in class com.tnsai.mcp.model.Root
Creates a Root from a file path with custom name.
fromPojos(Object...) - Static method in class com.tnsai.mcp.server.TnsAIToolProvider
Creates a provider from POJO instances bearing @Tool-annotated methods (the function-shape pattern).
fromString(String) - Static method in enum class com.tnsai.mcp.model.LogLevel
Parses a log level from string.

G

generateChallenge() - Static method in class com.tnsai.mcp.auth.PkceFlow
Generates a new PKCE challenge using the S256 method.
generateManifest(McpClient) - Static method in class com.tnsai.mcp.goose.TnsAIGooseExtension
Generates a Goose-compatible extension manifest from an MCP server's tools.
getActiveSessions() - Method in class com.tnsai.mcp.observability.McpMetricsCollector
Returns the current number of active sessions.
getActiveSseStream() - Method in class com.tnsai.mcp.server.McpSession
Returns the active SSE output stream for the GET notification endpoint.
getAnnotations() - Method in class com.tnsai.mcp.model.McpToolDefinition
MCP 2025-03-26 tool annotations.
getApiKey() - Method in class com.tnsai.mcp.composio.ComposioAuthBridge
Returns the API key used by this bridge.
getApiKey() - Method in class com.tnsai.mcp.composio.ComposioClient
Returns the API key used by this client.
getArgument() - Method in class com.tnsai.mcp.model.CompletionRequest
 
getArguments() - Method in class com.tnsai.mcp.model.Prompt
 
getAuthHeaders() - Method in class com.tnsai.mcp.composio.ComposioAuthBridge
Creates authentication headers for Composio API calls.
getAverageLatency() - Method in class com.tnsai.mcp.testing.McpInspectorClient
Returns the average latency of all recorded request-response pairs.
getBalance() - Method in class com.tnsai.mcp.stripe.StripeMcpClient
Gets the current Stripe account balance.
getBearerToken() - Method in class com.tnsai.mcp.auth.OAuthMcpTransport
Returns the current Bearer token if available and valid.
getBlob() - Method in class com.tnsai.mcp.model.ResourceContent
 
getBoolean(String, boolean) - Method in class com.tnsai.mcp.model.McpToolArgs
Gets a boolean value.
getCacheSize() - Method in class com.tnsai.mcp.registry.UnifiedMcpRegistry
Returns the number of cached entries.
getClient() - Method in class com.tnsai.mcp.testing.McpServerTestKit
Returns the MCP client connected to the mock server.
getClientRoots() - Method in class com.tnsai.mcp.server.McpRequestHandler
Returns the roots provided by the client.
getClientRoots() - Method in class com.tnsai.mcp.server.McpServer
Returns the current client roots.
getCode() - Method in exception class com.tnsai.mcp.client.McpClient.McpException
 
getCode() - Method in exception class com.tnsai.mcp.testing.MockMcpServer.MockToolException
 
getCommand() - Method in class com.tnsai.mcp.client.StdioTransport
Returns the command used to start the process.
getCompletion() - Method in class com.tnsai.mcp.model.CompletionResponse
 
getCompletions(String, String, String) - Method in interface com.tnsai.mcp.server.PromptProvider
Returns auto-completion suggestions for a prompt argument.
getConnectionStatus(String) - Method in class com.tnsai.mcp.composio.ComposioClient
Gets the connection status for a Composio app.
getContent() - Method in class com.tnsai.mcp.model.SamplingMessage
 
getContent() - Method in class com.tnsai.mcp.model.SamplingResponse
 
getContent() - Method in class com.tnsai.mcp.server.PromptProvider.PromptMessage
 
getContent() - Method in class com.tnsai.mcp.server.ToolProvider.ToolResult
 
getCostPriority() - Method in class com.tnsai.mcp.model.ModelPreferences
 
getCreatedAt() - Method in class com.tnsai.mcp.server.McpSession
Returns when this session was created.
getData() - Method in class com.tnsai.mcp.model.LogMessage
 
getDecodedBlob() - Method in class com.tnsai.mcp.model.ResourceContent
Decodes and returns the binary content if present.
getDelegate() - Method in class com.tnsai.mcp.auth.OAuthMcpTransport
Returns the underlying delegate transport.
getDelegate() - Method in class com.tnsai.mcp.observability.McpTracingInterceptor
Returns the underlying transport being decorated.
getDelegate() - Method in class com.tnsai.mcp.observability.TracingMcpClient
Returns the underlying McpClient being decorated.
getDescription() - Method in class com.tnsai.mcp.hub.McpToolBridge
Get the bridge description.
getDescription() - Method in class com.tnsai.mcp.model.McpToolDefinition
 
getDescription() - Method in class com.tnsai.mcp.model.Prompt
 
getDescription() - Method in class com.tnsai.mcp.model.Prompt.PromptArgument
 
getDescription() - Method in class com.tnsai.mcp.model.Resource
 
getDescription() - Method in class com.tnsai.mcp.model.ResourceTemplate
 
getDescription() - Method in class com.tnsai.mcp.server.PromptProvider.PromptResult
 
getDescription() - Method in class com.tnsai.mcp.stripe.StripePaymentTool
Returns a description of this tool.
getDouble(String, double) - Method in class com.tnsai.mcp.model.McpToolArgs
Gets a double value.
getEndpoint() - Method in class com.tnsai.mcp.client.HttpTransport
Returns the configured endpoint.
getEndpoint() - Method in class com.tnsai.mcp.client.StreamableHttpTransport
Returns the configured endpoint.
getEndpoint() - Method in class com.tnsai.mcp.McpServerConfig
 
getError() - Method in class com.tnsai.mcp.server.PromptProvider.PromptResult
 
getError() - Method in class com.tnsai.mcp.server.ToolProvider.ToolResult
 
getErrorCounts() - Method in class com.tnsai.mcp.observability.McpMetricsCollector
Returns error counts by error type (or errorType:toolName).
getExitCode() - Method in class com.tnsai.mcp.client.StdioTransport
Returns the process exit code if available.
getHasMore() - Method in class com.tnsai.mcp.model.CompletionResponse.Completion
 
getHeaders() - Method in class com.tnsai.mcp.client.HttpTransport
Returns the configured headers (excluding sensitive values).
getHeaders() - Method in class com.tnsai.mcp.McpServerConfig
 
getHints() - Method in class com.tnsai.mcp.model.ModelPreferences
 
getIdleTimeMillis() - Method in class com.tnsai.mcp.client.StdioTransport
Returns the time since last activity in milliseconds.
getIncludeContext() - Method in class com.tnsai.mcp.model.SamplingRequest
 
getInputSchema() - Method in class com.tnsai.mcp.model.McpToolDefinition
 
getInt(String, int) - Method in class com.tnsai.mcp.model.McpToolArgs
Gets an integer value.
getIntelligencePriority() - Method in class com.tnsai.mcp.model.ModelPreferences
 
getInterceptors() - Method in class com.tnsai.mcp.client.HttpTransport
Returns the configured interceptor chain in registration order.
getItems() - Method in class com.tnsai.mcp.model.PaginatedResult
Gets the items in this page.
getLastAccessedAt() - Method in class com.tnsai.mcp.server.McpSession
Returns when this session was last accessed.
getLastEventId() - Method in class com.tnsai.mcp.client.SSETransport
Returns the last event ID received.
getLastEventId() - Method in class com.tnsai.mcp.client.StreamableHttpTransport
Returns the last event ID received.
getLevel() - Method in class com.tnsai.mcp.model.LogMessage
 
getList(String) - Method in class com.tnsai.mcp.model.McpToolArgs
Gets a list value.
getListChanged() - Method in class com.tnsai.mcp.model.ServerCapabilities.PromptsCapability
 
getListChanged() - Method in class com.tnsai.mcp.model.ServerCapabilities.ResourcesCapability
 
getListChanged() - Method in class com.tnsai.mcp.model.ServerCapabilities.ToolsCapability
 
getLogger() - Method in class com.tnsai.mcp.model.LogMessage
 
getLogging() - Method in class com.tnsai.mcp.model.ServerCapabilities
 
getLogLevel() - Method in class com.tnsai.mcp.model.LogMessage
 
getLogLevel() - Method in class com.tnsai.mcp.server.McpRequestHandler
Returns the current log level.
getLogLevel() - Method in class com.tnsai.mcp.server.McpServer
Returns the current log level.
getLong(String, long) - Method in class com.tnsai.mcp.model.McpToolArgs
Gets a long value.
getMap(String) - Method in class com.tnsai.mcp.model.McpToolArgs
Gets a nested map value.
getMaxTokens() - Method in class com.tnsai.mcp.model.SamplingRequest
 
getMcpClient() - Method in class com.tnsai.mcp.database.GoogleMcpToolboxClient
Returns the underlying MCP client.
getMcpClient() - Method in class com.tnsai.mcp.database.Neo4jMcpClient
Returns the underlying MCP client.
getMcpClient() - Method in class com.tnsai.mcp.database.PostgresMcpClient
Returns the underlying MCP client.
getMcpClient() - Method in class com.tnsai.mcp.stripe.StripeMcpClient
Returns the underlying MCP client.
getMessage() - Method in class com.tnsai.mcp.model.LogMessage
Gets the message text if data is a string.
getMessageEndpoint() - Method in class com.tnsai.mcp.client.SSETransport
Returns the message endpoint (may be dynamic).
getMessages() - Method in class com.tnsai.mcp.model.SamplingRequest
 
getMessages() - Method in class com.tnsai.mcp.server.PromptProvider.PromptResult
 
getMessages() - Method in class com.tnsai.mcp.testing.McpInspectorClient
Returns all recorded messages.
getMessagesByMethod(String) - Method in class com.tnsai.mcp.testing.McpInspectorClient
Returns messages filtered by method name.
getMethodCounts() - Method in class com.tnsai.mcp.testing.McpInspectorClient
Returns a count of messages grouped by method.
getMetrics() - Method in class com.tnsai.mcp.observability.TracingMcpClient
Returns the metrics collector, or null if metrics collection is disabled.
getMimeType() - Method in class com.tnsai.mcp.model.Resource
 
getMimeType() - Method in class com.tnsai.mcp.model.ResourceContent
 
getMimeType() - Method in class com.tnsai.mcp.model.ResourceTemplate
 
getModel() - Method in class com.tnsai.mcp.model.SamplingResponse
 
getModelPreferences() - Method in class com.tnsai.mcp.model.SamplingRequest
 
getName() - Method in class com.tnsai.mcp.client.McpClient.ServerInfo
 
getName() - Method in class com.tnsai.mcp.hub.McpToolBridge
Get the bridge name.
getName() - Method in class com.tnsai.mcp.McpServerConfig
 
getName() - Method in class com.tnsai.mcp.model.CompletionRequest.CompletionArgument
 
getName() - Method in class com.tnsai.mcp.model.CompletionRequest.CompletionRef
 
getName() - Method in class com.tnsai.mcp.model.McpToolDefinition
 
getName() - Method in class com.tnsai.mcp.model.ModelPreferences.ModelHint
 
getName() - Method in class com.tnsai.mcp.model.Prompt
 
getName() - Method in class com.tnsai.mcp.model.Prompt.PromptArgument
 
getName() - Method in class com.tnsai.mcp.model.Resource
 
getName() - Method in class com.tnsai.mcp.model.ResourceTemplate
 
getName() - Method in class com.tnsai.mcp.model.Root
 
getName() - Method in class com.tnsai.mcp.stripe.StripePaymentTool
Returns the name of this tool.
getNextCursor() - Method in class com.tnsai.mcp.model.PaginatedResult
Gets the cursor for the next page.
getPath() - Method in class com.tnsai.mcp.model.Root
Extracts the file path from the URI.
getPendingNotifications() - Method in class com.tnsai.mcp.server.McpSession
Returns the queue of pending notifications for this session.
getPercentage() - Method in class com.tnsai.mcp.model.ProgressNotification
Calculates the progress percentage.
getPort() - Method in class com.tnsai.mcp.server.HttpMcpServer
Returns the port the server is listening on.
getProgress() - Method in class com.tnsai.mcp.model.ProgressNotification
 
getProgressToken() - Method in class com.tnsai.mcp.model.ProgressNotification
 
getPrompt(String, Map<String, String>) - Method in class com.tnsai.mcp.client.McpClient
Gets a prompt with the given arguments.
getPrompt(String, Map<String, String>) - Method in class com.tnsai.mcp.observability.TracingMcpClient
Gets a prompt with the given arguments, with tracing.
getPrompt(String, Map<String, String>) - Method in interface com.tnsai.mcp.server.PromptProvider
Gets a prompt with the given arguments filled in.
getPrompts() - Method in class com.tnsai.mcp.model.ServerCapabilities
 
getReconnectAttempts() - Method in class com.tnsai.mcp.client.StdioTransport
Returns the number of reconnection attempts made.
getRef() - Method in class com.tnsai.mcp.model.CompletionRequest
 
getRequestHandler() - Method in class com.tnsai.mcp.server.McpSession
Returns the request handler associated with this session.
getRequired() - Method in class com.tnsai.mcp.model.Prompt.PromptArgument
 
getResources() - Method in class com.tnsai.mcp.model.ServerCapabilities
 
getRole() - Method in class com.tnsai.mcp.model.SamplingMessage
 
getRole() - Method in class com.tnsai.mcp.model.SamplingResponse
 
getRole() - Method in class com.tnsai.mcp.server.PromptProvider.PromptMessage
 
getRoots() - Method in class com.tnsai.mcp.client.McpClient
Returns the current list of roots.
getSchema() - Method in class com.tnsai.mcp.database.Neo4jMcpClient
Gets the graph database schema.
getServer() - Method in class com.tnsai.mcp.testing.McpServerTestKit
Returns the mock MCP server.
getServer() - Method in class com.tnsai.mcp.testing.MockMcpTransport
Returns the underlying MockMcpServer.
getServer(String) - Method in class com.tnsai.mcp.registry.CamelMcpHubClient
 
getServer(String) - Method in interface com.tnsai.mcp.registry.McpRegistrySource
Looks up a specific server by name.
getServer(String) - Method in class com.tnsai.mcp.registry.McpServersOrgClient
 
getServer(String) - Method in class com.tnsai.mcp.registry.OfficialRegistryClient
 
getServer(String) - Method in class com.tnsai.mcp.registry.SmitheryClient
 
getServer(String) - Method in class com.tnsai.mcp.registry.UnifiedMcpRegistry
Gets a specific server by name, trying sources in priority order.
getServerCapabilities() - Method in class com.tnsai.mcp.client.McpClient
Returns the server capabilities after initialization.
getServerInfo() - Method in class com.tnsai.mcp.client.McpClient
Returns the server info after initialization.
getServerInfo() - Method in class com.tnsai.mcp.hub.McpTool
Get the MCP server info.
getServerName() - Method in class com.tnsai.mcp.server.McpRequestHandler
Returns the server name.
getServerName() - Method in class com.tnsai.mcp.testing.MockMcpServer
Returns the server name.
getServerUrl() - Method in class com.tnsai.mcp.auth.OAuthMcpTransport
Returns the server URL this transport is configured for.
getServerUrls() - Method in class com.tnsai.mcp.auth.McpTokenManager
Returns the set of all server URLs with stored tokens.
getServerVersion() - Method in class com.tnsai.mcp.server.McpRequestHandler
Returns the server version.
getServerVersion() - Method in class com.tnsai.mcp.testing.MockMcpServer
Returns the server version.
getSession(String) - Method in class com.tnsai.mcp.server.McpSessionManager
Retrieves a session by ID.
getSessionCount() - Method in class com.tnsai.mcp.server.McpSessionManager
Returns the number of active sessions.
getSessionId() - Method in class com.tnsai.mcp.client.StreamableHttpTransport
Returns the current session ID.
getSessionId() - Method in class com.tnsai.mcp.server.McpSession
Returns the session ID.
getSessionManager() - Method in class com.tnsai.mcp.server.HttpMcpServer
Returns the session manager.
getSeverity() - Method in enum class com.tnsai.mcp.model.LogLevel
 
getSourceName() - Method in class com.tnsai.mcp.registry.CamelMcpHubClient
 
getSourceName() - Method in interface com.tnsai.mcp.registry.McpRegistrySource
Returns the name of this registry source.
getSourceName() - Method in class com.tnsai.mcp.registry.McpServersOrgClient
 
getSourceName() - Method in class com.tnsai.mcp.registry.OfficialRegistryClient
 
getSourceName() - Method in class com.tnsai.mcp.registry.SmitheryClient
 
getSources() - Method in class com.tnsai.mcp.registry.UnifiedMcpRegistry
Returns all registered sources.
getSpanId() - Method in interface com.tnsai.mcp.observability.McpSpan
Returns the span ID for this span.
getSpec() - Method in class com.tnsai.mcp.model.SamplingRequest
 
getSpeedPriority() - Method in class com.tnsai.mcp.model.ModelPreferences
 
getSseEndpoint() - Method in class com.tnsai.mcp.client.SSETransport
Returns the configured SSE endpoint.
getStopReason() - Method in class com.tnsai.mcp.model.SamplingResponse
 
getStopSequences() - Method in class com.tnsai.mcp.model.SamplingRequest
 
getString(String) - Method in class com.tnsai.mcp.model.McpToolArgs
Gets a string value.
getString(String, String) - Method in class com.tnsai.mcp.model.McpToolArgs
Gets a string value with default.
getSubscribe() - Method in class com.tnsai.mcp.model.ServerCapabilities.ResourcesCapability
 
getSummary() - Method in class com.tnsai.mcp.observability.McpMetricsCollector
Returns a summary of all collected metrics.
getSystemPrompt() - Method in class com.tnsai.mcp.model.SamplingRequest
 
getTemperature() - Method in class com.tnsai.mcp.model.SamplingRequest
 
getText() - Method in class com.tnsai.mcp.model.ResourceContent
 
getTextContent() - Method in class com.tnsai.mcp.model.SamplingResponse
Extracts text content from the response.
getTimeout() - Method in class com.tnsai.mcp.McpServerConfig
 
getToken(String) - Method in class com.tnsai.mcp.auth.McpTokenManager
Gets the stored token for a server URL without validation or refresh.
getTool(String) - Method in class com.tnsai.mcp.hub.McpTool
Get a discovered tool by name.
getToolAverageDurations() - Method in class com.tnsai.mcp.observability.McpMetricsCollector
Returns the average duration per tool in milliseconds.
getToolCount() - Method in class com.tnsai.mcp.server.TnsAIToolProvider
 
getToolErrorHistory() - Method in class com.tnsai.mcp.server.McpRequestHandler
Returns the history of tool error events (most recent last).
getToolInvocationCounts() - Method in class com.tnsai.mcp.observability.McpMetricsCollector
Returns the total invocation count per tool (success + failure).
getToolNames() - Method in class com.tnsai.mcp.hub.McpTool
Get all discovered tool names.
getToolNames() - Method in class com.tnsai.mcp.server.TnsAIToolProvider
 
getTools() - Method in class com.tnsai.mcp.model.ServerCapabilities
 
getToolsDescription() - Method in class com.tnsai.mcp.hub.McpToolBridge
Get a formatted list of all available tools.
getTotal() - Method in class com.tnsai.mcp.model.CompletionResponse.Completion
 
getTotal() - Method in class com.tnsai.mcp.model.CompletionResponse
Gets the total number of available completions.
getTotal() - Method in class com.tnsai.mcp.model.ProgressNotification
 
getTraceId() - Method in interface com.tnsai.mcp.observability.McpSpan
Returns the trace ID for this span.
getTransport() - Method in class com.tnsai.mcp.testing.McpServerTestKit
Returns the mock transport.
getType() - Method in class com.tnsai.mcp.model.CompletionRequest.CompletionRef
 
getUri() - Method in class com.tnsai.mcp.model.CompletionRequest.CompletionRef
 
getUri() - Method in class com.tnsai.mcp.model.Resource
 
getUri() - Method in class com.tnsai.mcp.model.ResourceContent
 
getUri() - Method in class com.tnsai.mcp.model.Root
 
getUri() - Method in exception class com.tnsai.mcp.server.ResourceProvider.ResourceNotFoundException
 
getUriTemplate() - Method in class com.tnsai.mcp.model.ResourceTemplate
 
getValidToken(String, String, String) - Method in class com.tnsai.mcp.auth.McpTokenManager
Gets a valid token for a server, auto-refreshing if the token is expiring soon.
getValue() - Method in class com.tnsai.mcp.model.CompletionRequest.CompletionArgument
 
getValue() - Method in enum class com.tnsai.mcp.model.LogLevel
 
getValues() - Method in class com.tnsai.mcp.model.CompletionResponse.Completion
 
getValues() - Method in class com.tnsai.mcp.model.CompletionResponse
Gets the list of completion values.
getVersion() - Method in class com.tnsai.mcp.client.McpClient.ServerInfo
 
GoogleMcpToolboxClient - Class in com.tnsai.mcp.database
Client for Google MCP Toolbox (Cloud SQL, Firestore, etc.).
GoogleMcpToolboxClient(McpClient) - Constructor for class com.tnsai.mcp.database.GoogleMcpToolboxClient
Creates a new GoogleMcpToolboxClient wrapping the given MCP client.
GooseExtension(String, String, String, Map<String, Object>) - Constructor for record class com.tnsai.mcp.goose.GooseExtensionLoader.GooseExtension
Creates an instance of a GooseExtension record class.
GooseExtensionLoader - Class in com.tnsai.mcp.goose
Loads Goose extensions and converts them to MCP-compatible format.
GooseExtensionLoader() - Constructor for class com.tnsai.mcp.goose.GooseExtensionLoader
 
GooseExtensionLoader.GooseExtension - Record Class in com.tnsai.mcp.goose
Represents a Goose extension configuration.
GooseRecipeParser - Class in com.tnsai.mcp.goose
Parses Goose recipe files (JSON workflow definitions).
GooseRecipeParser.Recipe - Record Class in com.tnsai.mcp.goose
Represents a Goose recipe (workflow definition).
GooseRecipeParser.RecipeStep - Record Class in com.tnsai.mcp.goose
Represents a single step within a Goose recipe.
grantTypes() - Method in record class com.tnsai.mcp.auth.McpClientRegistration.RegistrationRequest
Returns the value of the grantTypes record component.
grantTypesSupported() - Method in record class com.tnsai.mcp.auth.McpOAuthDiscovery.OAuthMetadata
Returns the value of the grantTypesSupported record component.

H

has(String) - Method in class com.tnsai.mcp.model.McpToolArgs
Checks if a key exists.
hasApiKey() - Method in class com.tnsai.mcp.McpServerConfig
 
hashCode() - Method in record class com.tnsai.mcp.auth.McpClientRegistration.RegistrationRequest
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.mcp.auth.McpClientRegistration.RegistrationResponse
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.mcp.auth.McpOAuthDiscovery.OAuthMetadata
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.mcp.auth.PkceFlow.PkceChallenge
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.mcp.auth.PkceFlow.TokenResponse
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.mcp.client.StdioTransport.DisconnectReason
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.mcp.composio.ComposioClient.ComposioApp
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.mcp.composio.ComposioClient.ComposioTool
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.mcp.composio.ComposioClient.ConnectionStatus
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.mcp.goose.GooseExtensionLoader.GooseExtension
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.mcp.goose.GooseRecipeParser.Recipe
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.mcp.goose.GooseRecipeParser.RecipeStep
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.mcp.goose.TnsAIGooseExtension.ExtensionManifest
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.mcp.goose.TnsAIGooseExtension.ExtensionTool
Returns a hash code value for this object.
hashCode() - Method in class com.tnsai.mcp.model.Resource
 
hashCode() - Method in class com.tnsai.mcp.model.ResourceContent
 
hashCode() - Method in class com.tnsai.mcp.model.ResourceTemplate
 
hashCode() - Method in class com.tnsai.mcp.model.Root
 
hashCode() - Method in record class com.tnsai.mcp.registry.McpServerEntry
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.mcp.server.event.ToolErrorEvent
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.mcp.server.McpRequestHandler.HandlerResult.Error
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.mcp.server.McpRequestHandler.HandlerResult.Notification
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.mcp.server.McpRequestHandler.HandlerResult.Response
Returns a hash code value for this object.
hashCode() - Method in record class com.tnsai.mcp.testing.McpInspectorClient.MessageRecord
Returns a hash code value for this object.
hasMore() - Method in class com.tnsai.mcp.model.CompletionResponse
Checks if there are more completions available.
hasMore() - Method in class com.tnsai.mcp.model.PaginatedResult
Checks if there are more pages available.
hasToken(String) - Method in class com.tnsai.mcp.auth.McpTokenManager
Checks if a token is stored for the given server URL.
header(String, String) - Method in class com.tnsai.mcp.McpServerConfig.Builder
 
headers(Map<String, String>) - Method in class com.tnsai.mcp.client.SSETransport.Builder
Sets custom headers for all requests.
headers(Map<String, String>) - Method in class com.tnsai.mcp.client.StreamableHttpTransport.Builder
Sets custom headers for all requests.
headers(Map<String, String>) - Method in class com.tnsai.mcp.McpServerConfig.Builder
 
healthCheckFailure(String) - Static method in record class com.tnsai.mcp.client.StdioTransport.DisconnectReason
Creates a disconnect reason for a dead process detected by health check.
healthCheckInterval(Duration) - Method in class com.tnsai.mcp.client.StdioTransport.Builder
Sets the interval for health checks.
hint(String) - Method in class com.tnsai.mcp.model.ModelPreferences.Builder
 
hints(List<ModelPreferences.ModelHint>) - Method in class com.tnsai.mcp.model.ModelPreferences.Builder
 
http(String) - Static method in class com.tnsai.mcp.hub.McpToolBridge
Create a bridge with HTTP/SSE transport.
http(String, Map<String, String>) - Static method in class com.tnsai.mcp.hub.McpToolBridge
Create a bridge with HTTP/SSE transport and custom headers.
HTTP-based MCP Server - Search tag in class com.tnsai.mcp.hub.McpTool
Section
HttpInterceptor - Interface in com.tnsai.mcp.client
Pluggable hook in the HttpTransport request/response path.
HttpInterceptor.Chain - Interface in com.tnsai.mcp.client
Forwards a request through the remaining interceptor chain and ultimately the network.
HttpMcpServer - Class in com.tnsai.mcp.server
HTTP-based MCP server using JDK built-in HttpServer.
HttpMcpServer.Builder - Class in com.tnsai.mcp.server
Builder for HttpMcpServer.
httpStatus() - Method in record class com.tnsai.mcp.server.McpRequestHandler.HandlerResult.Error
Returns the value of the httpStatus record component.
HttpTransport - Class in com.tnsai.mcp.client
HTTP-based MCP transport implementation.
HttpTransport(String, Map<String, String>) - Constructor for class com.tnsai.mcp.client.HttpTransport
Creates HTTP transport with endpoint and custom headers.
HttpTransport(String, Map<String, String>, Duration) - Constructor for class com.tnsai.mcp.client.HttpTransport
Creates HTTP transport with endpoint, headers, and timeout.
HttpTransport(String, Map<String, String>, Duration, List<HttpInterceptor>) - Constructor for class com.tnsai.mcp.client.HttpTransport
Creates HTTP transport with endpoint, headers, timeout, and an ordered list of HttpInterceptors.
httpWithApiKey(String, String) - Static method in class com.tnsai.mcp.hub.McpToolBridge
Create a bridge with HTTP/SSE transport and API key authentication.

I

idempotentHint(boolean) - Method in class com.tnsai.mcp.model.McpToolDefinition.Builder
Set the MCP 2025-03-26 idempotentHint annotation.
includeContext(String) - Method in class com.tnsai.mcp.model.SamplingRequest.Builder
 
Incoming-message + error dispatch - Search tag in class com.tnsai.mcp.client.BaseTransport
Section
incrementActiveSessions() - Method in class com.tnsai.mcp.observability.McpMetricsCollector
Increments the active sessions gauge by one.
indeterminate(String, long) - Static method in class com.tnsai.mcp.model.ProgressNotification
Creates a progress notification without total (indeterminate).
info(String, String) - Static method in class com.tnsai.mcp.model.LogMessage
 
INFO - Enum constant in enum class com.tnsai.mcp.model.LogLevel
 
initialize() - Method in class com.tnsai.mcp.client.McpClient
Initializes the MCP session with capability exchange.
initialize() - Method in class com.tnsai.mcp.observability.TracingMcpClient
Initializes the MCP session with tracing.
initialRetryDelay(Duration) - Method in class com.tnsai.mcp.client.SSETransport.Builder
Sets the initial retry delay for reconnection.
initialRetryDelay(Duration) - Method in class com.tnsai.mcp.client.StdioTransport.Builder
Sets the initial delay between reconnection attempts.
inputSchema() - Method in record class com.tnsai.mcp.composio.ComposioClient.ComposioTool
Returns the value of the inputSchema record component.
inputSchema() - Method in record class com.tnsai.mcp.goose.TnsAIGooseExtension.ExtensionTool
Returns the value of the inputSchema record component.
inputSchema(JsonNode) - Method in class com.tnsai.mcp.model.McpToolDefinition.Builder
 
inputSchema(Map<String, Object>) - Method in class com.tnsai.mcp.model.McpToolDefinition.Builder
 
intelligencePriority(double) - Method in class com.tnsai.mcp.model.ModelPreferences.Builder
 
intercept(HttpInterceptor.Chain) - Method in interface com.tnsai.mcp.client.HttpInterceptor
Invokes this interceptor with the given chain.
INTERNAL - Enum constant in enum class com.tnsai.mcp.server.event.ToolErrorCategory
 
INVALID_PARAMS - Enum constant in enum class com.tnsai.mcp.server.event.ToolErrorCategory
 
isAuthenticated() - Method in class com.tnsai.mcp.auth.OAuthMcpTransport
Checks if this transport has a valid (non-expired) authentication token.
isAvailable() - Method in class com.tnsai.mcp.database.GoogleMcpToolboxClient
Checks if the Google MCP Toolbox server is available.
isAvailable() - Method in class com.tnsai.mcp.database.Neo4jMcpClient
Checks if the Neo4j MCP server is available.
isAvailable() - Method in class com.tnsai.mcp.database.PostgresMcpClient
Checks if the PostgreSQL MCP server is available.
isAvailable() - Method in class com.tnsai.mcp.stripe.StripeMcpClient
Checks if the Stripe MCP server is available.
isBlob() - Method in class com.tnsai.mcp.model.ResourceContent
 
isComplete() - Method in class com.tnsai.mcp.model.ProgressNotification
Checks if the progress is complete.
isConnected() - Method in class com.tnsai.mcp.auth.OAuthMcpTransport
 
isConnected() - Method in class com.tnsai.mcp.client.BaseTransport
 
isConnected() - Method in class com.tnsai.mcp.client.HttpTransport
 
isConnected() - Method in class com.tnsai.mcp.client.McpClient
Checks if the client is connected to the server.
isConnected() - Method in interface com.tnsai.mcp.client.McpTransport
Checks if the transport is currently connected.
isConnected() - Method in class com.tnsai.mcp.client.SSETransport
 
isConnected() - Method in class com.tnsai.mcp.client.StdioTransport
 
isConnected() - Method in class com.tnsai.mcp.client.StreamableHttpTransport
 
isConnected() - Method in class com.tnsai.mcp.hub.McpTool
Check if connected to the MCP server.
isConnected() - Method in class com.tnsai.mcp.observability.McpTracingInterceptor
 
isConnected() - Method in class com.tnsai.mcp.observability.TracingMcpClient
Checks if the underlying client is connected.
isConnected() - Method in class com.tnsai.mcp.testing.McpInspectorClient
 
isConnected() - Method in class com.tnsai.mcp.testing.MockMcpTransport
 
isEmpty() - Method in class com.tnsai.mcp.model.PaginatedResult
Checks if this page is empty.
isError() - Method in class com.tnsai.mcp.server.ToolProvider.ToolResult
 
isExpired() - Method in record class com.tnsai.mcp.auth.PkceFlow.TokenResponse
Checks if this token has expired.
isExpired(Duration) - Method in class com.tnsai.mcp.server.McpSession
Checks if this session has expired based on the given TTL.
isExpiringSoon(Duration) - Method in record class com.tnsai.mcp.auth.PkceFlow.TokenResponse
Checks if this token is expiring soon, within the given threshold.
isIndeterminate() - Method in class com.tnsai.mcp.model.ProgressNotification
Checks if this is indeterminate progress (no total).
isInitialized() - Method in class com.tnsai.mcp.client.McpClient
Checks if the client has completed initialization.
isInitialized() - Method in class com.tnsai.mcp.observability.TracingMcpClient
Checks if the underlying client has completed initialization.
isInitialized() - Method in class com.tnsai.mcp.server.McpRequestHandler
Returns whether this handler has been initialized by a client.
isInitialized() - Method in class com.tnsai.mcp.server.McpServer
Checks if the server has been initialized by a client.
isInitialized() - Method in class com.tnsai.mcp.server.McpSession
Returns whether this session has been initialized via the MCP handshake.
isNotificationStreamActive() - Method in class com.tnsai.mcp.client.StreamableHttpTransport
Returns whether the notification stream is currently active.
isRequired() - Method in class com.tnsai.mcp.model.Prompt.PromptArgument
 
isRetriable() - Method in enum class com.tnsai.mcp.server.event.ToolErrorCategory
Returns whether this error category is typically retriable.
isRetriable() - Method in record class com.tnsai.mcp.server.event.ToolErrorEvent
Returns whether this error is typically retriable.
isRunning() - Method in class com.tnsai.mcp.server.McpServer
Checks if the server is running.
isSuccess() - Method in class com.tnsai.mcp.server.PromptProvider.PromptResult
 
isSuccess() - Method in class com.tnsai.mcp.server.ToolProvider.ToolResult
 
issuer() - Method in record class com.tnsai.mcp.auth.McpOAuthDiscovery.OAuthMetadata
Returns the value of the issuer record component.
isText() - Method in class com.tnsai.mcp.model.ResourceContent
 
isValid(String) - Static method in class com.tnsai.mcp.testing.McpSchemaValidator
Checks if a JSON-RPC message (request or response) is structurally valid.

J

jsonRpc() - Method in record class com.tnsai.mcp.server.McpRequestHandler.HandlerResult.Error
Returns the value of the jsonRpc record component.
jsonRpc() - Method in record class com.tnsai.mcp.server.McpRequestHandler.HandlerResult.Response
Returns the value of the jsonRpc record component.

L

latency() - Method in record class com.tnsai.mcp.testing.McpInspectorClient.MessageRecord
Returns the value of the latency record component.
Lifecycle contract - Search tag in class com.tnsai.mcp.client.BaseTransport
Section
listAll() - Method in class com.tnsai.mcp.registry.CamelMcpHubClient
 
listAll() - Method in interface com.tnsai.mcp.registry.McpRegistrySource
Lists all available servers from this registry.
listAll() - Method in class com.tnsai.mcp.registry.McpServersOrgClient
 
listAll() - Method in class com.tnsai.mcp.registry.OfficialRegistryClient
 
listAll() - Method in class com.tnsai.mcp.registry.SmitheryClient
 
listApps() - Method in class com.tnsai.mcp.composio.ComposioClient
Lists available Composio apps (GitHub, Slack, Gmail, etc.).
listCustomers(int) - Method in class com.tnsai.mcp.stripe.StripeMcpClient
Lists customers with a limit.
listDatabases() - Method in class com.tnsai.mcp.database.GoogleMcpToolboxClient
Lists available databases.
listNodeLabels() - Method in class com.tnsai.mcp.database.Neo4jMcpClient
Lists all node labels in the graph database.
listOperations() - Method in class com.tnsai.mcp.stripe.StripePaymentTool
Lists all supported operations.
listPayments(int) - Method in class com.tnsai.mcp.stripe.StripeMcpClient
Lists recent payments with a limit.
listPrompts() - Method in class com.tnsai.mcp.client.McpClient
Lists available prompts on the server.
listPrompts() - Method in class com.tnsai.mcp.observability.TracingMcpClient
Lists available prompts on the server with tracing.
listPrompts() - Method in interface com.tnsai.mcp.server.PromptProvider
Returns the list of prompts provided by this provider.
listResources() - Method in class com.tnsai.mcp.client.McpClient
Lists available resources on the server.
listResources() - Method in class com.tnsai.mcp.observability.TracingMcpClient
Lists available resources on the server with tracing.
listResources() - Method in interface com.tnsai.mcp.server.ResourceProvider
Returns the list of resources provided by this provider.
listResourceTemplates() - Method in class com.tnsai.mcp.client.McpClient
Lists available resource templates on the server.
listResourceTemplates() - Method in interface com.tnsai.mcp.server.ResourceProvider
Returns the list of resource templates provided by this provider.
listTables() - Method in class com.tnsai.mcp.database.PostgresMcpClient
Lists all tables in the database.
listTools() - Method in class com.tnsai.mcp.client.McpClient
Lists available tools on the server.
listTools() - Method in class com.tnsai.mcp.observability.TracingMcpClient
Lists available tools on the server with tracing.
listTools() - Method in class com.tnsai.mcp.server.TnsAIToolProvider
 
listTools() - Method in interface com.tnsai.mcp.server.ToolProvider
Returns the list of tools provided by this provider.
listTools(String) - Method in class com.tnsai.mcp.composio.ComposioClient
Lists tools for a specific Composio app.
loadExtension(Path) - Method in class com.tnsai.mcp.goose.GooseExtensionLoader
Loads a single Goose extension from a file.
loadFromDirectory(Path) - Method in class com.tnsai.mcp.goose.GooseExtensionLoader
Loads all extensions from a directory.
logging() - Static method in interface com.tnsai.mcp.observability.McpTracer
Returns a logging tracer that records span events via SLF4J.
LoggingCapability() - Constructor for class com.tnsai.mcp.model.ServerCapabilities.LoggingCapability
 
LoggingMcpTracer - Class in com.tnsai.mcp.observability
SLF4J-based implementation of McpTracer that logs span lifecycle events.
LoggingMcpTracer() - Constructor for class com.tnsai.mcp.observability.LoggingMcpTracer
 
LogLevel - Enum Class in com.tnsai.mcp.model
MCP logging levels following the standard syslog severity levels.
LogMessage - Class in com.tnsai.mcp.model
Represents a log message in MCP protocol.
LogMessage() - Constructor for class com.tnsai.mcp.model.LogMessage
 
LogMessage(LogLevel, String, JsonNode) - Constructor for class com.tnsai.mcp.model.LogMessage
 
LogMessage(LogLevel, String, String) - Constructor for class com.tnsai.mcp.model.LogMessage
 
logoUrl() - Method in record class com.tnsai.mcp.composio.ComposioClient.ComposioApp
Returns the value of the logoUrl record component.

M

map(Function<T, R>) - Method in class com.tnsai.mcp.model.PaginatedResult
Maps the items to a new type.
matches(String) - Method in class com.tnsai.mcp.model.ResourceTemplate
Checks if a URI matches this template.
maxRetries(int) - Method in class com.tnsai.mcp.client.SSETransport.Builder
Sets the maximum number of reconnection attempts.
maxRetries(int) - Method in class com.tnsai.mcp.client.StdioTransport.Builder
Sets the maximum number of reconnection attempts.
maxRetryDelay(Duration) - Method in class com.tnsai.mcp.client.SSETransport.Builder
Sets the maximum retry delay for reconnection.
maxRetryDelay(Duration) - Method in class com.tnsai.mcp.client.StdioTransport.Builder
Sets the maximum delay between reconnection attempts.
maxTokens(int) - Method in class com.tnsai.mcp.model.SamplingRequest.Builder
 
McpClient - Class in com.tnsai.mcp.client
Client for connecting to Model Context Protocol (MCP) servers.
McpClient(McpTransport) - Constructor for class com.tnsai.mcp.client.McpClient
Creates an McpClient with the given transport and default settings.
McpClient.Builder - Class in com.tnsai.mcp.client
Builder for creating McpClient instances.
McpClient.McpException - Exception Class in com.tnsai.mcp.client
Exception for MCP-related errors.
McpClient.ServerInfo - Class in com.tnsai.mcp.client
Server information returned during initialization.
McpClientRegistration - Class in com.tnsai.mcp.auth
RFC 7591 Dynamic Client Registration for MCP OAuth.
McpClientRegistration() - Constructor for class com.tnsai.mcp.auth.McpClientRegistration
 
McpClientRegistration.RegistrationRequest - Record Class in com.tnsai.mcp.auth
Client registration request as defined by RFC 7591.
McpClientRegistration.RegistrationResponse - Record Class in com.tnsai.mcp.auth
Client registration response as defined by RFC 7591.
McpException(String) - Constructor for exception class com.tnsai.mcp.client.McpClient.McpException
 
McpException(String, int) - Constructor for exception class com.tnsai.mcp.client.McpClient.McpException
 
McpException(String, Throwable) - Constructor for exception class com.tnsai.mcp.client.McpClient.McpException
 
McpInspectorClient - Class in com.tnsai.mcp.testing
Decorator transport that records all JSON-RPC messages for inspection.
McpInspectorClient(McpTransport) - Constructor for class com.tnsai.mcp.testing.McpInspectorClient
Creates an inspector that wraps the given transport.
McpInspectorClient.MessageRecord - Record Class in com.tnsai.mcp.testing
A recorded message with metadata.
McpMetricsCollector - Class in com.tnsai.mcp.observability
Thread-safe collector of metrics for MCP operations.
McpMetricsCollector() - Constructor for class com.tnsai.mcp.observability.McpMetricsCollector
 
McpOAuthDiscovery - Class in com.tnsai.mcp.auth
RFC 8414 OAuth Authorization Server Metadata discovery.
McpOAuthDiscovery() - Constructor for class com.tnsai.mcp.auth.McpOAuthDiscovery
 
McpOAuthDiscovery.OAuthMetadata - Record Class in com.tnsai.mcp.auth
OAuth authorization server metadata as defined by RFC 8414.
McpRegistrySource - Interface in com.tnsai.mcp.registry
Interface for MCP server registry sources.
McpRequestHandler - Class in com.tnsai.mcp.server
Pure-logic handler for MCP JSON-RPC requests.
McpRequestHandler(String, String) - Constructor for class com.tnsai.mcp.server.McpRequestHandler
Creates a new McpRequestHandler.
McpRequestHandler.HandlerResult - Interface in com.tnsai.mcp.server
Result of processing a JSON-RPC message.
McpRequestHandler.HandlerResult.Error - Record Class in com.tnsai.mcp.server
An error occurred during processing.
McpRequestHandler.HandlerResult.Notification - Record Class in com.tnsai.mcp.server
The message was a notification (no response needed).
McpRequestHandler.HandlerResult.Response - Record Class in com.tnsai.mcp.server
A successful response to be sent back to the client.
McpSchemaValidator - Class in com.tnsai.mcp.testing
Validates JSON-RPC 2.0 and MCP message structure.
McpServer - Class in com.tnsai.mcp.server
MCP Server implementation that exposes tools, resources, and prompts to MCP clients.
McpServer.Builder - Class in com.tnsai.mcp.server
Builder for creating McpServer instances.
McpServerConfig - Class in com.tnsai.mcp
MCP Server Configuration.
McpServerConfig.Builder - Class in com.tnsai.mcp
 
McpServerEntry - Record Class in com.tnsai.mcp.registry
Represents a single MCP server entry discovered from a registry source.
McpServerEntry(String, String, String, String, String, String, String, double, Map<String, String>) - Constructor for record class com.tnsai.mcp.registry.McpServerEntry
Validates entry fields on construction.
McpServersOrgClient - Class in com.tnsai.mcp.registry
Registry client for mcpservers.org directory.
McpServersOrgClient() - Constructor for class com.tnsai.mcp.registry.McpServersOrgClient
Creates an McpServersOrgClient with default HTTP client.
McpServersOrgClient(HttpClient) - Constructor for class com.tnsai.mcp.registry.McpServersOrgClient
Creates an McpServersOrgClient with a custom HTTP client.
McpServerTestKit - Class in com.tnsai.mcp.testing
JUnit 5 extension for easy MCP testing.
McpServerTestKit() - Constructor for class com.tnsai.mcp.testing.McpServerTestKit
 
McpSession - Class in com.tnsai.mcp.server
Represents an MCP HTTP session.
McpSessionManager - Class in com.tnsai.mcp.server
Manages MCP HTTP sessions with automatic expiration.
McpSessionManager(Duration) - Constructor for class com.tnsai.mcp.server.McpSessionManager
Creates a new session manager with the given TTL.
McpSpan - Interface in com.tnsai.mcp.observability
Abstraction for a tracing span in MCP operations.
McpSpan.SpanStatus - Enum Class in com.tnsai.mcp.observability
Status of a completed span.
McpTokenManager - Class in com.tnsai.mcp.auth
Thread-safe token manager for multiple MCP server connections.
McpTokenManager() - Constructor for class com.tnsai.mcp.auth.McpTokenManager
Creates a token manager with the default refresh threshold (5 minutes).
McpTokenManager(Duration) - Constructor for class com.tnsai.mcp.auth.McpTokenManager
Creates a token manager with a custom refresh threshold.
McpTool - Class in com.tnsai.mcp.hub
Base class for tools that wrap MCP (Model Context Protocol) servers.
McpToolArgs - Class in com.tnsai.mcp.model
Type-safe builder and accessor for MCP tool arguments.
McpToolArgs.Builder - Class in com.tnsai.mcp.model
Fluent builder for constructing MCP tool arguments.
McpToolBridge - Class in com.tnsai.mcp.hub
Dynamic bridge that wraps any MCP server and exposes all its tools.
McpToolDefinition - Class in com.tnsai.mcp.model
Represents an MCP tool definition.
McpToolDefinition() - Constructor for class com.tnsai.mcp.model.McpToolDefinition
 
McpToolDefinition(String, String, JsonNode) - Constructor for class com.tnsai.mcp.model.McpToolDefinition
 
McpToolDefinition(String, String, JsonNode, Map<String, Object>) - Constructor for class com.tnsai.mcp.model.McpToolDefinition
 
McpToolDefinition.Builder - Class in com.tnsai.mcp.model
 
McpTracer - Interface in com.tnsai.mcp.observability
Abstraction for creating tracing spans in MCP operations.
McpTracingInterceptor - Class in com.tnsai.mcp.observability
Decorator that wraps an McpTransport to add tracing spans around send and receive operations.
McpTracingInterceptor(McpTransport, McpTracer) - Constructor for class com.tnsai.mcp.observability.McpTracingInterceptor
Creates a tracing interceptor wrapping the given transport.
McpTransport - Interface in com.tnsai.mcp.client
Interface for MCP transport mechanisms.
message() - Method in record class com.tnsai.mcp.client.StdioTransport.DisconnectReason
Returns the value of the message record component.
message() - Method in record class com.tnsai.mcp.server.event.ToolErrorEvent
Returns the value of the message record component.
message(String, JsonNode) - Static method in class com.tnsai.mcp.server.PromptProvider.PromptMessage
Creates a message with a specific role and JSON content.
messageEndpoint(String) - Method in class com.tnsai.mcp.client.SSETransport.Builder
Sets the message endpoint URL for sending messages.
MessageRecord(Instant, String, String, String, Duration) - Constructor for record class com.tnsai.mcp.testing.McpInspectorClient.MessageRecord
Creates an instance of a MessageRecord record class.
messages(List<SamplingMessage>) - Method in class com.tnsai.mcp.model.SamplingRequest.Builder
 
messages(List<PromptProvider.PromptMessage>) - Static method in class com.tnsai.mcp.server.PromptProvider.PromptResult
Creates a successful result with messages.
messages(List<PromptProvider.PromptMessage>, String) - Static method in class com.tnsai.mcp.server.PromptProvider.PromptResult
Creates a successful result with messages and description.
metadata() - Method in record class com.tnsai.mcp.registry.McpServerEntry
Returns the value of the metadata record component.
metadata(Map<String, Object>) - Method in class com.tnsai.mcp.model.SamplingRequest.Builder
 
method() - Method in record class com.tnsai.mcp.testing.McpInspectorClient.MessageRecord
Returns the value of the method record component.
mimeType(String) - Method in class com.tnsai.mcp.model.Resource.Builder
 
mimeType(String) - Method in class com.tnsai.mcp.model.ResourceTemplate.Builder
 
Mixed - Search tag in class com.tnsai.mcp.server.TnsAIToolProvider
Section
MockMcpServer - Class in com.tnsai.mcp.testing
In-memory MCP server for unit testing.
MockMcpServer() - Constructor for class com.tnsai.mcp.testing.MockMcpServer
Creates a MockMcpServer with default name and version.
MockMcpServer(String, String) - Constructor for class com.tnsai.mcp.testing.MockMcpServer
Creates a MockMcpServer with specified name and version.
MockMcpServer.MockToolException - Exception Class in com.tnsai.mcp.testing
Exception thrown by mock tool handlers to simulate errors.
MockMcpTransport - Class in com.tnsai.mcp.testing
In-memory transport that connects McpClient directly to MockMcpServer.
MockMcpTransport(MockMcpServer) - Constructor for class com.tnsai.mcp.testing.MockMcpTransport
Creates a MockMcpTransport backed by the given server.
MockToolException(int, String) - Constructor for exception class com.tnsai.mcp.testing.MockMcpServer.MockToolException
 
ModelHint() - Constructor for class com.tnsai.mcp.model.ModelPreferences.ModelHint
 
ModelHint(String) - Constructor for class com.tnsai.mcp.model.ModelPreferences.ModelHint
 
modelPreferences(ModelPreferences) - Method in class com.tnsai.mcp.model.SamplingRequest.Builder
 
ModelPreferences - Class in com.tnsai.mcp.model
Model preferences for sampling requests.
ModelPreferences() - Constructor for class com.tnsai.mcp.model.ModelPreferences
 
ModelPreferences.Builder - Class in com.tnsai.mcp.model
 
ModelPreferences.ModelHint - Class in com.tnsai.mcp.model
 

N

name() - Method in record class com.tnsai.mcp.composio.ComposioClient.ComposioApp
Returns the value of the name record component.
name() - Method in record class com.tnsai.mcp.composio.ComposioClient.ComposioTool
Returns the value of the name record component.
name() - Method in record class com.tnsai.mcp.goose.GooseExtensionLoader.GooseExtension
Returns the value of the name record component.
name() - Method in record class com.tnsai.mcp.goose.GooseRecipeParser.Recipe
Returns the value of the name record component.
name() - Method in record class com.tnsai.mcp.goose.TnsAIGooseExtension.ExtensionManifest
Returns the value of the name record component.
name() - Method in record class com.tnsai.mcp.goose.TnsAIGooseExtension.ExtensionTool
Returns the value of the name record component.
name() - Method in record class com.tnsai.mcp.registry.McpServerEntry
Returns the value of the name record component.
name(String) - Method in class com.tnsai.mcp.McpServerConfig.Builder
 
name(String) - Method in class com.tnsai.mcp.model.McpToolDefinition.Builder
 
name(String) - Method in class com.tnsai.mcp.model.Resource.Builder
 
name(String) - Method in class com.tnsai.mcp.model.ResourceTemplate.Builder
 
Neo4jMcpClient - Class in com.tnsai.mcp.database
Client for Neo4j's MCP server.
Neo4jMcpClient(McpClient) - Constructor for class com.tnsai.mcp.database.Neo4jMcpClient
Creates a new Neo4jMcpClient wrapping the given MCP client.
noop() - Static method in interface com.tnsai.mcp.observability.McpTracer
Returns a no-op tracer that performs no work and has zero overhead.
NoopMcpTracer - Class in com.tnsai.mcp.observability
No-op implementation of McpTracer that produces zero overhead.
NOTICE - Enum constant in enum class com.tnsai.mcp.model.LogLevel
 
Notification() - Constructor for record class com.tnsai.mcp.server.McpRequestHandler.HandlerResult.Notification
Creates an instance of a Notification record class.

O

OAuthMcpTransport - Class in com.tnsai.mcp.auth
Transport decorator that adds OAuth Bearer token authentication to any McpTransport.
OAuthMcpTransport(McpTransport, McpTokenManager, String, String, String) - Constructor for class com.tnsai.mcp.auth.OAuthMcpTransport
Creates a new OAuthMcpTransport.
OAuthMcpTransport.Builder - Class in com.tnsai.mcp.auth
Builder for creating OAuthMcpTransport instances.
OAuthMetadata(String, String, String, String, List<String>, List<String>, List<String>) - Constructor for record class com.tnsai.mcp.auth.McpOAuthDiscovery.OAuthMetadata
Creates an instance of a OAuthMetadata record class.
obtainedAt() - Method in record class com.tnsai.mcp.auth.PkceFlow.TokenResponse
Returns the value of the obtainedAt record component.
of(String) - Static method in class com.tnsai.mcp.McpServerConfig
Creates an MCP server config with endpoint only (no auth).
of(String, long, long) - Static method in class com.tnsai.mcp.model.ProgressNotification
Creates a progress notification with known total.
of(String, ToolErrorCategory, String) - Static method in record class com.tnsai.mcp.server.event.ToolErrorEvent
Creates an error event with auto-generated timestamp.
of(String, ToolErrorCategory, String, Long) - Static method in record class com.tnsai.mcp.server.event.ToolErrorEvent
Creates an error event with a request ID.
of(String, Object) - Static method in class com.tnsai.mcp.model.McpToolArgs
Creates a single-argument map.
of(String, Object, String, Object) - Static method in class com.tnsai.mcp.model.McpToolArgs
Creates a two-argument map.
of(String, Object, String, Object, String, Object) - Static method in class com.tnsai.mcp.model.McpToolArgs
Creates a three-argument map.
of(String, String) - Static method in class com.tnsai.mcp.McpServerConfig
Creates an MCP server config with endpoint and API key.
of(String, String) - Static method in class com.tnsai.mcp.model.Root
Creates a Root from a URI string and display name.
of(List<T>) - Static method in class com.tnsai.mcp.model.PaginatedResult
Creates a paginated result with items only (no more pages).
of(List<T>, String) - Static method in class com.tnsai.mcp.model.PaginatedResult
Creates a paginated result with items and next cursor.
OfficialRegistryClient - Class in com.tnsai.mcp.registry
Registry client for the official MCP registry at registry.modelcontextprotocol.io.
OfficialRegistryClient() - Constructor for class com.tnsai.mcp.registry.OfficialRegistryClient
Creates an OfficialRegistryClient with default HTTP client.
OfficialRegistryClient(HttpClient) - Constructor for class com.tnsai.mcp.registry.OfficialRegistryClient
Creates an OfficialRegistryClient with a custom HTTP client.
OK - Enum constant in enum class com.tnsai.mcp.observability.McpSpan.SpanStatus
Operation completed successfully.
onResourceChanged(String) - Method in interface com.tnsai.mcp.server.ResourceProvider.ResourceChangeListener
 
onResourceUpdated(String) - Method in interface com.tnsai.mcp.model.ResourceUpdateListener
Called when a subscribed resource has been updated.
onToolError(ToolErrorEvent) - Method in interface com.tnsai.mcp.server.event.ToolErrorListener
Called when a tool execution fails.
openNotificationStream() - Method in class com.tnsai.mcp.client.StreamableHttpTransport
Opens a long-lived GET request to receive server-initiated notifications via SSE.
outputVariable() - Method in record class com.tnsai.mcp.goose.GooseRecipeParser.RecipeStep
Returns the value of the outputVariable record component.

P

PaginatedResult<T> - Class in com.tnsai.mcp.model
Represents a paginated result from MCP list operations.
PaginatedResult(List<T>, String) - Constructor for class com.tnsai.mcp.model.PaginatedResult
 
params() - Method in record class com.tnsai.mcp.goose.GooseRecipeParser.RecipeStep
Returns the value of the params record component.
parse(String) - Static method in class com.tnsai.mcp.goose.GooseRecipeParser
Parses a recipe from a JSON string.
path(String) - Method in class com.tnsai.mcp.server.HttpMcpServer.Builder
Sets the HTTP path for the MCP endpoint.
PERMISSION_DENIED - Enum constant in enum class com.tnsai.mcp.server.event.ToolErrorCategory
 
PkceChallenge(String, String, String) - Constructor for record class com.tnsai.mcp.auth.PkceFlow.PkceChallenge
Creates an instance of a PkceChallenge record class.
PkceFlow - Class in com.tnsai.mcp.auth
PKCE (Proof Key for Code Exchange) flow implementation with S256 challenge.
PkceFlow() - Constructor for class com.tnsai.mcp.auth.PkceFlow
 
PkceFlow.PkceChallenge - Record Class in com.tnsai.mcp.auth
A PKCE challenge pair consisting of verifier, challenge, and method.
PkceFlow.TokenResponse - Record Class in com.tnsai.mcp.auth
Token response from the authorization server.
POJO @Tool methods - Search tag in class com.tnsai.mcp.server.TnsAIToolProvider
Section
port(int) - Method in class com.tnsai.mcp.server.HttpMcpServer.Builder
Sets the port to listen on.
PostgresMcpClient - Class in com.tnsai.mcp.database
Client for PostgreSQL MCP server.
PostgresMcpClient(McpClient) - Constructor for class com.tnsai.mcp.database.PostgresMcpClient
Creates a new PostgresMcpClient wrapping the given MCP client.
probeFor(String, Map<String, Object>) - Method in class com.tnsai.mcp.spi.DefaultMcpClientFactory
 
Probe semantics - Search tag in class com.tnsai.mcp.spi.DefaultMcpClientFactory
Section
proceed(HttpRequest) - Method in interface com.tnsai.mcp.client.HttpInterceptor.Chain
Sends request through the remaining interceptors and the network.
processMessage(String) - Method in class com.tnsai.mcp.server.McpRequestHandler
Processes a single JSON-RPC message and returns the result.
processMessage(String) - Method in class com.tnsai.mcp.server.McpServer
Processes a single JSON-RPC message.
processMessage(String) - Method in class com.tnsai.mcp.testing.MockMcpServer
Processes a JSON-RPC message and returns the response.
processStartTimeout(Duration) - Method in class com.tnsai.mcp.client.StdioTransport.Builder
Sets the timeout for process startup.
ProgressNotification - Class in com.tnsai.mcp.model
Represents a progress notification for long-running operations.
ProgressNotification() - Constructor for class com.tnsai.mcp.model.ProgressNotification
 
ProgressNotification(String, long, Long) - Constructor for class com.tnsai.mcp.model.ProgressNotification
 
prompt(String) - Static method in class com.tnsai.mcp.model.CompletionRequest.CompletionRef
 
Prompt - Class in com.tnsai.mcp.model
Represents an MCP prompt definition.
Prompt() - Constructor for class com.tnsai.mcp.model.Prompt
 
Prompt.PromptArgument - Class in com.tnsai.mcp.model
 
PromptArgument() - Constructor for class com.tnsai.mcp.model.Prompt.PromptArgument
 
PromptProvider - Interface in com.tnsai.mcp.server
Interface for providing prompts to an MCP server.
PromptProvider.PromptMessage - Class in com.tnsai.mcp.server
A message in a prompt result.
PromptProvider.PromptResult - Class in com.tnsai.mcp.server
Result of a prompt request.
PromptsCapability() - Constructor for class com.tnsai.mcp.model.ServerCapabilities.PromptsCapability
 
protocolVersion() - Method in record class com.tnsai.mcp.registry.McpServerEntry
Returns the value of the protocolVersion record component.
put(String, Object) - Method in class com.tnsai.mcp.model.McpToolArgs.Builder
Adds an argument.
putAll(Map<String, Object>) - Method in class com.tnsai.mcp.model.McpToolArgs.Builder
Adds all entries from another map.
putIfNotNull(String, Object) - Method in class com.tnsai.mcp.model.McpToolArgs.Builder
Adds an argument only if the value is not null.

R

rating() - Method in record class com.tnsai.mcp.registry.McpServerEntry
Returns the value of the rating record component.
readResource(String) - Method in class com.tnsai.mcp.client.McpClient
Reads the content of a resource.
readResource(String) - Method in class com.tnsai.mcp.observability.TracingMcpClient
Reads a resource from the server with tracing.
readResource(String) - Method in interface com.tnsai.mcp.server.ResourceProvider
Reads the content of a resource.
readTimeout(Duration) - Method in class com.tnsai.mcp.client.SSETransport.Builder
Sets the read timeout for SSE stream.
Recipe(String, String, List<GooseRecipeParser.RecipeStep>) - Constructor for record class com.tnsai.mcp.goose.GooseRecipeParser.Recipe
Creates an instance of a Recipe record class.
RecipeStep(String, Map<String, Object>, String) - Constructor for record class com.tnsai.mcp.goose.GooseRecipeParser.RecipeStep
Creates an instance of a RecipeStep record class.
recordError(String, String) - Method in class com.tnsai.mcp.observability.McpMetricsCollector
Records an error occurrence.
recordException(Throwable) - Method in interface com.tnsai.mcp.observability.McpSpan
Records an exception on this span.
recordToolInvocation(String, boolean, Duration) - Method in class com.tnsai.mcp.observability.McpMetricsCollector
Records a tool invocation with its outcome and duration.
redirectUris() - Method in record class com.tnsai.mcp.auth.McpClientRegistration.RegistrationRequest
Returns the value of the redirectUris record component.
redirectUris() - Method in record class com.tnsai.mcp.auth.McpClientRegistration.RegistrationResponse
Returns the value of the redirectUris record component.
refreshToken() - Method in record class com.tnsai.mcp.auth.PkceFlow.TokenResponse
Returns the value of the refreshToken record component.
refreshToken(String, String, String) - Static method in class com.tnsai.mcp.auth.PkceFlow
Refreshes an access token using a refresh token.
register(String, McpClientRegistration.RegistrationRequest) - Static method in class com.tnsai.mcp.auth.McpClientRegistration
Registers a client with the OAuth authorization server.
registrationEndpoint() - Method in record class com.tnsai.mcp.auth.McpOAuthDiscovery.OAuthMetadata
Returns the value of the registrationEndpoint record component.
RegistrationRequest(String, List<String>, List<String>, List<String>, String) - Constructor for record class com.tnsai.mcp.auth.McpClientRegistration.RegistrationRequest
Creates an instance of a RegistrationRequest record class.
RegistrationResponse(String, String, String, List<String>) - Constructor for record class com.tnsai.mcp.auth.McpClientRegistration.RegistrationResponse
Creates an instance of a RegistrationResponse record class.
removePromptProvider(PromptProvider) - Method in class com.tnsai.mcp.server.McpRequestHandler
Removes a prompt provider.
removePromptProvider(PromptProvider) - Method in class com.tnsai.mcp.server.McpServer
Removes a prompt provider from the server.
removeResourceProvider(ResourceProvider) - Method in class com.tnsai.mcp.server.McpRequestHandler
Removes a resource provider.
removeResourceProvider(ResourceProvider) - Method in class com.tnsai.mcp.server.McpServer
Removes a resource provider from the server.
removeRoot(Root) - Method in class com.tnsai.mcp.client.McpClient
Removes a root and notifies the server.
removeSource(String) - Method in class com.tnsai.mcp.registry.UnifiedMcpRegistry
Removes a registry source by name.
removeToken(String) - Method in class com.tnsai.mcp.auth.McpTokenManager
Removes the token for a given server URL.
removeToolErrorListener(ToolErrorListener) - Method in class com.tnsai.mcp.server.McpRequestHandler
Removes a tool error listener.
removeToolProvider(ToolProvider) - Method in class com.tnsai.mcp.server.McpRequestHandler
Removes a tool provider.
removeToolProvider(ToolProvider) - Method in class com.tnsai.mcp.server.McpServer
Removes a tool provider from the server.
request() - Method in interface com.tnsai.mcp.client.HttpInterceptor.Chain
The outbound request as seen at this position in the chain.
requestId() - Method in record class com.tnsai.mcp.server.event.ToolErrorEvent
Returns the value of the requestId record component.
requestTimeout(Duration) - Method in class com.tnsai.mcp.client.McpClient.Builder
Sets the request timeout.
reset() - Method in class com.tnsai.mcp.observability.McpMetricsCollector
Resets all collected metrics to their initial state.
resource(String) - Static method in class com.tnsai.mcp.model.CompletionRequest.CompletionRef
 
Resource - Class in com.tnsai.mcp.model
Represents an MCP resource definition.
Resource() - Constructor for class com.tnsai.mcp.model.Resource
 
Resource(String, String) - Constructor for class com.tnsai.mcp.model.Resource
 
Resource(String, String, String, String) - Constructor for class com.tnsai.mcp.model.Resource
 
Resource.Builder - Class in com.tnsai.mcp.model
 
ResourceContent - Class in com.tnsai.mcp.model
Represents the content of an MCP Resource.
ResourceContent() - Constructor for class com.tnsai.mcp.model.ResourceContent
 
ResourceContent(String, String) - Constructor for class com.tnsai.mcp.model.ResourceContent
 
ResourceNotFoundException(String) - Constructor for exception class com.tnsai.mcp.server.ResourceProvider.ResourceNotFoundException
 
ResourceNotFoundException(String, String) - Constructor for exception class com.tnsai.mcp.server.ResourceProvider.ResourceNotFoundException
 
ResourceProvider - Interface in com.tnsai.mcp.server
Interface for providing resources to an MCP server.
ResourceProvider.ResourceChangeListener - Interface in com.tnsai.mcp.server
Listener for resource change notifications.
ResourceProvider.ResourceNotFoundException - Exception Class in com.tnsai.mcp.server
Exception thrown when a resource is not found.
ResourcesCapability() - Constructor for class com.tnsai.mcp.model.ServerCapabilities.ResourcesCapability
 
ResourceTemplate - Class in com.tnsai.mcp.model
Represents an MCP Resource Template.
ResourceTemplate() - Constructor for class com.tnsai.mcp.model.ResourceTemplate
 
ResourceTemplate(String, String) - Constructor for class com.tnsai.mcp.model.ResourceTemplate
 
ResourceTemplate(String, String, String, String) - Constructor for class com.tnsai.mcp.model.ResourceTemplate
 
ResourceTemplate.Builder - Class in com.tnsai.mcp.model
 
ResourceUpdateListener - Interface in com.tnsai.mcp.model
Functional interface for receiving resource update notifications.
Response(String) - Constructor for record class com.tnsai.mcp.server.McpRequestHandler.HandlerResult.Response
Creates an instance of a Response record class.
responseTypes() - Method in record class com.tnsai.mcp.auth.McpClientRegistration.RegistrationRequest
Returns the value of the responseTypes record component.
responseTypesSupported() - Method in record class com.tnsai.mcp.auth.McpOAuthDiscovery.OAuthMetadata
Returns the value of the responseTypesSupported record component.
Root - Class in com.tnsai.mcp.model
Represents a root directory that clients can expose to servers.
Root() - Constructor for class com.tnsai.mcp.model.Root
 
Root(String, String) - Constructor for class com.tnsai.mcp.model.Root
 
roots(List<Root>) - Method in class com.tnsai.mcp.client.McpClient.Builder
Sets the initial roots to advertise to the server.

S

samplingHandler(Function<SamplingRequest, SamplingResponse>) - Method in class com.tnsai.mcp.server.McpServer.Builder
Sets the sampling handler.
SamplingMessage - Class in com.tnsai.mcp.model
Represents a message in MCP sampling requests/responses.
SamplingMessage() - Constructor for class com.tnsai.mcp.model.SamplingMessage
 
SamplingMessage(String, JsonNode) - Constructor for class com.tnsai.mcp.model.SamplingMessage
 
SamplingRequest - Class in com.tnsai.mcp.model
Request for LLM sampling via MCP.
SamplingRequest() - Constructor for class com.tnsai.mcp.model.SamplingRequest
 
SamplingRequest.Builder - Class in com.tnsai.mcp.model
 
samplingRequestHandler(Function<SamplingRequest, SamplingResponse>) - Method in class com.tnsai.mcp.client.McpClient.Builder
Sets the handler for server-initiated sampling requests.
SamplingResponse - Class in com.tnsai.mcp.model
Response from LLM sampling via MCP.
SamplingResponse() - Constructor for class com.tnsai.mcp.model.SamplingResponse
 
scope() - Method in record class com.tnsai.mcp.auth.PkceFlow.TokenResponse
Returns the value of the scope record component.
search(String) - Method in class com.tnsai.mcp.registry.CamelMcpHubClient
 
search(String) - Method in interface com.tnsai.mcp.registry.McpRegistrySource
Searches the registry for servers matching the given query.
search(String) - Method in class com.tnsai.mcp.registry.McpServersOrgClient
 
search(String) - Method in class com.tnsai.mcp.registry.OfficialRegistryClient
 
search(String) - Method in class com.tnsai.mcp.registry.SmitheryClient
 
search(String) - Method in class com.tnsai.mcp.registry.UnifiedMcpRegistry
Searches across all sources, filters incompatible protocol versions, deduplicates by name (keeping highest priority), and sorts results.
send(String) - Method in class com.tnsai.mcp.auth.OAuthMcpTransport
 
send(String) - Method in class com.tnsai.mcp.client.HttpTransport
 
send(String) - Method in interface com.tnsai.mcp.client.McpTransport
Sends a message to the MCP server.
send(String) - Method in class com.tnsai.mcp.client.SSETransport
 
send(String) - Method in class com.tnsai.mcp.client.StdioTransport
 
send(String) - Method in class com.tnsai.mcp.client.StreamableHttpTransport
 
send(String) - Method in class com.tnsai.mcp.observability.McpTracingInterceptor
 
send(String) - Method in class com.tnsai.mcp.testing.McpInspectorClient
 
send(String) - Method in class com.tnsai.mcp.testing.MockMcpTransport
 
sendLogNotification(LogMessage) - Method in class com.tnsai.mcp.server.McpServer
Sends a log message notification to the client.
sendNotification(String, String, JsonNode) - Method in class com.tnsai.mcp.server.HttpMcpServer
Sends a notification to a specific session.
sendPromptsListChangedNotification() - Method in class com.tnsai.mcp.server.McpServer
Sends a notification that the prompts list has changed.
sendResourcesListChangedNotification() - Method in class com.tnsai.mcp.server.McpServer
Sends a notification that the resources list has changed.
sendResourceUpdatedNotification(String) - Method in class com.tnsai.mcp.server.McpServer
Sends a notification that a specific resource has been updated.
sendRootsListChangedNotification() - Method in class com.tnsai.mcp.server.McpServer
Sends a roots/list_changed notification to the client.
sendToolsListChangedNotification() - Method in class com.tnsai.mcp.server.McpServer
Sends a notification that the tools list has changed.
ServerCapabilities - Class in com.tnsai.mcp.model
Represents the capabilities that an MCP server supports.
ServerCapabilities() - Constructor for class com.tnsai.mcp.model.ServerCapabilities
 
ServerCapabilities.LoggingCapability - Class in com.tnsai.mcp.model
 
ServerCapabilities.PromptsCapability - Class in com.tnsai.mcp.model
 
ServerCapabilities.ResourcesCapability - Class in com.tnsai.mcp.model
 
ServerCapabilities.ToolsCapability - Class in com.tnsai.mcp.model
 
ServerInfo() - Constructor for class com.tnsai.mcp.client.McpClient.ServerInfo
 
serverName(String) - Method in class com.tnsai.mcp.server.HttpMcpServer.Builder
Sets the server name.
serverName(String) - Method in class com.tnsai.mcp.server.McpServer.Builder
Sets the server name.
serverUrl(String) - Method in class com.tnsai.mcp.auth.OAuthMcpTransport.Builder
Sets the MCP server URL.
serverVersion(String) - Method in class com.tnsai.mcp.server.HttpMcpServer.Builder
Sets the server version.
serverVersion(String) - Method in class com.tnsai.mcp.server.McpServer.Builder
Sets the server version.
SessionExpiredException(String) - Constructor for exception class com.tnsai.mcp.client.StreamableHttpTransport.SessionExpiredException
 
sessionTtl(Duration) - Method in class com.tnsai.mcp.server.HttpMcpServer.Builder
Sets the session time-to-live.
setActiveSseStream(OutputStream) - Method in class com.tnsai.mcp.server.McpSession
Sets the active SSE output stream for server-initiated notifications.
setAnnotations(Map<String, Object>) - Method in class com.tnsai.mcp.model.McpToolDefinition
 
setArgument(CompletionRequest.CompletionArgument) - Method in class com.tnsai.mcp.model.CompletionRequest
 
setArguments(List<Prompt.PromptArgument>) - Method in class com.tnsai.mcp.model.Prompt
 
setAttribute(String, double) - Method in interface com.tnsai.mcp.observability.McpSpan
Sets a double attribute on this span.
setAttribute(String, long) - Method in interface com.tnsai.mcp.observability.McpSpan
Sets a long attribute on this span.
setAttribute(String, String) - Method in interface com.tnsai.mcp.observability.McpSpan
Sets a string attribute on this span.
setBlob(String) - Method in class com.tnsai.mcp.model.ResourceContent
 
setBlobFromBytes(byte[]) - Method in class com.tnsai.mcp.model.ResourceContent
Sets binary content from raw bytes (encodes to base64).
setClientRoots(List<Root>) - Method in class com.tnsai.mcp.server.McpRequestHandler
Sets the roots provided by the client.
setClientRoots(List<Root>) - Method in class com.tnsai.mcp.server.McpServer
Sets the client roots on the server.
setCompletion(CompletionResponse.Completion) - Method in class com.tnsai.mcp.model.CompletionResponse
 
setContent(JsonNode) - Method in class com.tnsai.mcp.model.SamplingMessage
 
setContent(JsonNode) - Method in class com.tnsai.mcp.model.SamplingResponse
 
setCostPriority(Double) - Method in class com.tnsai.mcp.model.ModelPreferences
 
setData(JsonNode) - Method in class com.tnsai.mcp.model.LogMessage
 
setDescription(String) - Method in class com.tnsai.mcp.model.McpToolDefinition
 
setDescription(String) - Method in class com.tnsai.mcp.model.Prompt.PromptArgument
 
setDescription(String) - Method in class com.tnsai.mcp.model.Prompt
 
setDescription(String) - Method in class com.tnsai.mcp.model.Resource
 
setDescription(String) - Method in class com.tnsai.mcp.model.ResourceTemplate
 
setHasMore(Boolean) - Method in class com.tnsai.mcp.model.CompletionResponse.Completion
 
setHints(List<ModelPreferences.ModelHint>) - Method in class com.tnsai.mcp.model.ModelPreferences
 
setIncludeContext(String) - Method in class com.tnsai.mcp.model.SamplingRequest
 
setInputSchema(JsonNode) - Method in class com.tnsai.mcp.model.McpToolDefinition
 
setIntelligencePriority(Double) - Method in class com.tnsai.mcp.model.ModelPreferences
 
setLevel(String) - Method in class com.tnsai.mcp.model.LogMessage
 
setListChanged(Boolean) - Method in class com.tnsai.mcp.model.ServerCapabilities.PromptsCapability
 
setListChanged(Boolean) - Method in class com.tnsai.mcp.model.ServerCapabilities.ResourcesCapability
 
setListChanged(Boolean) - Method in class com.tnsai.mcp.model.ServerCapabilities.ToolsCapability
 
setLogger(String) - Method in class com.tnsai.mcp.model.LogMessage
 
setLogging(ServerCapabilities.LoggingCapability) - Method in class com.tnsai.mcp.model.ServerCapabilities
 
setLogLevel(LogLevel) - Method in class com.tnsai.mcp.client.McpClient
Sets the minimum log level on the server.
setLogNotifier(Consumer<LogMessage>) - Method in class com.tnsai.mcp.server.McpRequestHandler
Sets a callback for log message notifications.
setMaxTokens(Integer) - Method in class com.tnsai.mcp.model.SamplingRequest
 
setMessages(List<SamplingMessage>) - Method in class com.tnsai.mcp.model.SamplingRequest
 
setMimeType(String) - Method in class com.tnsai.mcp.model.Resource
 
setMimeType(String) - Method in class com.tnsai.mcp.model.ResourceContent
 
setMimeType(String) - Method in class com.tnsai.mcp.model.ResourceTemplate
 
setModel(String) - Method in class com.tnsai.mcp.model.SamplingResponse
 
setModelPreferences(ModelPreferences) - Method in class com.tnsai.mcp.model.SamplingRequest
 
setName(String) - Method in class com.tnsai.mcp.client.McpClient.ServerInfo
 
setName(String) - Method in class com.tnsai.mcp.model.CompletionRequest.CompletionArgument
 
setName(String) - Method in class com.tnsai.mcp.model.CompletionRequest.CompletionRef
 
setName(String) - Method in class com.tnsai.mcp.model.McpToolDefinition
 
setName(String) - Method in class com.tnsai.mcp.model.ModelPreferences.ModelHint
 
setName(String) - Method in class com.tnsai.mcp.model.Prompt.PromptArgument
 
setName(String) - Method in class com.tnsai.mcp.model.Prompt
 
setName(String) - Method in class com.tnsai.mcp.model.Resource
 
setName(String) - Method in class com.tnsai.mcp.model.ResourceTemplate
 
setName(String) - Method in class com.tnsai.mcp.model.Root
 
setOnCrashDetected(Consumer<StdioTransport.DisconnectReason>) - Method in class com.tnsai.mcp.client.StdioTransport
Sets a callback for subprocess crash detection with structured reason.
setOnDisconnect(Runnable) - Method in class com.tnsai.mcp.client.StdioTransport
Sets a callback to be invoked when disconnection is detected.
setOnError(Consumer<Throwable>) - Method in class com.tnsai.mcp.auth.OAuthMcpTransport
 
setOnError(Consumer<Throwable>) - Method in class com.tnsai.mcp.client.BaseTransport
 
setOnError(Consumer<Throwable>) - Method in class com.tnsai.mcp.client.HttpTransport
 
setOnError(Consumer<Throwable>) - Method in interface com.tnsai.mcp.client.McpTransport
Sets a consumer for transport errors.
setOnError(Consumer<Throwable>) - Method in class com.tnsai.mcp.client.SSETransport
 
setOnError(Consumer<Throwable>) - Method in class com.tnsai.mcp.client.StdioTransport
 
setOnError(Consumer<Throwable>) - Method in class com.tnsai.mcp.client.StreamableHttpTransport
 
setOnError(Consumer<Throwable>) - Method in class com.tnsai.mcp.observability.McpTracingInterceptor
 
setOnError(Consumer<Throwable>) - Method in class com.tnsai.mcp.testing.McpInspectorClient
 
setOnError(Consumer<Throwable>) - Method in class com.tnsai.mcp.testing.MockMcpTransport
 
setOnLogMessage(Consumer<LogMessage>) - Method in class com.tnsai.mcp.client.McpClient
Sets a handler for log message notifications from the server.
setOnMessage(Consumer<String>) - Method in class com.tnsai.mcp.auth.OAuthMcpTransport
 
setOnMessage(Consumer<String>) - Method in class com.tnsai.mcp.client.BaseTransport
 
setOnMessage(Consumer<String>) - Method in class com.tnsai.mcp.client.HttpTransport
 
setOnMessage(Consumer<String>) - Method in interface com.tnsai.mcp.client.McpTransport
Sets a consumer for incoming messages from the MCP server.
setOnMessage(Consumer<String>) - Method in class com.tnsai.mcp.client.SSETransport
 
setOnMessage(Consumer<String>) - Method in class com.tnsai.mcp.client.StdioTransport
 
setOnMessage(Consumer<String>) - Method in class com.tnsai.mcp.client.StreamableHttpTransport
 
setOnMessage(Consumer<String>) - Method in class com.tnsai.mcp.observability.McpTracingInterceptor
 
setOnMessage(Consumer<String>) - Method in class com.tnsai.mcp.testing.McpInspectorClient
 
setOnMessage(Consumer<String>) - Method in class com.tnsai.mcp.testing.MockMcpTransport
 
setOnNotification(Consumer<JsonNode>) - Method in class com.tnsai.mcp.client.McpClient
Sets a generic handler for all notifications.
setOnPromptsListChanged(Consumer<String>) - Method in class com.tnsai.mcp.client.McpClient
Sets a handler for prompts list changed notifications.
setOnReconnect(Runnable) - Method in class com.tnsai.mcp.client.StdioTransport
Sets a callback to be invoked when reconnection succeeds.
setOnResourcesListChanged(Consumer<String>) - Method in class com.tnsai.mcp.client.McpClient
Sets a handler for resources list changed notifications.
setOnRootsChanged(Consumer<List<Root>>) - Method in class com.tnsai.mcp.server.McpRequestHandler
Sets a callback for when client roots change.
setOnToolsListChanged(Consumer<String>) - Method in class com.tnsai.mcp.client.McpClient
Sets a handler for tools list changed notifications.
setProgress(long) - Method in class com.tnsai.mcp.model.ProgressNotification
 
setProgressToken(String) - Method in class com.tnsai.mcp.model.ProgressNotification
 
setPrompts(ServerCapabilities.PromptsCapability) - Method in class com.tnsai.mcp.model.ServerCapabilities
 
setRef(CompletionRequest.CompletionRef) - Method in class com.tnsai.mcp.model.CompletionRequest
 
setRequired(Boolean) - Method in class com.tnsai.mcp.model.Prompt.PromptArgument
 
setResources(ServerCapabilities.ResourcesCapability) - Method in class com.tnsai.mcp.model.ServerCapabilities
 
setResourceUpdateNotifier(Consumer<String>) - Method in class com.tnsai.mcp.server.McpRequestHandler
Sets a callback for resource update notifications.
setRole(String) - Method in class com.tnsai.mcp.model.SamplingMessage
 
setRole(String) - Method in class com.tnsai.mcp.model.SamplingResponse
 
setRoots(List<Root>) - Method in class com.tnsai.mcp.client.McpClient
Sets the roots and notifies the server that roots have changed.
setSamplingHandler(Function<SamplingRequest, SamplingResponse>) - Method in class com.tnsai.mcp.server.McpRequestHandler
Sets the handler for sampling/createMessage requests.
setSamplingHandler(Function<SamplingRequest, SamplingResponse>) - Method in class com.tnsai.mcp.server.McpServer
Sets the sampling handler for this server.
setSamplingRequestHandler(Function<SamplingRequest, SamplingResponse>) - Method in class com.tnsai.mcp.client.McpClient
Sets the handler for server-initiated sampling requests.
setSpec(Map<String, Object>) - Method in class com.tnsai.mcp.model.SamplingRequest
 
setSpeedPriority(Double) - Method in class com.tnsai.mcp.model.ModelPreferences
 
setStatus(McpSpan.SpanStatus) - Method in interface com.tnsai.mcp.observability.McpSpan
Sets the status of this span.
setStopReason(String) - Method in class com.tnsai.mcp.model.SamplingResponse
 
setStopSequences(List<String>) - Method in class com.tnsai.mcp.model.SamplingRequest
 
setSubscribe(Boolean) - Method in class com.tnsai.mcp.model.ServerCapabilities.ResourcesCapability
 
setSystemPrompt(String) - Method in class com.tnsai.mcp.model.SamplingRequest
 
setTemperature(Double) - Method in class com.tnsai.mcp.model.SamplingRequest
 
setText(String) - Method in class com.tnsai.mcp.model.ResourceContent
 
setTools(ServerCapabilities.ToolsCapability) - Method in class com.tnsai.mcp.model.ServerCapabilities
 
setTotal(Integer) - Method in class com.tnsai.mcp.model.CompletionResponse.Completion
 
setTotal(Long) - Method in class com.tnsai.mcp.model.ProgressNotification
 
setType(String) - Method in class com.tnsai.mcp.model.CompletionRequest.CompletionRef
 
setUri(String) - Method in class com.tnsai.mcp.model.CompletionRequest.CompletionRef
 
setUri(String) - Method in class com.tnsai.mcp.model.Resource
 
setUri(String) - Method in class com.tnsai.mcp.model.ResourceContent
 
setUri(String) - Method in class com.tnsai.mcp.model.Root
 
setUriTemplate(String) - Method in class com.tnsai.mcp.model.ResourceTemplate
 
setValue(String) - Method in class com.tnsai.mcp.model.CompletionRequest.CompletionArgument
 
setValues(List<String>) - Method in class com.tnsai.mcp.model.CompletionResponse.Completion
 
setVersion(String) - Method in class com.tnsai.mcp.client.McpClient.ServerInfo
 
shouldLog(LogLevel) - Method in enum class com.tnsai.mcp.model.LogLevel
Checks if this level should be logged given the current minimum level.
shutdown() - Method in class com.tnsai.mcp.server.McpSessionManager
Shuts down the session manager and terminates all sessions.
shutdownTimeout(Duration) - Method in class com.tnsai.mcp.client.StdioTransport.Builder
Sets the timeout for graceful shutdown.
size() - Method in class com.tnsai.mcp.model.McpToolArgs
Returns the number of arguments.
size() - Method in class com.tnsai.mcp.model.PaginatedResult
Gets the number of items in this page.
SmitheryClient - Class in com.tnsai.mcp.registry
Registry client for Smithery at smithery.ai.
SmitheryClient() - Constructor for class com.tnsai.mcp.registry.SmitheryClient
Creates a SmitheryClient with default HTTP client.
SmitheryClient(HttpClient) - Constructor for class com.tnsai.mcp.registry.SmitheryClient
Creates a SmitheryClient with a custom HTTP client.
source() - Method in record class com.tnsai.mcp.registry.McpServerEntry
Returns the value of the source record component.
speedPriority(double) - Method in class com.tnsai.mcp.model.ModelPreferences.Builder
 
sseEndpoint(String) - Method in class com.tnsai.mcp.client.SSETransport.Builder
Sets the SSE endpoint URL for receiving events.
SSETransport - Class in com.tnsai.mcp.client
Server-Sent Events (SSE) transport implementation for MCP.
SSETransport.Builder - Class in com.tnsai.mcp.client
Builder for SSETransport.
start() - Method in class com.tnsai.mcp.server.HttpMcpServer
Starts the HTTP server.
start() - Method in class com.tnsai.mcp.server.McpServer
Starts the server and begins processing messages from stdin.
start(InputStream, OutputStream) - Method in class com.tnsai.mcp.server.McpServer
Starts the server with custom input/output streams.
startSpan(String) - Method in class com.tnsai.mcp.observability.LoggingMcpTracer
 
startSpan(String) - Method in interface com.tnsai.mcp.observability.McpTracer
Starts a new root span with the given operation name.
startSpan(String) - Method in class com.tnsai.mcp.observability.NoopMcpTracer
 
startSpan(String, McpSpan) - Method in class com.tnsai.mcp.observability.LoggingMcpTracer
 
startSpan(String, McpSpan) - Method in interface com.tnsai.mcp.observability.McpTracer
Starts a new child span with the given operation name and parent.
startSpan(String, McpSpan) - Method in class com.tnsai.mcp.observability.NoopMcpTracer
 
stdio(String...) - Static method in class com.tnsai.mcp.hub.McpToolBridge
Create a bridge with stdio transport.
Stdio-based MCP Server (npx) - Search tag in class com.tnsai.mcp.hub.McpTool
Section
StdioTransport - Class in com.tnsai.mcp.client
Stdio-based MCP transport that communicates with an external process.
StdioTransport.Builder - Class in com.tnsai.mcp.client
Builder for creating StdioTransport instances with custom configuration.
StdioTransport.DisconnectReason - Record Class in com.tnsai.mcp.client
Reason for a subprocess disconnection.
steps() - Method in record class com.tnsai.mcp.goose.GooseRecipeParser.Recipe
Returns the value of the steps record component.
stop() - Method in class com.tnsai.mcp.server.HttpMcpServer
Stops the HTTP server.
stop() - Method in class com.tnsai.mcp.server.McpServer
Stops the server.
stopSequences(List<String>) - Method in class com.tnsai.mcp.model.SamplingRequest.Builder
 
storeToken(String, PkceFlow.TokenResponse) - Method in class com.tnsai.mcp.auth.McpTokenManager
Stores a token for a given server URL.
StreamableHttpTransport - Class in com.tnsai.mcp.client
Streamable HTTP transport implementation for MCP (spec 2025-03-26).
StreamableHttpTransport.Builder - Class in com.tnsai.mcp.client
Builder for StreamableHttpTransport.
StreamableHttpTransport.SessionExpiredException - Exception Class in com.tnsai.mcp.client
Thrown when the server returns 404 indicating the session has expired.
streamError(String, String) - Static method in record class com.tnsai.mcp.client.StdioTransport.DisconnectReason
Creates a disconnect reason for a stream read failure.
StripeMcpClient - Class in com.tnsai.mcp.stripe
Client for Stripe's MCP server.
StripeMcpClient(McpClient) - Constructor for class com.tnsai.mcp.stripe.StripeMcpClient
Creates a new StripeMcpClient wrapping the given MCP client.
StripePaymentTool - Class in com.tnsai.mcp.stripe
Adapter that wraps StripeMcpClient as a tool-like interface.
StripePaymentTool(StripeMcpClient) - Constructor for class com.tnsai.mcp.stripe.StripePaymentTool
Creates a new StripePaymentTool with the given Stripe MCP client.
Subclass template - Search tag in class com.tnsai.mcp.client.BaseTransport
Section
subscribe(String, ResourceProvider.ResourceChangeListener) - Method in interface com.tnsai.mcp.server.ResourceProvider
Subscribes to changes for a resource.
subscribeResource(String) - Method in class com.tnsai.mcp.client.McpClient
Subscribes to changes for a resource.
success(JsonNode) - Static method in class com.tnsai.mcp.server.ToolProvider.ToolResult
Creates a successful result with JSON content.
supportsLogging() - Method in class com.tnsai.mcp.model.ServerCapabilities
 
supportsPrompts() - Method in class com.tnsai.mcp.model.ServerCapabilities
 
supportsResources() - Method in class com.tnsai.mcp.model.ServerCapabilities
 
supportsSubscription() - Method in interface com.tnsai.mcp.server.ResourceProvider
Checks if this provider supports resource subscriptions.
supportsTools() - Method in class com.tnsai.mcp.model.ServerCapabilities
 
systemPrompt(String) - Method in class com.tnsai.mcp.model.SamplingRequest.Builder
 

T

temperature(double) - Method in class com.tnsai.mcp.model.SamplingRequest.Builder
 
terminateSession(String) - Method in class com.tnsai.mcp.server.McpSessionManager
Terminates a session and closes its SSE stream if active.
text(String) - Static method in class com.tnsai.mcp.server.ToolProvider.ToolResult
Creates a successful result with text content.
text(String, String) - Static method in class com.tnsai.mcp.model.ResourceContent
 
text(String, String, String) - Static method in class com.tnsai.mcp.model.ResourceContent
 
textMessage(String, String) - Static method in class com.tnsai.mcp.server.PromptProvider.PromptMessage
Creates a message with a specific role and text content.
Threading - Search tag in interface com.tnsai.mcp.client.HttpInterceptor
Section
timeout(Duration) - Method in class com.tnsai.mcp.client.StreamableHttpTransport.Builder
Sets the request timeout.
timeout(Duration) - Method in class com.tnsai.mcp.McpServerConfig.Builder
 
TIMEOUT - Enum constant in enum class com.tnsai.mcp.server.event.ToolErrorCategory
 
timeoutSeconds(int) - Method in class com.tnsai.mcp.McpServerConfig.Builder
 
timestamp() - Method in record class com.tnsai.mcp.server.event.ToolErrorEvent
Returns the value of the timestamp record component.
timestamp() - Method in record class com.tnsai.mcp.testing.McpInspectorClient.MessageRecord
Returns the value of the timestamp record component.
TnsAIGooseExtension - Class in com.tnsai.mcp.goose
Makes TnsAI tools available as a Goose extension.
TnsAIGooseExtension.ExtensionManifest - Record Class in com.tnsai.mcp.goose
Represents a Goose-compatible extension manifest.
TnsAIGooseExtension.ExtensionTool - Record Class in com.tnsai.mcp.goose
Represents a tool within a Goose extension manifest.
TnsAIToolProvider - Class in com.tnsai.mcp.server
Bridges TnsAI tools to MCP by implementing ToolProvider.
toDynamicToolMethod(McpToolDefinition) - Method in class com.tnsai.mcp.hub.McpToolBridge
Build a DynamicToolMethod fronting a single MCP tool discovered through this bridge.
toJson(TnsAIGooseExtension.ExtensionManifest) - Static method in class com.tnsai.mcp.goose.TnsAIGooseExtension
Exports an extension manifest as a JSON string.
tokenEndpoint() - Method in record class com.tnsai.mcp.auth.McpOAuthDiscovery.OAuthMetadata
Returns the value of the tokenEndpoint record component.
tokenEndpoint(String) - Method in class com.tnsai.mcp.auth.OAuthMcpTransport.Builder
Sets the OAuth token endpoint for token refresh.
tokenEndpointAuthMethod() - Method in record class com.tnsai.mcp.auth.McpClientRegistration.RegistrationRequest
Returns the value of the tokenEndpointAuthMethod record component.
tokenManager(McpTokenManager) - Method in class com.tnsai.mcp.auth.OAuthMcpTransport.Builder
Sets the token manager.
TokenResponse(String, String, String, long, String, Instant) - Constructor for record class com.tnsai.mcp.auth.PkceFlow.TokenResponse
Creates an instance of a TokenResponse record class.
tokenType() - Method in record class com.tnsai.mcp.auth.PkceFlow.TokenResponse
Returns the value of the tokenType record component.
toMap() - Method in class com.tnsai.mcp.model.McpToolArgs
Returns the raw argument map.
toMcpCalls(GooseRecipeParser.Recipe) - Static method in class com.tnsai.mcp.goose.GooseRecipeParser
Converts recipe steps to a list of MCP tool call parameter maps.
tool() - Method in record class com.tnsai.mcp.goose.GooseRecipeParser.RecipeStep
Returns the value of the tool record component.
TOOL_NOT_FOUND - Enum constant in enum class com.tnsai.mcp.server.event.ToolErrorCategory
 
ToolErrorCategory - Enum Class in com.tnsai.mcp.server.event
Categories of tool execution errors.
ToolErrorEvent - Record Class in com.tnsai.mcp.server.event
Structured error event emitted when an MCP tool execution fails.
ToolErrorEvent(String, ToolErrorCategory, String, Instant, Long) - Constructor for record class com.tnsai.mcp.server.event.ToolErrorEvent
Creates an instance of a ToolErrorEvent record class.
ToolErrorListener - Interface in com.tnsai.mcp.server.event
Listener for tool execution error events.
toolName() - Method in record class com.tnsai.mcp.server.event.ToolErrorEvent
Returns the value of the toolName record component.
ToolProvider - Interface in com.tnsai.mcp.server
Interface for providing tools to an MCP server.
ToolProvider.ToolResult - Class in com.tnsai.mcp.server
Result of a tool execution.
tools() - Method in record class com.tnsai.mcp.goose.TnsAIGooseExtension.ExtensionManifest
Returns the value of the tools record component.
ToolsCapability() - Constructor for class com.tnsai.mcp.model.ServerCapabilities.ToolsCapability
 
toServerEntries() - Method in class com.tnsai.mcp.composio.ComposioDiscovery
Converts discovered Composio apps to MCP server entries for registry integration.
toServerEntry(GooseExtensionLoader.GooseExtension) - Method in class com.tnsai.mcp.goose.GooseExtensionLoader
Converts a Goose extension to an MCP server entry.
toString() - Method in record class com.tnsai.mcp.auth.McpClientRegistration.RegistrationRequest
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.mcp.auth.McpClientRegistration.RegistrationResponse
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.mcp.auth.McpOAuthDiscovery.OAuthMetadata
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.mcp.auth.PkceFlow.PkceChallenge
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.mcp.auth.PkceFlow.TokenResponse
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.mcp.client.StdioTransport.DisconnectReason
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.mcp.composio.ComposioClient.ComposioApp
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.mcp.composio.ComposioClient.ComposioTool
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.mcp.composio.ComposioClient.ConnectionStatus
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.mcp.goose.GooseExtensionLoader.GooseExtension
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.mcp.goose.GooseRecipeParser.Recipe
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.mcp.goose.GooseRecipeParser.RecipeStep
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.mcp.goose.TnsAIGooseExtension.ExtensionManifest
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.mcp.goose.TnsAIGooseExtension.ExtensionTool
Returns a string representation of this record class.
toString() - Method in class com.tnsai.mcp.McpServerConfig
 
toString() - Method in class com.tnsai.mcp.model.CompletionResponse
 
toString() - Method in enum class com.tnsai.mcp.model.LogLevel
 
toString() - Method in class com.tnsai.mcp.model.LogMessage
 
toString() - Method in class com.tnsai.mcp.model.McpToolArgs
 
toString() - Method in class com.tnsai.mcp.model.McpToolDefinition
 
toString() - Method in class com.tnsai.mcp.model.PaginatedResult
 
toString() - Method in class com.tnsai.mcp.model.ProgressNotification
 
toString() - Method in class com.tnsai.mcp.model.Prompt.PromptArgument
 
toString() - Method in class com.tnsai.mcp.model.Prompt
 
toString() - Method in class com.tnsai.mcp.model.Resource
 
toString() - Method in class com.tnsai.mcp.model.ResourceContent
 
toString() - Method in class com.tnsai.mcp.model.ResourceTemplate
 
toString() - Method in class com.tnsai.mcp.model.Root
 
toString() - Method in class com.tnsai.mcp.model.SamplingMessage
 
toString() - Method in class com.tnsai.mcp.model.SamplingResponse
 
toString() - Method in class com.tnsai.mcp.model.ServerCapabilities
 
toString() - Method in record class com.tnsai.mcp.registry.McpServerEntry
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.mcp.server.event.ToolErrorEvent
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.mcp.server.McpRequestHandler.HandlerResult.Error
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.mcp.server.McpRequestHandler.HandlerResult.Notification
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.mcp.server.McpRequestHandler.HandlerResult.Response
Returns a string representation of this record class.
toString() - Method in record class com.tnsai.mcp.testing.McpInspectorClient.MessageRecord
Returns a string representation of this record class.
toTnsAITools() - Method in class com.tnsai.mcp.hub.McpToolBridge
Convert MCP tools to TnsAI tool definitions.
touch() - Method in class com.tnsai.mcp.server.McpSession
Updates the last access timestamp to now.
TracingMcpClient - Class in com.tnsai.mcp.observability
Decorator that adds tracing and metrics collection to an McpClient.
TracingMcpClient(McpClient, McpTracer) - Constructor for class com.tnsai.mcp.observability.TracingMcpClient
Creates a tracing client without metrics collection.
TracingMcpClient(McpClient, McpTracer, McpMetricsCollector) - Constructor for class com.tnsai.mcp.observability.TracingMcpClient
Creates a tracing client with metrics collection.
transport() - Method in record class com.tnsai.mcp.registry.McpServerEntry
Returns the value of the transport record component.
transport(McpTransport) - Method in class com.tnsai.mcp.client.McpClient.Builder
Sets the transport to use.
TransportDetector - Class in com.tnsai.mcp.client
Auto-detects the best MCP transport for a given endpoint.
type() - Method in record class com.tnsai.mcp.goose.GooseExtensionLoader.GooseExtension
Returns the value of the type record component.

U

UnifiedMcpRegistry - Class in com.tnsai.mcp.registry
Unified MCP registry that aggregates results from multiple registry sources.
UnifiedMcpRegistry() - Constructor for class com.tnsai.mcp.registry.UnifiedMcpRegistry
Creates a UnifiedMcpRegistry with all default registry sources and default cache TTL.
UnifiedMcpRegistry(List<McpRegistrySource>, Duration) - Constructor for class com.tnsai.mcp.registry.UnifiedMcpRegistry
Creates a UnifiedMcpRegistry with specified sources and cache TTL.
unsubscribe(String) - Method in interface com.tnsai.mcp.server.ResourceProvider
Unsubscribes from changes for a resource.
unsubscribeResource(String) - Method in class com.tnsai.mcp.client.McpClient
Unsubscribes from changes for a resource.
uri(String) - Method in class com.tnsai.mcp.model.Resource.Builder
 
uriTemplate(String) - Method in class com.tnsai.mcp.model.ResourceTemplate.Builder
 
Usage - Search tag in class com.tnsai.mcp.client.SSETransport
Section
Usage - Search tag in class com.tnsai.mcp.client.StreamableHttpTransport
Section
Usage - Search tag in class com.tnsai.mcp.client.TransportDetector
Section
Usage - Search tag in class com.tnsai.mcp.model.McpToolArgs
Section
Usage - Search tag in class com.tnsai.mcp.server.TnsAIToolProvider
Section
Usage - Search tag in class com.tnsai.mcp.testing.McpInspectorClient
Section
Usage - Search tag in class com.tnsai.mcp.testing.McpSchemaValidator
Section
Usage - Search tag in class com.tnsai.mcp.testing.McpServerTestKit
Section
Usage - Search tag in class com.tnsai.mcp.testing.MockMcpServer
Section
Usage - Search tag in class com.tnsai.mcp.testing.MockMcpTransport
Section
Usage Examples - Search tag in class com.tnsai.mcp.hub.McpTool
Section
Usage Examples - Search tag in class com.tnsai.mcp.hub.McpToolBridge
Section
user(String) - Static method in class com.tnsai.mcp.model.SamplingMessage
 
user(String) - Static method in class com.tnsai.mcp.server.PromptProvider.PromptMessage
Creates a user message with text content.
Use with TnsAI agents - Search tag in class com.tnsai.mcp.hub.McpToolBridge
Section

V

validateRequest(String) - Static method in class com.tnsai.mcp.testing.McpSchemaValidator
Validates a JSON-RPC request message.
validateResponse(String) - Static method in class com.tnsai.mcp.testing.McpSchemaValidator
Validates a JSON-RPC response message.
validateToolDefinition(JsonNode) - Static method in class com.tnsai.mcp.testing.McpSchemaValidator
Validates an MCP tool definition.
valueOf(String) - Static method in enum class com.tnsai.mcp.model.LogLevel
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.tnsai.mcp.observability.McpSpan.SpanStatus
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.tnsai.mcp.server.event.ToolErrorCategory
Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.tnsai.mcp.model.LogLevel
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.tnsai.mcp.observability.McpSpan.SpanStatus
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.tnsai.mcp.server.event.ToolErrorCategory
Returns an array containing the constants of this enum class, in the order they are declared.
verifyApiKey() - Method in class com.tnsai.mcp.composio.ComposioAuthBridge
Verifies that the API key is valid by making a test API call.
version() - Method in record class com.tnsai.mcp.goose.TnsAIGooseExtension.ExtensionManifest
Returns the value of the version record component.
version() - Method in record class com.tnsai.mcp.registry.McpServerEntry
Returns the value of the version record component.

W

warning(String, String) - Static method in class com.tnsai.mcp.model.LogMessage
 
WARNING - Enum constant in enum class com.tnsai.mcp.model.LogLevel
 
What it enables - Search tag in interface com.tnsai.mcp.client.HttpInterceptor
Section
whenPrompt(String, JsonNode) - Method in class com.tnsai.mcp.testing.MockMcpServer
Registers a prompt handler that returns the given result.
whenResource(String, String) - Method in class com.tnsai.mcp.testing.MockMcpServer
Registers a resource with text content.
whenTool(String, Function<Map<String, Object>, JsonNode>) - Method in class com.tnsai.mcp.testing.MockMcpServer
Registers a tool handler function.
whenToolReturns(String, JsonNode) - Method in class com.tnsai.mcp.testing.MockMcpServer
Registers a tool that always returns the given result.
whenToolThrows(String, int, String) - Method in class com.tnsai.mcp.testing.MockMcpServer
Registers a tool that always throws an error.
withApiKey(String, String) - Static method in class com.tnsai.mcp.client.HttpTransport
Convenience constructor with API key.
withApiKey(String, String) - Static method in class com.tnsai.mcp.client.StreamableHttpTransport
Creates a StreamableHttpTransport with API key authentication.
withApiKey(String, String, String) - Static method in class com.tnsai.mcp.client.HttpTransport
Convenience constructor with API key header name.
withApiKey(String, String, String) - Static method in class com.tnsai.mcp.client.SSETransport
Creates an SSETransport with API key authentication.
workingDirectory(String) - Method in class com.tnsai.mcp.client.StdioTransport.Builder
Sets the working directory for the process.
wrap(Map<String, Object>) - Static method in class com.tnsai.mcp.model.McpToolArgs
Wraps an existing argument map for typed access.
Wrap filesystem MCP server - Search tag in class com.tnsai.mcp.hub.McpToolBridge
Section
Wrap HTTP-based MCP server - Search tag in class com.tnsai.mcp.hub.McpToolBridge
Section
A B C D E F G H I J L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form