mcpadapter

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mcpadapter bridges the MCP SDK with Sleipnir tools. It queries an MCP server's tool list and wraps each tool as a sleipnir.Tool that can be passed to RunInput.ExtraTools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTools

func LoadTools(ctx context.Context, client *mcp.ClientSession, opts ...Option) ([]sleipnir.Tool, error)

LoadTools queries the MCP server for its tool list and wraps each as a sleipnir.Tool. The list is snapshotted at call time; call again to refresh.

Types

type Option

type Option func(*loadConfig)

Option configures LoadTools behaviour.

func WithPrefix

func WithPrefix(prefix string) Option

WithPrefix prepends a string to every tool name loaded from the MCP server.

Jump to

Keyboard shortcuts

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