Documentation
¶
Overview ¶
Package mcpserver is the stdio MCP server interactive sessions and onward-enabled workers use to send mail (RFC 7.2).
There is deliberately no tool that reads another agent's inbound mail or the agent's own handled items (D4): reading those is a human action.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AskIn ¶
type AskIn struct {
To string `json:"to" jsonschema:"agent id"`
Intent string `json:"intent" jsonschema:"e.g. store.status"`
Subject string `json:"subject"`
Body string `json:"body,omitempty"`
Priority string `json:"priority,omitempty" jsonschema:"low|normal|high|urgent"`
Data map[string]any `json:"data,omitempty"`
WaitS int `json:"wait_s,omitempty" jsonschema:"seconds to wait, max 120"`
}
AskIn is smif_ask's input.
type AwaitIn ¶
type AwaitIn struct {
Ticket string `json:"ticket" jsonschema:"from smif_ask"`
WaitS int `json:"wait_s,omitempty" jsonschema:"max 120"`
}
AwaitIn is smif_await's input.
type SendIn ¶
type SendIn struct {
To string `json:"to" jsonschema:"agent id"`
Kind string `json:"kind,omitempty" jsonschema:"tell (default) or event"`
Intent string `json:"intent" jsonschema:"e.g. crash.report"`
Subject string `json:"subject"`
Body string `json:"body,omitempty"`
Priority string `json:"priority,omitempty" jsonschema:"low|normal|high|urgent"`
DedupeKey string `json:"dedupe_key,omitempty" jsonschema:"event repeats with this key merge"`
Data map[string]any `json:"data,omitempty"`
}
SendIn is smif_send's input.