Documentation
¶
Index ¶
- type Client
- 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 McpDeleteServiceUnavailable
- func (o *McpDeleteServiceUnavailable) Code() int
- func (o *McpDeleteServiceUnavailable) Error() string
- func (o *McpDeleteServiceUnavailable) GetPayload() *McpDeleteServiceUnavailableBody
- func (o *McpDeleteServiceUnavailable) IsClientError() bool
- func (o *McpDeleteServiceUnavailable) IsCode(code int) bool
- func (o *McpDeleteServiceUnavailable) IsRedirect() bool
- func (o *McpDeleteServiceUnavailable) IsServerError() bool
- func (o *McpDeleteServiceUnavailable) IsSuccess() bool
- func (o *McpDeleteServiceUnavailable) String() string
- type McpDeleteServiceUnavailableBody
- func (o *McpDeleteServiceUnavailableBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *McpDeleteServiceUnavailableBody) MarshalBinary() ([]byte, error)
- func (o *McpDeleteServiceUnavailableBody) UnmarshalBinary(b []byte) error
- func (o *McpDeleteServiceUnavailableBody) Validate(formats strfmt.Registry) error
- 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
- type McpPostServiceUnavailable
- func (o *McpPostServiceUnavailable) Code() int
- func (o *McpPostServiceUnavailable) Error() string
- func (o *McpPostServiceUnavailable) GetPayload() *McpPostServiceUnavailableBody
- func (o *McpPostServiceUnavailable) IsClientError() bool
- func (o *McpPostServiceUnavailable) IsCode(code int) bool
- func (o *McpPostServiceUnavailable) IsRedirect() bool
- func (o *McpPostServiceUnavailable) IsServerError() bool
- func (o *McpPostServiceUnavailable) IsSuccess() bool
- func (o *McpPostServiceUnavailable) String() string
- type McpPostServiceUnavailableBody
- func (o *McpPostServiceUnavailableBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *McpPostServiceUnavailableBody) MarshalBinary() ([]byte, error)
- func (o *McpPostServiceUnavailableBody) UnmarshalBinary(b []byte) error
- func (o *McpPostServiceUnavailableBody) Validate(formats strfmt.Registry) error
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 Accepted so clients that end their session explicitly keep working. The server keeps no session state, so there is nothing to terminate.
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. Every request is authenticated on its own; no Mcp-Session-Id is issued or required.
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)
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.
Accepted; there is no session state to terminate
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 McpDeleteServiceUnavailable ¶ added in v1.38.13
type McpDeleteServiceUnavailable struct {
}
McpDeleteServiceUnavailable describes a response with status code 503, with default header values.
MCP server is disabled
func NewMcpDeleteServiceUnavailable ¶ added in v1.38.13
func NewMcpDeleteServiceUnavailable() *McpDeleteServiceUnavailable
NewMcpDeleteServiceUnavailable creates a McpDeleteServiceUnavailable with default headers values
func (*McpDeleteServiceUnavailable) Code ¶ added in v1.38.13
func (o *McpDeleteServiceUnavailable) Code() int
Code gets the status code for the mcp delete service unavailable response
func (*McpDeleteServiceUnavailable) Error ¶ added in v1.38.13
func (o *McpDeleteServiceUnavailable) Error() string
func (*McpDeleteServiceUnavailable) GetPayload ¶ added in v1.38.13
func (o *McpDeleteServiceUnavailable) GetPayload() *McpDeleteServiceUnavailableBody
func (*McpDeleteServiceUnavailable) IsClientError ¶ added in v1.38.13
func (o *McpDeleteServiceUnavailable) IsClientError() bool
IsClientError returns true when this mcp delete service unavailable response has a 4xx status code
func (*McpDeleteServiceUnavailable) IsCode ¶ added in v1.38.13
func (o *McpDeleteServiceUnavailable) IsCode(code int) bool
IsCode returns true when this mcp delete service unavailable response a status code equal to that given
func (*McpDeleteServiceUnavailable) IsRedirect ¶ added in v1.38.13
func (o *McpDeleteServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this mcp delete service unavailable response has a 3xx status code
func (*McpDeleteServiceUnavailable) IsServerError ¶ added in v1.38.13
func (o *McpDeleteServiceUnavailable) IsServerError() bool
IsServerError returns true when this mcp delete service unavailable response has a 5xx status code
func (*McpDeleteServiceUnavailable) IsSuccess ¶ added in v1.38.13
func (o *McpDeleteServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this mcp delete service unavailable response has a 2xx status code
func (*McpDeleteServiceUnavailable) String ¶ added in v1.38.13
func (o *McpDeleteServiceUnavailable) String() string
type McpDeleteServiceUnavailableBody ¶ added in v1.38.13
type McpDeleteServiceUnavailableBody struct {
Error string `json:"error,omitempty"`
}
McpDeleteServiceUnavailableBody mcp delete service unavailable body swagger:model McpDeleteServiceUnavailableBody
func (*McpDeleteServiceUnavailableBody) ContextValidate ¶ added in v1.38.13
func (o *McpDeleteServiceUnavailableBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this mcp delete service unavailable body based on context it is used
func (*McpDeleteServiceUnavailableBody) MarshalBinary ¶ added in v1.38.13
func (o *McpDeleteServiceUnavailableBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*McpDeleteServiceUnavailableBody) UnmarshalBinary ¶ added in v1.38.13
func (o *McpDeleteServiceUnavailableBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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.
type McpPostServiceUnavailable ¶ added in v1.38.13
type McpPostServiceUnavailable struct {
}
McpPostServiceUnavailable describes a response with status code 503, with default header values.
MCP server is disabled
func NewMcpPostServiceUnavailable ¶ added in v1.38.13
func NewMcpPostServiceUnavailable() *McpPostServiceUnavailable
NewMcpPostServiceUnavailable creates a McpPostServiceUnavailable with default headers values
func (*McpPostServiceUnavailable) Code ¶ added in v1.38.13
func (o *McpPostServiceUnavailable) Code() int
Code gets the status code for the mcp post service unavailable response
func (*McpPostServiceUnavailable) Error ¶ added in v1.38.13
func (o *McpPostServiceUnavailable) Error() string
func (*McpPostServiceUnavailable) GetPayload ¶ added in v1.38.13
func (o *McpPostServiceUnavailable) GetPayload() *McpPostServiceUnavailableBody
func (*McpPostServiceUnavailable) IsClientError ¶ added in v1.38.13
func (o *McpPostServiceUnavailable) IsClientError() bool
IsClientError returns true when this mcp post service unavailable response has a 4xx status code
func (*McpPostServiceUnavailable) IsCode ¶ added in v1.38.13
func (o *McpPostServiceUnavailable) IsCode(code int) bool
IsCode returns true when this mcp post service unavailable response a status code equal to that given
func (*McpPostServiceUnavailable) IsRedirect ¶ added in v1.38.13
func (o *McpPostServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this mcp post service unavailable response has a 3xx status code
func (*McpPostServiceUnavailable) IsServerError ¶ added in v1.38.13
func (o *McpPostServiceUnavailable) IsServerError() bool
IsServerError returns true when this mcp post service unavailable response has a 5xx status code
func (*McpPostServiceUnavailable) IsSuccess ¶ added in v1.38.13
func (o *McpPostServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this mcp post service unavailable response has a 2xx status code
func (*McpPostServiceUnavailable) String ¶ added in v1.38.13
func (o *McpPostServiceUnavailable) String() string
type McpPostServiceUnavailableBody ¶ added in v1.38.13
type McpPostServiceUnavailableBody struct {
Error string `json:"error,omitempty"`
}
McpPostServiceUnavailableBody mcp post service unavailable body swagger:model McpPostServiceUnavailableBody
func (*McpPostServiceUnavailableBody) ContextValidate ¶ added in v1.38.13
func (o *McpPostServiceUnavailableBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this mcp post service unavailable body based on context it is used
func (*McpPostServiceUnavailableBody) MarshalBinary ¶ added in v1.38.13
func (o *McpPostServiceUnavailableBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*McpPostServiceUnavailableBody) UnmarshalBinary ¶ added in v1.38.13
func (o *McpPostServiceUnavailableBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation