Versions in this module Expand all Collapse all v0 v0.1.156 Apr 24, 2026 v0.1.155 Apr 24, 2026 Changes in this version + const MCP_CallTool_FullMethodName + const MCP_Initialize_FullMethodName + const MCP_ListResources_FullMethodName + const MCP_ListTools_FullMethodName + const MCP_ReadResource_FullMethodName + var File_codefly_mcp_v0_mcp_proto protoreflect.FileDescriptor + var MCP_ServiceDesc = grpc.ServiceDesc + func RegisterMCPServer(s grpc.ServiceRegistrar, srv MCPServer) + type CallToolRequest struct + Arguments map[string]string + Name string + func (*CallToolRequest) Descriptor() ([]byte, []int) + func (*CallToolRequest) ProtoMessage() + func (x *CallToolRequest) GetArguments() map[string]string + func (x *CallToolRequest) GetName() string + func (x *CallToolRequest) ProtoReflect() protoreflect.Message + func (x *CallToolRequest) Reset() + func (x *CallToolRequest) String() string + type CallToolResponse struct + Content []*Content + IsError bool + func (*CallToolResponse) Descriptor() ([]byte, []int) + func (*CallToolResponse) ProtoMessage() + func (x *CallToolResponse) GetContent() []*Content + func (x *CallToolResponse) GetIsError() bool + func (x *CallToolResponse) ProtoReflect() protoreflect.Message + func (x *CallToolResponse) Reset() + func (x *CallToolResponse) String() string + type ClientInfo struct + Name string + Version string + func (*ClientInfo) Descriptor() ([]byte, []int) + func (*ClientInfo) ProtoMessage() + func (x *ClientInfo) GetName() string + func (x *ClientInfo) GetVersion() string + func (x *ClientInfo) ProtoReflect() protoreflect.Message + func (x *ClientInfo) Reset() + func (x *ClientInfo) String() string + type Content struct + Content isContent_Content + func (*Content) Descriptor() ([]byte, []int) + func (*Content) ProtoMessage() + func (x *Content) GetContent() isContent_Content + func (x *Content) GetImage() *ImageContent + func (x *Content) GetResource() *ResourceContent + func (x *Content) GetText() *TextContent + func (x *Content) ProtoReflect() protoreflect.Message + func (x *Content) Reset() + func (x *Content) String() string + type Content_Image struct + Image *ImageContent + type Content_Resource struct + Resource *ResourceContent + type Content_Text struct + Text *TextContent + type ImageContent struct + Data string + MimeType string + Type string + func (*ImageContent) Descriptor() ([]byte, []int) + func (*ImageContent) ProtoMessage() + func (x *ImageContent) GetData() string + func (x *ImageContent) GetMimeType() string + func (x *ImageContent) GetType() string + func (x *ImageContent) ProtoReflect() protoreflect.Message + func (x *ImageContent) Reset() + func (x *ImageContent) String() string + type InitializeRequest struct + ClientInfo *ClientInfo + ProtocolVersion string + func (*InitializeRequest) Descriptor() ([]byte, []int) + func (*InitializeRequest) ProtoMessage() + func (x *InitializeRequest) GetClientInfo() *ClientInfo + func (x *InitializeRequest) GetProtocolVersion() string + func (x *InitializeRequest) ProtoReflect() protoreflect.Message + func (x *InitializeRequest) Reset() + func (x *InitializeRequest) String() string + type InitializeResponse struct + ProtocolVersion string + ServerInfo *ServerInfo + func (*InitializeResponse) Descriptor() ([]byte, []int) + func (*InitializeResponse) ProtoMessage() + func (x *InitializeResponse) GetProtocolVersion() string + func (x *InitializeResponse) GetServerInfo() *ServerInfo + func (x *InitializeResponse) ProtoReflect() protoreflect.Message + func (x *InitializeResponse) Reset() + func (x *InitializeResponse) String() string + type InputSchema struct + Properties map[string]*PropertySchema + Required []string + Type string + func (*InputSchema) Descriptor() ([]byte, []int) + func (*InputSchema) ProtoMessage() + func (x *InputSchema) GetProperties() map[string]*PropertySchema + func (x *InputSchema) GetRequired() []string + func (x *InputSchema) GetType() string + func (x *InputSchema) ProtoReflect() protoreflect.Message + func (x *InputSchema) Reset() + func (x *InputSchema) String() string + type ListResourcesRequest struct + func (*ListResourcesRequest) Descriptor() ([]byte, []int) + func (*ListResourcesRequest) ProtoMessage() + func (x *ListResourcesRequest) ProtoReflect() protoreflect.Message + func (x *ListResourcesRequest) Reset() + func (x *ListResourcesRequest) String() string + type ListResourcesResponse struct + Resources []*Resource + func (*ListResourcesResponse) Descriptor() ([]byte, []int) + func (*ListResourcesResponse) ProtoMessage() + func (x *ListResourcesResponse) GetResources() []*Resource + func (x *ListResourcesResponse) ProtoReflect() protoreflect.Message + func (x *ListResourcesResponse) Reset() + func (x *ListResourcesResponse) String() string + type ListToolsRequest struct + func (*ListToolsRequest) Descriptor() ([]byte, []int) + func (*ListToolsRequest) ProtoMessage() + func (x *ListToolsRequest) ProtoReflect() protoreflect.Message + func (x *ListToolsRequest) Reset() + func (x *ListToolsRequest) String() string + type ListToolsResponse struct + Tools []*Tool + func (*ListToolsResponse) Descriptor() ([]byte, []int) + func (*ListToolsResponse) ProtoMessage() + func (x *ListToolsResponse) GetTools() []*Tool + func (x *ListToolsResponse) ProtoReflect() protoreflect.Message + func (x *ListToolsResponse) Reset() + func (x *ListToolsResponse) String() string + type MCPClient interface + CallTool func(ctx context.Context, in *CallToolRequest, opts ...grpc.CallOption) (*CallToolResponse, error) + Initialize func(ctx context.Context, in *InitializeRequest, opts ...grpc.CallOption) (*InitializeResponse, error) + ListResources func(ctx context.Context, in *ListResourcesRequest, opts ...grpc.CallOption) (*ListResourcesResponse, error) + ListTools func(ctx context.Context, in *ListToolsRequest, opts ...grpc.CallOption) (*ListToolsResponse, error) + ReadResource func(ctx context.Context, in *ReadResourceRequest, opts ...grpc.CallOption) (*ReadResourceResponse, error) + func NewMCPClient(cc grpc.ClientConnInterface) MCPClient + type MCPServer interface + CallTool func(context.Context, *CallToolRequest) (*CallToolResponse, error) + Initialize func(context.Context, *InitializeRequest) (*InitializeResponse, error) + ListResources func(context.Context, *ListResourcesRequest) (*ListResourcesResponse, error) + ListTools func(context.Context, *ListToolsRequest) (*ListToolsResponse, error) + ReadResource func(context.Context, *ReadResourceRequest) (*ReadResourceResponse, error) + type PropertySchema struct + Description string + EnumValues []string + Type string + func (*PropertySchema) Descriptor() ([]byte, []int) + func (*PropertySchema) ProtoMessage() + func (x *PropertySchema) GetDescription() string + func (x *PropertySchema) GetEnumValues() []string + func (x *PropertySchema) GetType() string + func (x *PropertySchema) ProtoReflect() protoreflect.Message + func (x *PropertySchema) Reset() + func (x *PropertySchema) String() string + type ReadResourceRequest struct + Uri string + func (*ReadResourceRequest) Descriptor() ([]byte, []int) + func (*ReadResourceRequest) ProtoMessage() + func (x *ReadResourceRequest) GetUri() string + func (x *ReadResourceRequest) ProtoReflect() protoreflect.Message + func (x *ReadResourceRequest) Reset() + func (x *ReadResourceRequest) String() string + type ReadResourceResponse struct + Contents []*Content + func (*ReadResourceResponse) Descriptor() ([]byte, []int) + func (*ReadResourceResponse) ProtoMessage() + func (x *ReadResourceResponse) GetContents() []*Content + func (x *ReadResourceResponse) ProtoReflect() protoreflect.Message + func (x *ReadResourceResponse) Reset() + func (x *ReadResourceResponse) String() string + type Resource struct + Description string + MimeType string + Name string + Uri string + func (*Resource) Descriptor() ([]byte, []int) + func (*Resource) ProtoMessage() + func (x *Resource) GetDescription() string + func (x *Resource) GetMimeType() string + func (x *Resource) GetName() string + func (x *Resource) GetUri() string + func (x *Resource) ProtoReflect() protoreflect.Message + func (x *Resource) Reset() + func (x *Resource) String() string + type ResourceContent struct + Blob string + Resource *Resource + Text string + Type string + func (*ResourceContent) Descriptor() ([]byte, []int) + func (*ResourceContent) ProtoMessage() + func (x *ResourceContent) GetBlob() string + func (x *ResourceContent) GetResource() *Resource + func (x *ResourceContent) GetText() string + func (x *ResourceContent) GetType() string + func (x *ResourceContent) ProtoReflect() protoreflect.Message + func (x *ResourceContent) Reset() + func (x *ResourceContent) String() string + type ServerCapabilities struct + Prompts bool + Resources bool + Tools bool + func (*ServerCapabilities) Descriptor() ([]byte, []int) + func (*ServerCapabilities) ProtoMessage() + func (x *ServerCapabilities) GetPrompts() bool + func (x *ServerCapabilities) GetResources() bool + func (x *ServerCapabilities) GetTools() bool + func (x *ServerCapabilities) ProtoReflect() protoreflect.Message + func (x *ServerCapabilities) Reset() + func (x *ServerCapabilities) String() string + type ServerInfo struct + Capabilities *ServerCapabilities + Name string + Version string + func (*ServerInfo) Descriptor() ([]byte, []int) + func (*ServerInfo) ProtoMessage() + func (x *ServerInfo) GetCapabilities() *ServerCapabilities + func (x *ServerInfo) GetName() string + func (x *ServerInfo) GetVersion() string + func (x *ServerInfo) ProtoReflect() protoreflect.Message + func (x *ServerInfo) Reset() + func (x *ServerInfo) String() string + type TextContent struct + Text string + Type string + func (*TextContent) Descriptor() ([]byte, []int) + func (*TextContent) ProtoMessage() + func (x *TextContent) GetText() string + func (x *TextContent) GetType() string + func (x *TextContent) ProtoReflect() protoreflect.Message + func (x *TextContent) Reset() + func (x *TextContent) String() string + type Tool struct + Description string + InputSchema *InputSchema + Name string + func (*Tool) Descriptor() ([]byte, []int) + func (*Tool) ProtoMessage() + func (x *Tool) GetDescription() string + func (x *Tool) GetInputSchema() *InputSchema + func (x *Tool) GetName() string + func (x *Tool) ProtoReflect() protoreflect.Message + func (x *Tool) Reset() + func (x *Tool) String() string + type UnimplementedMCPServer struct + func (UnimplementedMCPServer) CallTool(context.Context, *CallToolRequest) (*CallToolResponse, error) + func (UnimplementedMCPServer) Initialize(context.Context, *InitializeRequest) (*InitializeResponse, error) + func (UnimplementedMCPServer) ListResources(context.Context, *ListResourcesRequest) (*ListResourcesResponse, error) + func (UnimplementedMCPServer) ListTools(context.Context, *ListToolsRequest) (*ListToolsResponse, error) + func (UnimplementedMCPServer) ReadResource(context.Context, *ReadResourceRequest) (*ReadResourceResponse, error) + type UnsafeMCPServer interface