Class McpServerEntity
java.lang.Object
com.bytedesk.core.base.BaseEntity
com.bytedesk.ai.springai.mcp_server.McpServerEntity
- All Implemented Interfaces:
Serializable
McpServer entity for Model Context Protocol server configuration and management
Stores MCP server connection details, capabilities, and runtime information
Database Table: bytedesk_ai_mcp_server
Purpose: Stores MCP server definitions, connection settings, and capability information
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringAdditional authentication headers in JSON formatprivate StringAuthentication token for server accessprivate StringAuthentication type (bearer, basic, api_key, etc.)private BooleanWhether to auto-start the serverprivate StringAvailable prompts in JSON formatprivate StringAvailable resources in JSON formatprivate StringAvailable tools/functions in JSON formatprivate StringServer capabilities in JSON formatprivate StringServer configuration in JSON formatprivate IntegerConnection timeout in millisecondsprivate StringMCP Server descriptionprivate BooleanWhether the server is enabledprivate StringEnvironment variables for the server in JSON formatprivate IntegerHealth check interval in secondsprivate StringHealth check URLprivate StringServer host/hostnameprivate ZonedDateTimeLast connection timeprivate StringLast error messageprivate ZonedDateTimeLast health check timeprivate IntegerMaximum number of retry attemptsprivate StringAdditional metadata in JSON formatprivate StringMCP Server nameprivate IntegerServer portprivate IntegerPriority for server selection (higher number = higher priority)private StringConnection protocol (http, https, websocket, etc.)private IntegerRead timeout in millisecondsprivate StringConnection URI/URL for the MCP serverprivate StringMCP Server versionprivate StringServer status (ACTIVE, INACTIVE, ERROR, CONNECTING, etc.)private StringTags for categorization and filteringprivate StringType of MCP serverprivate StringUsage statistics in JSON format -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.bytedesk.core.base.BaseEntity
getCreatedAtString, getUpdatedAtString
-
Field Details
-
name
MCP Server name -
description
MCP Server description -
type
Type of MCP server -
serverVersion
MCP Server version -
serverUrl
Connection URI/URL for the MCP server -
host
Server host/hostname -
port
Server port -
protocol
Connection protocol (http, https, websocket, etc.) -
authToken
Authentication token for server access -
authType
Authentication type (bearer, basic, api_key, etc.) -
authHeaders
Additional authentication headers in JSON format -
connectionTimeout
Connection timeout in milliseconds -
readTimeout
Read timeout in milliseconds -
maxRetries
Maximum number of retry attempts -
capabilities
Server capabilities in JSON format -
availableTools
Available tools/functions in JSON format -
availableResources
Available resources in JSON format -
availablePrompts
Available prompts in JSON format -
configJson
Server configuration in JSON format -
environmentVars
Environment variables for the server in JSON format -
status
Server status (ACTIVE, INACTIVE, ERROR, CONNECTING, etc.) -
enabled
Whether the server is enabled -
autoStart
Whether to auto-start the server -
healthCheckUrl
Health check URL -
healthCheckInterval
Health check interval in seconds -
lastHealthCheck
Last health check time -
lastConnected
Last connection time -
lastError
Last error message -
priority
Priority for server selection (higher number = higher priority) -
tags
Tags for categorization and filtering -
metadata
Additional metadata in JSON format -
usageStats
Usage statistics in JSON format
-
-
Constructor Details
-
McpServerEntity
public McpServerEntity()
-