Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMcpServerWithSseTransport ¶
func NewMcpServerWithSseTransport(config McpServerConfig) (*mcpServer, error)
func NewMcpServerWithStdioTransport ¶
func NewMcpServerWithStdioTransport(config McpServerConfig) (*mcpServer, error)
Types ¶
type McpServerConfig ¶
type McpServerConfig struct {
Name string
Version string
Instructions string
SseServerBasePath string
SseServerAddr string
// For security reasons, restrict allowed origins and hosts for SSE connections
SseServerAllowedOriginsPrefix []string
SseServerAllowedHosts []string
}
func DefaultMcpServerConfig ¶
func DefaultMcpServerConfig() McpServerConfig
Click to show internal directories.
Click to hide internal directories.