Documentation
¶
Overview ¶
Package nativeinbox posts to the current Claude MCP parent's inherited local inbox. Credentials stay in this process; they are never discovered from disk.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidMessage = errors.New("native inbox message exceeds limits or has invalid structure") ErrDelivery = errors.New("native inbox write failed") )
Functions ¶
This section is empty.
Types ¶
type Poster ¶
type Poster struct {
// contains filtered or unexported fields
}
Poster holds only the endpoint and credentials inherited by this MCP child. Each Post opens its own bounded connection; callers may post concurrently.
func FromEnvironment ¶
FromEnvironment requires the observed parent identity to match the inherited session UUID exactly. No fallback selects another session or reads token files.
func FromParentEnvironment ¶
func FromParentEnvironment(parentPID int, verifyCurrent func(context.Context) bool) (*Poster, error)
FromParentEnvironment binds the inherited inbox to its actual server process. verifyCurrent rechecks the parent after dialing, before any credential write.