Documentation
¶
Overview ¶
Package mcpstdio constructs trusted, unsandboxed MCP stdio transports with the Coding Agent's minimal child environment and owned private directories.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Workspace workspace.Workspace
Command string
Args []string
TempRoot string
Environment func(string) (string, bool)
EnvironmentOverrides []execution.EnvVar
// Configured marks Command and EnvironmentOverrides as trusted server
// configuration from a native definition file rather than session input.
// A bare Command is resolved with platform executable search, an absolute
// Command is filesystem-resolved before the regular-executable check, and
// overrides overlay the sanitized baseline after well-formedness checks
// only. Agent Plugin transports (PluginRoot set) are always configured.
Configured bool
WorkingDirectory string
PluginRoot string
PluginData string
TerminateDuration time.Duration
}
Config defines one shell-free stdio server process. Session definitions use absolute commands; configured definitions may also use a bare platform command.
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
Resource owns a prepared SDK transport and its private environment root. Close it only after the MCP Client has closed its process connection.
func NewTransport ¶
NewTransport validates and prepares one MCP stdio transport. It does not start the command.
func (*Resource) Command ¶
Command returns a snapshot of the prepared shell-free command for internal inspection. Agent Plugin paths are validated again immediately before start.
func (*Resource) PrivateDir ¶
PrivateDir returns the owned private directory for lifecycle diagnostics.