Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeProtocols ¶ added in v1.9.0
func InitializeProtocols(opts ProtocolOptions)
InitializeProtocols performs version-specific protocol setup across all supported MCP versions.
func NotificationHandler ¶
NotificationHandler process notifications request. It MUST NOT send a response. Currently Toolbox does not process any notifications.
func ProcessMethod ¶
func ProcessMethod(ctx context.Context, mcpVersion string, id jsonrpc.RequestId, method string, g group.Group, primitiveMgr *primitives.PrimitiveManager, body []byte, header http.Header) (any, error)
ProcessMethod returns a response for the request. This is the Operation phase of the lifecycle for MCP client-server connections.
Types ¶
type ProtocolOptions ¶ added in v1.9.0
type ProtocolOptions struct {
DisableExt []string
}
ProtocolOptions contains configuration passed during server initialization to protocol handlers.
Click to show internal directories.
Click to hide internal directories.