Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(router *swagger.RouteGroup, handler *Handler, localHandler *local.Handler, transportHandler *local.TransportHandler)
RegisterRoutes registers all MCP configuration routes with swagger documentation
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles MCP configuration HTTP requests
func (*Handler) GetLocalHandler ¶ added in v0.260414.2000
GetLocalHandler returns the local mode handler
func (*Handler) GetMCPRuntimeConfig ¶
GetMCPRuntimeConfig returns the global MCP runtime configuration
func (*Handler) GetTransportHandler ¶ added in v0.260414.2000
func (h *Handler) GetTransportHandler() *local.TransportHandler
GetTransportHandler returns the transport handler for local mode
func (*Handler) IsMCPEnabled ¶ added in v0.260414.2000
IsMCPEnabled checks if MCP feature is enabled via scenario flag
func (*Handler) SetMCPRuntimeConfig ¶
SetMCPRuntimeConfig sets the global MCP runtime configuration
type MCPRuntimeConfigRequest ¶
type MCPRuntimeConfigRequest struct {
Sources []typ.MCPSourceConfig `json:"sources,omitempty"`
RequestTimeout int `json:"request_timeout,omitempty"` // seconds, default: 30
}
MCPRuntimeConfigRequest is the API request for setting MCP runtime config
type MCPRuntimeConfigResponse ¶
type MCPRuntimeConfigResponse struct {
Success bool `json:"success"`
Config *typ.MCPRuntimeConfig `json:"config,omitempty"`
Error string `json:"error,omitempty"`
}
MCPRuntimeConfigResponse is the API response for MCP runtime config
Click to show internal directories.
Click to hide internal directories.