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
// Responder answers elicitation and sampling requests with the answers
// queued by elicit_response / sample_response. Optional.
Responder *client.Responder
// Client receives roots added by add_root. Optional.
Client *mcp.Client
// Notifications records server notifications for wait_notification. Optional.
Notifications *client.Notifications
// contains filtered or unexported fields
}
Runner manages the execution of MCP test scripts.
type TestFailure ¶ added in v1.4.0
TestFailure records one failed script line.
type TestResult ¶ added in v0.2.1
type TestResult struct {
Executed int `json:"executed"`
Passed int `json:"passed"`
Failed int `json:"failed"`
Failures []TestFailure `json:"failures,omitempty"`
}
TestResult holds numeric summary of test execution
Click to show internal directories.
Click to hide internal directories.