Documentation
¶
Overview ¶
Package mcp provides an MCP server that exposes TaskFlow resources and operations as MCP resources and tools. Both are auto-derived from model.Resources() and model.Operations().
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Notification ¶
type Notification struct {
Event string `json:"event"`
Board string `json:"board"`
Task string `json:"task,omitempty"`
Actor string `json:"actor"`
Summary string `json:"summary"`
Timestamp string `json:"timestamp"`
}
Notification is a summary of a domain event from another actor.
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
Notifier subscribes to the global event stream and buffers notifications from other actors. Pending notifications are retrieved and cleared on each tool call via Drain().
func NewNotifier ¶
NewNotifier starts a background event subscription and buffers notifications from actors other than selfName. Cancel the context to stop.
func (*Notifier) Drain ¶
func (n *Notifier) Drain() []Notification
Drain returns all pending notifications and clears the buffer.
Click to show internal directories.
Click to hide internal directories.