Documentation
¶
Index ¶
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"`
}
func (*CallRequest) Validate ¶
func (r *CallRequest) Validate() error
type CallResponse ¶
type CallResponse struct {
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 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 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.