Documentation
¶
Index ¶
- func NewServer(deps *Deps) *mcp.Server
- func RunStdio(ctx context.Context, s *mcp.Server) error
- type AddInput
- type DeleteInput
- type Deps
- type GetInput
- type GraphAddInput
- type GraphNeighborsInput
- type GraphSearchInput
- type GraphStatsInput
- type HeartbeatInput
- type ListInput
- type SearchInput
- type StatsInput
- type UpdateInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddInput ¶
type AddInput struct {
Content string `json:"content" jsonschema:"The memory content to store"`
Type string `json:"type" jsonschema:"Type of memory (fact conversation decision code_pattern correction)"`
UserID string `json:"user_id,omitempty" jsonschema:"User scope identifier"`
AgentID string `json:"agent_id,omitempty" jsonschema:"Agent scope identifier"`
AppID string `json:"app_id,omitempty" jsonschema:"Application scope identifier"`
RunID string `json:"run_id,omitempty" jsonschema:"Session/run scope identifier"`
Metadata map[string]any `json:"metadata,omitempty" jsonschema:"Additional metadata as JSON object"`
}
type DeleteInput ¶
type DeleteInput struct {
ID string `json:"id" jsonschema:"The memory UUID to delete"`
}
type Deps ¶
type Deps struct {
Manager *memory.Manager
Consolidator *heartbeat.Consolidator
Graph *graph.InMemoryGraph
}
Deps bundles all dependencies for MCP handlers.
type GraphAddInput ¶
type GraphNeighborsInput ¶
type GraphSearchInput ¶
type GraphStatsInput ¶
type GraphStatsInput struct{}
type HeartbeatInput ¶
type HeartbeatInput struct {
UserID string `json:"user_id,omitempty" jsonschema:"Scope consolidation to user"`
AgentID string `json:"agent_id,omitempty" jsonschema:"Scope consolidation to agent"`
AppID string `json:"app_id,omitempty" jsonschema:"Scope consolidation to application"`
RunID string `json:"run_id,omitempty" jsonschema:"Scope consolidation to session/run"`
}
type ListInput ¶
type ListInput struct {
Type string `json:"type,omitempty" jsonschema:"Filter by memory type"`
UserID string `json:"user_id,omitempty" jsonschema:"Filter by user scope"`
AgentID string `json:"agent_id,omitempty" jsonschema:"Filter by agent scope"`
AppID string `json:"app_id,omitempty" jsonschema:"Filter by application scope"`
RunID string `json:"run_id,omitempty" jsonschema:"Filter by session/run scope"`
Limit int `json:"limit,omitempty" jsonschema:"Max results (default 20)"`
Offset int `json:"offset,omitempty" jsonschema:"Offset for pagination (default 0)"`
}
type SearchInput ¶
type SearchInput struct {
Query string `json:"query" jsonschema:"Natural language search query"`
Limit int `json:"limit,omitempty" jsonschema:"Maximum results to return (default 10)"`
Type string `json:"type,omitempty" jsonschema:"Filter by memory type"`
UserID string `json:"user_id,omitempty" jsonschema:"Filter by user scope"`
AgentID string `json:"agent_id,omitempty" jsonschema:"Filter by agent scope"`
AppID string `json:"app_id,omitempty" jsonschema:"Filter by application scope"`
RunID string `json:"run_id,omitempty" jsonschema:"Filter by session/run scope"`
}
type StatsInput ¶
Click to show internal directories.
Click to hide internal directories.