Documentation
¶
Index ¶
- func GetContext(ctx context.Context) (context.Context, scene.Context)
- func NewSSEScene(name string, version string, addr string, apps []McpApp, sseOpts []SSEOption, ...) scene.Scene
- func WithResourceHandlerMiddleware(mw server.ResourceHandlerMiddleware) server.ServerOption
- func WithSSEContextFunc(fn server.SSEContextFunc) server.SSEOption
- func WithToolFilter(filter server.ToolFilterFunc) server.ServerOption
- func WithToolHandlerMiddleware(mw server.ToolHandlerMiddleware) server.ServerOption
- type McpApp
- type SSEOption
- type SSEScene
- type ServerOption
- type StructureArray
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSSEScene ¶
func WithResourceHandlerMiddleware ¶
func WithResourceHandlerMiddleware(mw server.ResourceHandlerMiddleware) server.ServerOption
func WithSSEContextFunc ¶
func WithSSEContextFunc(fn server.SSEContextFunc) server.SSEOption
func WithToolFilter ¶
func WithToolFilter(filter server.ToolFilterFunc) server.ServerOption
func WithToolHandlerMiddleware ¶
func WithToolHandlerMiddleware(mw server.ToolHandlerMiddleware) server.ServerOption
Types ¶
type SSEScene ¶
type SSEScene struct {
// contains filtered or unexported fields
}
func (*SSEScene) ListAppNames ¶
type ServerOption ¶
type ServerOption = server.ServerOption
type StructureArray ¶
func WrapArray ¶
func WrapArray[T any](array []T) StructureArray[T]
Click to show internal directories.
Click to hide internal directories.