Documentation
¶
Index ¶
- type Client
- func (a *Client) McpDelete(params *McpDeleteParams, authInfo runtime.ClientAuthInfoWriter, ...) (*McpDeleteOK, error)
- func (a *Client) McpGet(params *McpGetParams, authInfo runtime.ClientAuthInfoWriter, ...) (*McpGetOK, error)
- func (a *Client) McpPost(params *McpPostParams, authInfo runtime.ClientAuthInfoWriter, ...) (*McpPostOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type McpDeleteOK
- func (o *McpDeleteOK) Code() int
- func (o *McpDeleteOK) Error() string
- func (o *McpDeleteOK) IsClientError() bool
- func (o *McpDeleteOK) IsCode(code int) bool
- func (o *McpDeleteOK) IsRedirect() bool
- func (o *McpDeleteOK) IsServerError() bool
- func (o *McpDeleteOK) IsSuccess() bool
- func (o *McpDeleteOK) String() string
- type McpDeleteParams
- func (o *McpDeleteParams) SetContext(ctx context.Context)
- func (o *McpDeleteParams) SetDefaults()
- func (o *McpDeleteParams) SetHTTPClient(client *http.Client)
- func (o *McpDeleteParams) SetTimeout(timeout time.Duration)
- func (o *McpDeleteParams) WithContext(ctx context.Context) *McpDeleteParams
- func (o *McpDeleteParams) WithDefaults() *McpDeleteParams
- func (o *McpDeleteParams) WithHTTPClient(client *http.Client) *McpDeleteParams
- func (o *McpDeleteParams) WithTimeout(timeout time.Duration) *McpDeleteParams
- func (o *McpDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type McpDeleteReader
- type McpGetOK
- type McpGetParams
- func (o *McpGetParams) SetContext(ctx context.Context)
- func (o *McpGetParams) SetDefaults()
- func (o *McpGetParams) SetHTTPClient(client *http.Client)
- func (o *McpGetParams) SetTimeout(timeout time.Duration)
- func (o *McpGetParams) WithContext(ctx context.Context) *McpGetParams
- func (o *McpGetParams) WithDefaults() *McpGetParams
- func (o *McpGetParams) WithHTTPClient(client *http.Client) *McpGetParams
- func (o *McpGetParams) WithTimeout(timeout time.Duration) *McpGetParams
- func (o *McpGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type McpGetReader
- type McpPostOK
- func (o *McpPostOK) Code() int
- func (o *McpPostOK) Error() string
- func (o *McpPostOK) IsClientError() bool
- func (o *McpPostOK) IsCode(code int) bool
- func (o *McpPostOK) IsRedirect() bool
- func (o *McpPostOK) IsServerError() bool
- func (o *McpPostOK) IsSuccess() bool
- func (o *McpPostOK) String() string
- type McpPostParams
- func (o *McpPostParams) SetContext(ctx context.Context)
- func (o *McpPostParams) SetDefaults()
- func (o *McpPostParams) SetHTTPClient(client *http.Client)
- func (o *McpPostParams) SetTimeout(timeout time.Duration)
- func (o *McpPostParams) WithContext(ctx context.Context) *McpPostParams
- func (o *McpPostParams) WithDefaults() *McpPostParams
- func (o *McpPostParams) WithHTTPClient(client *http.Client) *McpPostParams
- func (o *McpPostParams) WithTimeout(timeout time.Duration) *McpPostParams
- func (o *McpPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type McpPostReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for mcp API
func (*Client) McpDelete ¶
func (a *Client) McpDelete(params *McpDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*McpDeleteOK, error)
McpDelete Terminates an MCP session.
func (*Client) McpGet ¶
func (a *Client) McpGet(params *McpGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*McpGetOK, error)
McpGet Opens an SSE stream for receiving MCP server-sent events.
func (*Client) McpPost ¶
func (a *Client) McpPost(params *McpPostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*McpPostOK, error)
McpPost MCP Streamable HTTP endpoint. Handles JSON-RPC requests for tool discovery and invocation.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface {
McpDelete(params *McpDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*McpDeleteOK, error)
McpGet(params *McpGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*McpGetOK, error)
McpPost(params *McpPostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*McpPostOK, error)
SetTransport(transport runtime.ClientTransport)
}
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new mcp API client.
type McpDeleteOK ¶
type McpDeleteOK struct {
}
McpDeleteOK describes a response with status code 200, with default header values.
Session terminated
func NewMcpDeleteOK ¶
func NewMcpDeleteOK() *McpDeleteOK
NewMcpDeleteOK creates a McpDeleteOK with default headers values
func (*McpDeleteOK) Code ¶
func (o *McpDeleteOK) Code() int
Code gets the status code for the mcp delete o k response
func (*McpDeleteOK) Error ¶
func (o *McpDeleteOK) Error() string
func (*McpDeleteOK) IsClientError ¶
func (o *McpDeleteOK) IsClientError() bool
IsClientError returns true when this mcp delete o k response has a 4xx status code
func (*McpDeleteOK) IsCode ¶
func (o *McpDeleteOK) IsCode(code int) bool
IsCode returns true when this mcp delete o k response a status code equal to that given
func (*McpDeleteOK) IsRedirect ¶
func (o *McpDeleteOK) IsRedirect() bool
IsRedirect returns true when this mcp delete o k response has a 3xx status code
func (*McpDeleteOK) IsServerError ¶
func (o *McpDeleteOK) IsServerError() bool
IsServerError returns true when this mcp delete o k response has a 5xx status code
func (*McpDeleteOK) IsSuccess ¶
func (o *McpDeleteOK) IsSuccess() bool
IsSuccess returns true when this mcp delete o k response has a 2xx status code
func (*McpDeleteOK) String ¶
func (o *McpDeleteOK) String() string
type McpDeleteParams ¶
type McpDeleteParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
McpDeleteParams contains all the parameters to send to the API endpoint
for the mcp delete operation. Typically these are written to a http.Request.
func NewMcpDeleteParams ¶
func NewMcpDeleteParams() *McpDeleteParams
NewMcpDeleteParams creates a new McpDeleteParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewMcpDeleteParamsWithContext ¶
func NewMcpDeleteParamsWithContext(ctx context.Context) *McpDeleteParams
NewMcpDeleteParamsWithContext creates a new McpDeleteParams object with the ability to set a context for a request.
func NewMcpDeleteParamsWithHTTPClient ¶
func NewMcpDeleteParamsWithHTTPClient(client *http.Client) *McpDeleteParams
NewMcpDeleteParamsWithHTTPClient creates a new McpDeleteParams object with the ability to set a custom HTTPClient for a request.
func NewMcpDeleteParamsWithTimeout ¶
func NewMcpDeleteParamsWithTimeout(timeout time.Duration) *McpDeleteParams
NewMcpDeleteParamsWithTimeout creates a new McpDeleteParams object with the ability to set a timeout on a request.
func (*McpDeleteParams) SetContext ¶
func (o *McpDeleteParams) SetContext(ctx context.Context)
SetContext adds the context to the mcp delete params
func (*McpDeleteParams) SetDefaults ¶
func (o *McpDeleteParams) SetDefaults()
SetDefaults hydrates default values in the mcp delete params (not the query body).
All values with no default are reset to their zero value.
func (*McpDeleteParams) SetHTTPClient ¶
func (o *McpDeleteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the mcp delete params
func (*McpDeleteParams) SetTimeout ¶
func (o *McpDeleteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the mcp delete params
func (*McpDeleteParams) WithContext ¶
func (o *McpDeleteParams) WithContext(ctx context.Context) *McpDeleteParams
WithContext adds the context to the mcp delete params
func (*McpDeleteParams) WithDefaults ¶
func (o *McpDeleteParams) WithDefaults() *McpDeleteParams
WithDefaults hydrates default values in the mcp delete params (not the query body).
All values with no default are reset to their zero value.
func (*McpDeleteParams) WithHTTPClient ¶
func (o *McpDeleteParams) WithHTTPClient(client *http.Client) *McpDeleteParams
WithHTTPClient adds the HTTPClient to the mcp delete params
func (*McpDeleteParams) WithTimeout ¶
func (o *McpDeleteParams) WithTimeout(timeout time.Duration) *McpDeleteParams
WithTimeout adds the timeout to the mcp delete params
func (*McpDeleteParams) WriteToRequest ¶
func (o *McpDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type McpDeleteReader ¶
type McpDeleteReader struct {
// contains filtered or unexported fields
}
McpDeleteReader is a Reader for the McpDelete structure.
func (*McpDeleteReader) ReadResponse ¶
func (o *McpDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type McpGetOK ¶
type McpGetOK struct {
}
McpGetOK describes a response with status code 200, with default header values.
SSE event stream
func NewMcpGetOK ¶
func NewMcpGetOK() *McpGetOK
NewMcpGetOK creates a McpGetOK with default headers values
func (*McpGetOK) IsClientError ¶
IsClientError returns true when this mcp get o k response has a 4xx status code
func (*McpGetOK) IsCode ¶
IsCode returns true when this mcp get o k response a status code equal to that given
func (*McpGetOK) IsRedirect ¶
IsRedirect returns true when this mcp get o k response has a 3xx status code
func (*McpGetOK) IsServerError ¶
IsServerError returns true when this mcp get o k response has a 5xx status code
type McpGetParams ¶
type McpGetParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
McpGetParams contains all the parameters to send to the API endpoint
for the mcp get operation. Typically these are written to a http.Request.
func NewMcpGetParams ¶
func NewMcpGetParams() *McpGetParams
NewMcpGetParams creates a new McpGetParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewMcpGetParamsWithContext ¶
func NewMcpGetParamsWithContext(ctx context.Context) *McpGetParams
NewMcpGetParamsWithContext creates a new McpGetParams object with the ability to set a context for a request.
func NewMcpGetParamsWithHTTPClient ¶
func NewMcpGetParamsWithHTTPClient(client *http.Client) *McpGetParams
NewMcpGetParamsWithHTTPClient creates a new McpGetParams object with the ability to set a custom HTTPClient for a request.
func NewMcpGetParamsWithTimeout ¶
func NewMcpGetParamsWithTimeout(timeout time.Duration) *McpGetParams
NewMcpGetParamsWithTimeout creates a new McpGetParams object with the ability to set a timeout on a request.
func (*McpGetParams) SetContext ¶
func (o *McpGetParams) SetContext(ctx context.Context)
SetContext adds the context to the mcp get params
func (*McpGetParams) SetDefaults ¶
func (o *McpGetParams) SetDefaults()
SetDefaults hydrates default values in the mcp get params (not the query body).
All values with no default are reset to their zero value.
func (*McpGetParams) SetHTTPClient ¶
func (o *McpGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the mcp get params
func (*McpGetParams) SetTimeout ¶
func (o *McpGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the mcp get params
func (*McpGetParams) WithContext ¶
func (o *McpGetParams) WithContext(ctx context.Context) *McpGetParams
WithContext adds the context to the mcp get params
func (*McpGetParams) WithDefaults ¶
func (o *McpGetParams) WithDefaults() *McpGetParams
WithDefaults hydrates default values in the mcp get params (not the query body).
All values with no default are reset to their zero value.
func (*McpGetParams) WithHTTPClient ¶
func (o *McpGetParams) WithHTTPClient(client *http.Client) *McpGetParams
WithHTTPClient adds the HTTPClient to the mcp get params
func (*McpGetParams) WithTimeout ¶
func (o *McpGetParams) WithTimeout(timeout time.Duration) *McpGetParams
WithTimeout adds the timeout to the mcp get params
func (*McpGetParams) WriteToRequest ¶
func (o *McpGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type McpGetReader ¶
type McpGetReader struct {
// contains filtered or unexported fields
}
McpGetReader is a Reader for the McpGet structure.
func (*McpGetReader) ReadResponse ¶
func (o *McpGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type McpPostOK ¶
type McpPostOK struct {
}
McpPostOK describes a response with status code 200, with default header values.
JSON-RPC response or SSE stream
func NewMcpPostOK ¶
func NewMcpPostOK() *McpPostOK
NewMcpPostOK creates a McpPostOK with default headers values
func (*McpPostOK) IsClientError ¶
IsClientError returns true when this mcp post o k response has a 4xx status code
func (*McpPostOK) IsCode ¶
IsCode returns true when this mcp post o k response a status code equal to that given
func (*McpPostOK) IsRedirect ¶
IsRedirect returns true when this mcp post o k response has a 3xx status code
func (*McpPostOK) IsServerError ¶
IsServerError returns true when this mcp post o k response has a 5xx status code
type McpPostParams ¶
type McpPostParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
McpPostParams contains all the parameters to send to the API endpoint
for the mcp post operation. Typically these are written to a http.Request.
func NewMcpPostParams ¶
func NewMcpPostParams() *McpPostParams
NewMcpPostParams creates a new McpPostParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewMcpPostParamsWithContext ¶
func NewMcpPostParamsWithContext(ctx context.Context) *McpPostParams
NewMcpPostParamsWithContext creates a new McpPostParams object with the ability to set a context for a request.
func NewMcpPostParamsWithHTTPClient ¶
func NewMcpPostParamsWithHTTPClient(client *http.Client) *McpPostParams
NewMcpPostParamsWithHTTPClient creates a new McpPostParams object with the ability to set a custom HTTPClient for a request.
func NewMcpPostParamsWithTimeout ¶
func NewMcpPostParamsWithTimeout(timeout time.Duration) *McpPostParams
NewMcpPostParamsWithTimeout creates a new McpPostParams object with the ability to set a timeout on a request.
func (*McpPostParams) SetContext ¶
func (o *McpPostParams) SetContext(ctx context.Context)
SetContext adds the context to the mcp post params
func (*McpPostParams) SetDefaults ¶
func (o *McpPostParams) SetDefaults()
SetDefaults hydrates default values in the mcp post params (not the query body).
All values with no default are reset to their zero value.
func (*McpPostParams) SetHTTPClient ¶
func (o *McpPostParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the mcp post params
func (*McpPostParams) SetTimeout ¶
func (o *McpPostParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the mcp post params
func (*McpPostParams) WithContext ¶
func (o *McpPostParams) WithContext(ctx context.Context) *McpPostParams
WithContext adds the context to the mcp post params
func (*McpPostParams) WithDefaults ¶
func (o *McpPostParams) WithDefaults() *McpPostParams
WithDefaults hydrates default values in the mcp post params (not the query body).
All values with no default are reset to their zero value.
func (*McpPostParams) WithHTTPClient ¶
func (o *McpPostParams) WithHTTPClient(client *http.Client) *McpPostParams
WithHTTPClient adds the HTTPClient to the mcp post params
func (*McpPostParams) WithTimeout ¶
func (o *McpPostParams) WithTimeout(timeout time.Duration) *McpPostParams
WithTimeout adds the timeout to the mcp post params
func (*McpPostParams) WriteToRequest ¶
func (o *McpPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type McpPostReader ¶
type McpPostReader struct {
// contains filtered or unexported fields
}
McpPostReader is a Reader for the McpPost structure.
func (*McpPostReader) ReadResponse ¶
func (o *McpPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.