scripting

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 13 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, outputFormat string) (*TestResult, error)

Run executes a script string against the established MCP session.

type TestResult added in v0.2.1

type TestResult struct {
	Executed int `json:"executed"`
	Passed   int `json:"passed"`
	Failed   int `json:"failed"`
}

TestResult holds numeric summary of test execution

Jump to

Keyboard shortcuts

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