mcp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LATEST_PROTOCOL_VERSION = mcp.LATEST_PROTOCOL_VERSION

	NewStdioMCPClient = client.NewStdioMCPClient
)

Functions

func DefineTool

func DefineTool(g *genkit.Genkit, client client.MCPClient, mcpTool mcp.Tool, cb func(ctx *ai.ToolContext, input any, output *ToolResult) error) (ai.Tool, error)

DefineTool defines a tool function.

Types

type CallToolRequest added in v0.3.0

type CallToolRequest = mcp.CallToolRequest

type CallToolResult added in v0.3.0

type CallToolResult = mcp.CallToolResult

type Implementation added in v0.3.0

type Implementation = mcp.Implementation

type InitializeRequest added in v0.3.0

type InitializeRequest = mcp.InitializeRequest

type InitializeResult added in v0.3.0

type InitializeResult = mcp.InitializeResult

type JSONRPCError added in v0.3.0

type JSONRPCError = mcp.JSONRPCError

type ListToolsRequest added in v0.3.0

type ListToolsRequest = mcp.ListToolsRequest

type ListToolsResult added in v0.3.0

type ListToolsResult = mcp.ListToolsResult

type MCPClient added in v0.3.0

type MCPClient = client.MCPClient

type StdioMCPClient added in v0.3.0

type StdioMCPClient = client.StdioMCPClient

type Tool added in v0.3.0

type Tool = mcp.Tool

type ToolInputSchema added in v0.3.0

type ToolInputSchema = mcp.ToolInputSchema

type ToolListChangedNotification added in v0.3.0

type ToolListChangedNotification = mcp.ToolListChangedNotification

type ToolOption added in v0.3.0

type ToolOption = mcp.ToolOption

type ToolResult

type ToolResult struct {
	Error  string          `json:"error,omitempty"`
	Result json.RawMessage `json:"result,omitempty"`
}

func (*ToolResult) String

func (r *ToolResult) String() string

Jump to

Keyboard shortcuts

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