Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrServerNotFound = errors.New("MCP server not found")
)
Errors
Functions ¶
func NewMCPModule ¶
NewMCPModule creates a new MCP module
Types ¶
type ErrorResponse ¶
ErrorResponse is the standard error response
type HealthResponse ¶
type HealthResponse struct {
Status string `json:"status"`
Servers map[string]ServerHealth `json:"servers"`
}
HealthResponse is the response for health check
type MCPCapabilities ¶
MCPCapabilities describes what an MCP server can do
type MCPExamples ¶
type MCPExamples struct {
StdioUsage []string `json:"stdioUsage,omitempty"`
HTTPUsage []string `json:"httpUsage,omitempty"`
ClaudeDesktopConfig map[string]any `json:"claudeDesktopConfig,omitempty"`
}
MCPExamples provides usage examples
type MCPModule ¶
type MCPModule struct {
// contains filtered or unexported fields
}
MCPModule represents the MCP module that manages all MCP servers
func (*MCPModule) GetUnifiedServer ¶
GetUnifiedServer returns the unified MCP server
func (*MCPModule) RegisterPrivateRoutes ¶
RegisterPrivateRoutes registers MCP endpoints (requires JWT or API-key authentication)
func (*MCPModule) RegisterPublicRoutes ¶
RegisterPublicRoutes - MCP module has no public routes
type MCPServerInfo ¶
type MCPServerInfo struct {
Name string `json:"name"`
Description string `json:"description"`
Version string `json:"version"`
Status string `json:"status"` // running, stopped, error
Transports []string `json:"transports"`
HTTPEndpoint string `json:"httpEndpoint,omitempty"`
StdioCommand string `json:"stdioCommand,omitempty"`
Capabilities MCPCapabilities `json:"capabilities"`
Examples *MCPExamples `json:"examples,omitempty"`
}
MCPServerInfo contains information about an MCP server
type ServerHealth ¶
type ServerHealth struct {
Status string `json:"status"`
Transports map[string]string `json:"transports,omitempty"`
}
ServerHealth contains health information for a server
type ServersResponse ¶
type ServersResponse struct {
Servers []MCPServerInfo `json:"servers"`
Count int `json:"count"`
}
ServersResponse is the response for listing servers
Click to show internal directories.
Click to hide internal directories.