Documentation
¶
Overview ¶
Package sdkclient adapts an official MCP SDK server session to loom-mcp's transport-neutral server-to-client runtime contracts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InputRequired ¶
func InputRequired(err error) (mcp.InputRequestMap, string, bool)
InputRequired extracts an official SDK input-required result from err.
func WithClientFeatures ¶
func WithClientFeatures(ctx context.Context, session *mcp.ServerSession, opts ClientFeaturesOptions) context.Context
WithClientFeatures stores all supported SDK-backed client feature adapters in ctx. A nil session leaves ctx unchanged.
Types ¶
type ClientFeaturesOptions ¶
type ClientFeaturesOptions struct {
// InputResponses contains client responses supplied on this retry.
InputResponses mcp.InputResponseMap
// RequestState is the opaque state returned by the previous input-required
// result.
RequestState string
// RequestStateKey is the stable 32-byte key used to encrypt and authenticate
// request state. Replicas that serve the same MCP endpoint must share it.
RequestStateKey []byte
// RequestMethod and RequestParams bind state to the original logical
// request, preventing replay against another operation or payload.
RequestMethod string
RequestParams any
}
ClientFeaturesOptions configures official MCP multi-round-trip input state.
Click to show internal directories.
Click to hide internal directories.