Documentation
¶
Overview ¶
Package hosttest is an in-process host speaking the host protocol, for tests of mcp-sh itself and of host binaries' Go-side builtins. It is also the smallest complete reference for what a host must implement.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host struct {
Name string
Version string
Token string // when set, requests must carry it
Commands []host.CommandInfo
Handlers map[string]Handler
// HelpTexts answers the optional help method; nil means the host does not
// implement it.
HelpTexts map[string]string
// GodotNumbers writes integers as floats ("exit_code":0.0), as Godot's JSON does.
GodotNumbers bool
// contains filtered or unexported fields
}