Class McpServerEntity

java.lang.Object
com.bytedesk.core.base.BaseEntity
com.bytedesk.ai.springai.mcp_server.McpServerEntity
All Implemented Interfaces:
Serializable

@Entity public class McpServerEntity extends BaseEntity
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 Details

    • name

      private String name
      MCP Server name
    • description

      private String description
      MCP Server description
    • type

      private String type
      Type of MCP server
    • serverVersion

      private String serverVersion
      MCP Server version
    • serverUrl

      private String serverUrl
      Connection URI/URL for the MCP server
    • host

      private String host
      Server host/hostname
    • port

      private Integer port
      Server port
    • protocol

      private String protocol
      Connection protocol (http, https, websocket, etc.)
    • authToken

      private String authToken
      Authentication token for server access
    • authType

      private String authType
      Authentication type (bearer, basic, api_key, etc.)
    • authHeaders

      private String authHeaders
      Additional authentication headers in JSON format
    • connectionTimeout

      private Integer connectionTimeout
      Connection timeout in milliseconds
    • readTimeout

      private Integer readTimeout
      Read timeout in milliseconds
    • maxRetries

      private Integer maxRetries
      Maximum number of retry attempts
    • capabilities

      private String capabilities
      Server capabilities in JSON format
    • availableTools

      private String availableTools
      Available tools/functions in JSON format
    • availableResources

      private String availableResources
      Available resources in JSON format
    • availablePrompts

      private String availablePrompts
      Available prompts in JSON format
    • configJson

      private String configJson
      Server configuration in JSON format
    • environmentVars

      private String environmentVars
      Environment variables for the server in JSON format
    • status

      private String status
      Server status (ACTIVE, INACTIVE, ERROR, CONNECTING, etc.)
    • enabled

      private Boolean enabled
      Whether the server is enabled
    • autoStart

      private Boolean autoStart
      Whether to auto-start the server
    • healthCheckUrl

      private String healthCheckUrl
      Health check URL
    • healthCheckInterval

      private Integer healthCheckInterval
      Health check interval in seconds
    • lastHealthCheck

      private ZonedDateTime lastHealthCheck
      Last health check time
    • lastConnected

      private ZonedDateTime lastConnected
      Last connection time
    • lastError

      private String lastError
      Last error message
    • priority

      private Integer priority
      Priority for server selection (higher number = higher priority)
    • tags

      private String tags
      Tags for categorization and filtering
    • metadata

      private String metadata
      Additional metadata in JSON format
    • usageStats

      private String usageStats
      Usage statistics in JSON format
  • Constructor Details

    • McpServerEntity

      public McpServerEntity()