Versions in this module Expand all Collapse all v0 v0.5.0 Mar 15, 2026 v0.4.0 May 31, 2025 Changes in this version + type MLService struct + Context context.Context + Logger zerolog.Logger + func NewMLService(ctx context.Context, logger zerolog.Logger, cfg *config.MoLingConfig) MLService + func (mls *MLService) AddNotificationHandler(name string, handler server.NotificationHandlerFunc) + func (mls *MLService) AddPrompt(pe PromptEntry) + func (mls *MLService) AddResource(rs mcp.Resource, hr server.ResourceHandlerFunc) + func (mls *MLService) AddResourceTemplate(rt mcp.ResourceTemplate, hr server.ResourceTemplateHandlerFunc) + func (mls *MLService) AddTool(tool mcp.Tool, handler server.ToolHandlerFunc) + func (mls *MLService) Config() string + func (mls *MLService) Ctx() context.Context + func (mls *MLService) InitResources() error + func (mls *MLService) LoadConfig(jsonData map[string]any) error + func (mls *MLService) MlConfig() *config.MoLingConfig + func (mls *MLService) Name() string + func (mls *MLService) NotificationHandlers() map[string]server.NotificationHandlerFunc + func (mls *MLService) Prompts() []PromptEntry + func (mls *MLService) ResourceTemplates() map[mcp.ResourceTemplate]server.ResourceTemplateHandlerFunc + func (mls *MLService) Resources() map[mcp.Resource]server.ResourceHandlerFunc + func (mls *MLService) Tools() []server.ServerTool + type PromptEntry struct + HandlerFunc server.PromptHandlerFunc + PromptVar mcp.Prompt + func (pe *PromptEntry) Handler() server.PromptHandlerFunc + func (pe *PromptEntry) Prompt() mcp.Prompt + type Service interface + Close func() error + Config func() string + Ctx func() context.Context + Init func() error + LoadConfig func(jsonData map[string]any) error + MlConfig func() *config.MoLingConfig + Name func() comm.MoLingServerType + NotificationHandlers func() map[string]server.NotificationHandlerFunc + Prompts func() []PromptEntry + ResourceTemplates func() map[mcp.ResourceTemplate]server.ResourceTemplateHandlerFunc + Resources func() map[mcp.Resource]server.ResourceHandlerFunc + Tools func() []server.ServerTool + type ServiceFactory func(ctx context.Context) (Service, error)