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
WorkingDirectory string
PluginRoot string
PluginData string
TerminateDuration time.Duration
}
Config defines one shell-free stdio server process. Native definitions use absolute commands; Agent Plugins 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.