scripting

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package scripting provides a simple script runner for testing MCP tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	Raw bool
	// contains filtered or unexported fields
}

Runner manages the execution of MCP test scripts.

func NewRunner

func NewRunner(session *mcp.ClientSession, raw bool) *Runner

NewRunner creates a new Runner with the given MCP client session.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, script string) error

Run executes a script string against the established MCP session.

Jump to

Keyboard shortcuts

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