Documentation
¶
Overview ¶
Package mcphost bridges MCP stdio to the separate, pinned Restish MCP helper. It deliberately does not implement MCP or discover Restish plugins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Executable string
In io.Reader
Out, Err io.Writer
Spec []byte
Operations []string
RequestTimeout int
MaxResultBytes int
Execute func(context.Context, plugin.HTTPRequestMsg) plugin.HTTPResponseMsg
}
Config is supplied by the application's guarded resource policy boundary. Spec must already be filtered, and Execute must independently enforce allowed requests. In remains caller-owned. Readers should unblock on context cancellation when possible: an arbitrary Reader (including idle os.Stdin) cannot be interrupted safely without closing it. At most one bounded read goroutine may remain until that reader next returns. Writers and Execute must return on cancellation; arbitrary blocking user callbacks cannot be forcibly interrupted by Go.