mcptool

package
v0.0.0-...-1fe7fe5 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package mcp provides integration with the Model Context Protocol (MCP). It allows agents to connect to external MCP servers via stdio (subprocess) or HTTP (SSE / streamable HTTP) and expose their tools as tool.Tool / tool.FuncTool instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTool

func AddTool(src *mcp.Server, tl tool.FuncTool)

func Connect

func Connect(ctx context.Context, transport mcp.Transport) (*mcp.ClientSession, error)

func ListTools

func ListTools(ctx context.Context, session *mcp.ClientSession) ([]tool.Tool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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