Documentation
¶
Index ¶
- Constants
- func New() endly.Service
- type CallRequest
- type CallResponse
- type GetSkillRequest
- type GetSkillResponse
- type ListResourcesRequest
- type ListResourcesResponse
- type ListSkillsRequest
- type ListSkillsResponse
- type ListToolsRequest
- type ListToolsResponse
- type OAuthRequest
- type ReadResourceRequest
- type ReadResourceResponse
- type Request
Constants ¶
View Source
const ServiceID = "mcp/runner"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallRequest ¶
type CallRequest struct {
Request
Name string `json:"name" yaml:"name"`
Arguments map[string]interface{} `json:"arguments,omitempty" yaml:"arguments,omitempty"`
// AllowToolError returns an MCP isError result as a successful Endly action
// so a workflow can inspect the complete diagnostic content.
AllowToolError bool `json:"allowToolError,omitempty" yaml:"allowToolError,omitempty"`
// AllowProtocolError captures only the numeric JSON-RPC error code for negative tests.
AllowProtocolError bool `json:"allowProtocolError,omitempty" yaml:"allowProtocolError,omitempty"`
}
func (*CallRequest) Validate ¶
func (r *CallRequest) Validate() error
type CallResponse ¶
type CallResponse struct {
ProtocolErrorCode *int `json:",omitempty"`
Result *schema.CallToolResult
StructuredContent interface{}
Content []schema.CallToolResultContentElem
IsError bool
}
CallResponse preserves the full MCP result, including content and isError. StructuredContent is the decoded JSON object returned by tools that provide it.
type GetSkillRequest ¶ added in v0.92.0
type GetSkillRequest struct {
Request
URI string `json:"uri" yaml:"uri"`
AllowProtocolError bool `json:"allowProtocolError,omitempty" yaml:"allowProtocolError,omitempty"`
}
func (*GetSkillRequest) Validate ¶ added in v0.92.0
func (r *GetSkillRequest) Validate() error
type GetSkillResponse ¶ added in v0.92.0
type ListResourcesRequest ¶ added in v0.92.0
type ListResourcesResponse ¶ added in v0.92.0
type ListSkillsRequest ¶ added in v0.92.0
type ListSkillsResponse ¶ added in v0.92.0
type ListToolsRequest ¶
type ListToolsRequest struct {
Request
Cursor *string `json:"cursor,omitempty" yaml:"cursor,omitempty"`
}
func (*ListToolsRequest) Validate ¶
func (r *ListToolsRequest) Validate() error
type ListToolsResponse ¶
type OAuthRequest ¶
type OAuthRequest struct {
ConfigURL string `json:"configURL" yaml:"configURL"`
SecretsURL string `json:"secretsURL" yaml:"secretsURL"`
AuthFlow string `json:"authFlow,omitempty" yaml:"authFlow,omitempty"`
Scopes []string `json:"scopes,omitempty" yaml:"scopes,omitempty"`
UsePKCE bool `json:"usePKCE,omitempty" yaml:"usePKCE,omitempty"`
}
OAuthRequest identifies Scy encrypted resources. No credential literals are accepted in the workflow request.
type ReadResourceRequest ¶ added in v0.92.0
type ReadResourceRequest struct {
Request
URI string `json:"uri" yaml:"uri"`
AllowProtocolError bool `json:"allowProtocolError,omitempty" yaml:"allowProtocolError,omitempty"`
}
func (*ReadResourceRequest) Validate ¶ added in v0.92.0
func (r *ReadResourceRequest) Validate() error
type ReadResourceResponse ¶ added in v0.92.0
type ReadResourceResponse struct {
Contents []schema.ReadResourceResultContentsElem
IsError bool
ProtocolErrorCode *int `json:",omitempty"`
}
type Request ¶
type Request struct {
URL string `json:"url" yaml:"url"`
BearerTokenSecret string `json:"bearerTokenSecret,omitempty" yaml:"bearerTokenSecret,omitempty"`
OAuth *OAuthRequest `json:"oauth,omitempty" yaml:"oauth,omitempty"`
TimeoutMs int `json:"timeoutMs,omitempty" yaml:"timeoutMs,omitempty"`
ProtocolVersion string `json:"protocolVersion,omitempty" yaml:"protocolVersion,omitempty"`
}
Request configures one outbound MCP operation. BearerTokenSecret is a Scy resource reference (or a workflow credentialMap alias), never a token value.
Click to show internal directories.
Click to hide internal directories.