mcp

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MCPVersion = proto.MCPVersion

Variables

This section is empty.

Functions

func NewMCPClient

func NewMCPClient(reader io.Reader, writer io.Writer, logger *zap.Logger) *proto.DefaultMCPClient

func NewMCPError

func NewMCPError(id any, code int, message string, data any) *proto.MCPMessage

func NewMCPRequest

func NewMCPRequest(id any, method string, params map[string]any) *proto.MCPMessage

func NewMCPResponse

func NewMCPResponse(id any, result any) *proto.MCPMessage

func NewMCPServer

func NewMCPServer(name, version string, logger *zap.Logger) *proto.DefaultMCPServer

Types

type DefaultMCPClient

type DefaultMCPClient = proto.DefaultMCPClient

type DefaultMCPServer

type DefaultMCPServer = proto.DefaultMCPServer

type MCPMessage

type MCPMessage = proto.MCPMessage

type PromptTemplate

type PromptTemplate = proto.PromptTemplate

type Resource

type Resource = proto.Resource

type ServerCapabilities

type ServerCapabilities = proto.ServerCapabilities

type ServerInfo

type ServerInfo = proto.ServerInfo

type ToolCall

type ToolCall = proto.ToolCall

type ToolDefinition

type ToolDefinition = proto.ToolDefinition

type ToolHandler

type ToolHandler = proto.ToolHandler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL