Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWithSDK ¶ added in v0.2.0
func NewWithSDK(_ any, downloads DownloadManager, logger *slog.Logger, service application.SDKService, request application.SDKClientRequest) *mcp.Server
NewWithSDK 通过公共 SDK 为每个 MCP tool 建立独立 operation snapshot。 首个参数仅是已废弃的兼容占位,绝不构成内容、认证或资源调用链。
func NewWithSDKDownloadFactory ¶ added in v0.3.0
func NewWithSDKDownloadFactory(downloads DownloadManager, newDownloads func(application.SDKClient) DownloadManager, logger *slog.Logger, service application.SDKService, request application.SDKClientRequest) *mcp.Server
NewWithSDKDownloadFactory 为生产 MCP 注入 snapshot-scoped 下载器构造器。
Types ¶
type DownloadManager ¶
type DownloadManager interface {
SetDownloadPath(string) error
Download(context.Context, application.DownloadRequest) ([]download.DownloadedArtwork, error)
}
Click to show internal directories.
Click to hide internal directories.