Documentation
¶
Index ¶
- Variables
- type MCPAfterCallToolHookInput
- func (*MCPAfterCallToolHookInput) Descriptor() ([]byte, []int)deprecated
- func (x *MCPAfterCallToolHookInput) GetArguments() *structpb.Struct
- func (x *MCPAfterCallToolHookInput) GetName() string
- func (x *MCPAfterCallToolHookInput) GetResult() []byte
- func (x *MCPAfterCallToolHookInput) GetToolName() string
- func (*MCPAfterCallToolHookInput) ProtoMessage()
- func (x *MCPAfterCallToolHookInput) ProtoReflect() protoreflect.Message
- func (x *MCPAfterCallToolHookInput) Reset()
- func (x *MCPAfterCallToolHookInput) String() string
- type MCPAfterListToolsHookInput
- func (*MCPAfterListToolsHookInput) Descriptor() ([]byte, []int)deprecated
- func (x *MCPAfterListToolsHookInput) GetName() string
- func (x *MCPAfterListToolsHookInput) GetResult() []byte
- func (*MCPAfterListToolsHookInput) ProtoMessage()
- func (x *MCPAfterListToolsHookInput) ProtoReflect() protoreflect.Message
- func (x *MCPAfterListToolsHookInput) Reset()
- func (x *MCPAfterListToolsHookInput) String() string
- type MCPBeforeCallToolHookInput
- func (*MCPBeforeCallToolHookInput) Descriptor() ([]byte, []int)deprecated
- func (x *MCPBeforeCallToolHookInput) GetArguments() *structpb.Struct
- func (x *MCPBeforeCallToolHookInput) GetName() string
- func (x *MCPBeforeCallToolHookInput) GetToolName() string
- func (*MCPBeforeCallToolHookInput) ProtoMessage()
- func (x *MCPBeforeCallToolHookInput) ProtoReflect() protoreflect.Message
- func (x *MCPBeforeCallToolHookInput) Reset()
- func (x *MCPBeforeCallToolHookInput) String() string
- type MCPBeforeListToolsHookInput
- func (*MCPBeforeListToolsHookInput) Descriptor() ([]byte, []int)deprecated
- func (x *MCPBeforeListToolsHookInput) GetName() string
- func (*MCPBeforeListToolsHookInput) ProtoMessage()
- func (x *MCPBeforeListToolsHookInput) ProtoReflect() protoreflect.Message
- func (x *MCPBeforeListToolsHookInput) Reset()
- func (x *MCPBeforeListToolsHookInput) String() string
Constants ¶
This section is empty.
Variables ¶
var File_dapr_proto_workflows_v1_mcp_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type MCPAfterCallToolHookInput ¶
type MCPAfterCallToolHookInput struct {
// name is the name of the MCPServer resource.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// tool_name is the name of the tool that was called.
ToolName string `protobuf:"bytes,2,opt,name=tool_name,json=toolName,proto3" json:"tool_name,omitempty"`
// arguments is the tool arguments that were sent.
Arguments *structpb.Struct `protobuf:"bytes,3,opt,name=arguments,proto3" json:"arguments,omitempty"`
// result is the JSON-encoded MCP CallToolResult.
// Spec: https://modelcontextprotocol.io/specification/2024-11-05/server/tools#tool-result
Result []byte `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"`
// contains filtered or unexported fields
}
MCPAfterCallToolHookInput is received by afterCallTool middleware hooks. When the hook has mutate=true, its return value (CallToolResult shape) replaces the result returned to the caller. Errors returned by after-hooks fail the workflow.
func (*MCPAfterCallToolHookInput) Descriptor
deprecated
func (*MCPAfterCallToolHookInput) Descriptor() ([]byte, []int)
Deprecated: Use MCPAfterCallToolHookInput.ProtoReflect.Descriptor instead.
func (*MCPAfterCallToolHookInput) GetArguments ¶
func (x *MCPAfterCallToolHookInput) GetArguments() *structpb.Struct
func (*MCPAfterCallToolHookInput) GetName ¶
func (x *MCPAfterCallToolHookInput) GetName() string
func (*MCPAfterCallToolHookInput) GetResult ¶
func (x *MCPAfterCallToolHookInput) GetResult() []byte
func (*MCPAfterCallToolHookInput) GetToolName ¶
func (x *MCPAfterCallToolHookInput) GetToolName() string
func (*MCPAfterCallToolHookInput) ProtoMessage ¶
func (*MCPAfterCallToolHookInput) ProtoMessage()
func (*MCPAfterCallToolHookInput) ProtoReflect ¶
func (x *MCPAfterCallToolHookInput) ProtoReflect() protoreflect.Message
func (*MCPAfterCallToolHookInput) Reset ¶
func (x *MCPAfterCallToolHookInput) Reset()
func (*MCPAfterCallToolHookInput) String ¶
func (x *MCPAfterCallToolHookInput) String() string
type MCPAfterListToolsHookInput ¶
type MCPAfterListToolsHookInput struct {
// name is the name of the MCPServer resource.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// result is the JSON-encoded MCP ListToolsResult.
// Spec: https://modelcontextprotocol.io/specification/2024-11-05/server/tools#listing-tools
Result []byte `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
// contains filtered or unexported fields
}
MCPAfterListToolsHookInput is received by afterListTools middleware hooks. When the hook has mutate=true, its return value (ListToolsResult shape) replaces the result returned to the caller.
func (*MCPAfterListToolsHookInput) Descriptor
deprecated
func (*MCPAfterListToolsHookInput) Descriptor() ([]byte, []int)
Deprecated: Use MCPAfterListToolsHookInput.ProtoReflect.Descriptor instead.
func (*MCPAfterListToolsHookInput) GetName ¶
func (x *MCPAfterListToolsHookInput) GetName() string
func (*MCPAfterListToolsHookInput) GetResult ¶
func (x *MCPAfterListToolsHookInput) GetResult() []byte
func (*MCPAfterListToolsHookInput) ProtoMessage ¶
func (*MCPAfterListToolsHookInput) ProtoMessage()
func (*MCPAfterListToolsHookInput) ProtoReflect ¶
func (x *MCPAfterListToolsHookInput) ProtoReflect() protoreflect.Message
func (*MCPAfterListToolsHookInput) Reset ¶
func (x *MCPAfterListToolsHookInput) Reset()
func (*MCPAfterListToolsHookInput) String ¶
func (x *MCPAfterListToolsHookInput) String() string
type MCPBeforeCallToolHookInput ¶
type MCPBeforeCallToolHookInput struct {
// name is the name of the MCPServer resource.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// tool_name is the name of the tool being called.
ToolName string `protobuf:"bytes,2,opt,name=tool_name,json=toolName,proto3" json:"tool_name,omitempty"`
// arguments is the tool arguments as a JSON object.
Arguments *structpb.Struct `protobuf:"bytes,3,opt,name=arguments,proto3" json:"arguments,omitempty"`
// contains filtered or unexported fields
}
MCPBeforeCallToolHookInput is received by beforeCallTool middleware hooks. When the hook has mutate=true, its return value (same shape) replaces the arguments flowing to the tool call.
func (*MCPBeforeCallToolHookInput) Descriptor
deprecated
func (*MCPBeforeCallToolHookInput) Descriptor() ([]byte, []int)
Deprecated: Use MCPBeforeCallToolHookInput.ProtoReflect.Descriptor instead.
func (*MCPBeforeCallToolHookInput) GetArguments ¶
func (x *MCPBeforeCallToolHookInput) GetArguments() *structpb.Struct
func (*MCPBeforeCallToolHookInput) GetName ¶
func (x *MCPBeforeCallToolHookInput) GetName() string
func (*MCPBeforeCallToolHookInput) GetToolName ¶
func (x *MCPBeforeCallToolHookInput) GetToolName() string
func (*MCPBeforeCallToolHookInput) ProtoMessage ¶
func (*MCPBeforeCallToolHookInput) ProtoMessage()
func (*MCPBeforeCallToolHookInput) ProtoReflect ¶
func (x *MCPBeforeCallToolHookInput) ProtoReflect() protoreflect.Message
func (*MCPBeforeCallToolHookInput) Reset ¶
func (x *MCPBeforeCallToolHookInput) Reset()
func (*MCPBeforeCallToolHookInput) String ¶
func (x *MCPBeforeCallToolHookInput) String() string
type MCPBeforeListToolsHookInput ¶
type MCPBeforeListToolsHookInput struct {
// name is the name of the MCPServer resource.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
MCPBeforeListToolsHookInput is received by beforeListTools middleware hooks.
func (*MCPBeforeListToolsHookInput) Descriptor
deprecated
func (*MCPBeforeListToolsHookInput) Descriptor() ([]byte, []int)
Deprecated: Use MCPBeforeListToolsHookInput.ProtoReflect.Descriptor instead.
func (*MCPBeforeListToolsHookInput) GetName ¶
func (x *MCPBeforeListToolsHookInput) GetName() string
func (*MCPBeforeListToolsHookInput) ProtoMessage ¶
func (*MCPBeforeListToolsHookInput) ProtoMessage()
func (*MCPBeforeListToolsHookInput) ProtoReflect ¶
func (x *MCPBeforeListToolsHookInput) ProtoReflect() protoreflect.Message
func (*MCPBeforeListToolsHookInput) Reset ¶
func (x *MCPBeforeListToolsHookInput) Reset()
func (*MCPBeforeListToolsHookInput) String ¶
func (x *MCPBeforeListToolsHookInput) String() string