mcptool

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mcptool provides a tool.Tool implementation that proxies calls to an MCP server tool through the conduit MCP manager.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAll

func RegisterAll(reg *tool.Registry, manager *mcp.Manager)

RegisterAll adds every tool from all connected MCP servers to reg.

Types

type MCPTool

type MCPTool struct {
	// contains filtered or unexported fields
}

MCPTool wraps a single MCP server tool as a tool.Tool.

func New

func New(manager *mcp.Manager, nt mcp.NamedTool) *MCPTool

New creates a MCPTool for one entry from Manager.AllTools().

func (*MCPTool) Description

func (t *MCPTool) Description() string

func (*MCPTool) Execute

func (t *MCPTool) Execute(ctx context.Context, input json.RawMessage) (tool.Result, error)

func (*MCPTool) InputSchema

func (t *MCPTool) InputSchema() json.RawMessage

func (*MCPTool) IsConcurrencySafe

func (t *MCPTool) IsConcurrencySafe(_ json.RawMessage) bool

func (*MCPTool) IsReadOnly

func (t *MCPTool) IsReadOnly(_ json.RawMessage) bool

func (*MCPTool) Name

func (t *MCPTool) Name() string

Jump to

Keyboard shortcuts

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