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 String
Additional authentication headers in JSON formatprivate String
Authentication token for server accessprivate String
Authentication type (bearer, basic, api_key, etc.)private Boolean
Whether to auto-start the serverprivate String
Available prompts in JSON formatprivate String
Available resources in JSON formatprivate String
Available tools/functions in JSON formatprivate String
Server capabilities in JSON formatprivate String
Server configuration in JSON formatprivate Integer
Connection timeout in millisecondsprivate String
MCP Server descriptionprivate Boolean
Whether the server is enabledprivate String
Environment variables for the server in JSON formatprivate Integer
Health check interval in secondsprivate String
Health check URLprivate String
Server host/hostnameprivate ZonedDateTime
Last connection timeprivate String
Last error messageprivate ZonedDateTime
Last health check timeprivate Integer
Maximum number of retry attemptsprivate String
Additional metadata in JSON formatprivate String
MCP Server nameprivate Integer
Server portprivate Integer
Priority for server selection (higher number = higher priority)private String
Connection protocol (http, https, websocket, etc.)private Integer
Read timeout in millisecondsprivate String
Connection URI/URL for the MCP serverprivate String
MCP Server versionprivate String
Server status (ACTIVE, INACTIVE, ERROR, CONNECTING, etc.)private String
Tags for categorization and filteringprivate String
Type of MCP serverprivate String
Usage 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()
-