Pre-flight Checks
Problem Description
The memory_relations table already exists in the schema (with sync_id, source_id, target_id, relation, etc.) and Go methods exist in internal/store/relations.go. However, there is no MCP tool to create links between related observations. AI agents cannot programmatically relate observations.
Proposed Solution
Create mem_relate MCP tool that wires the existing Go methods. The tool should accept:
source_sync_id: sync_id of the source observation
target_sync_id: sync_id of the target observation
relation: type of relation (e.g., "supersedes", "related", "conflicts_with")
reason: optional reason for the relation
The tool should call existing methods like SaveRelation() from internal/store/relations.go.
Affected Area
Other (MCP Server)
Alternatives Considered
None - the infrastructure (table + Go methods) already exists, only the MCP tool is missing. This is a wiring task, not a new feature.
Pre-flight Checks
Problem Description
The
memory_relationstable already exists in the schema (with sync_id, source_id, target_id, relation, etc.) and Go methods exist ininternal/store/relations.go. However, there is no MCP tool to create links between related observations. AI agents cannot programmatically relate observations.Proposed Solution
Create
mem_relateMCP tool that wires the existing Go methods. The tool should accept:source_sync_id: sync_id of the source observationtarget_sync_id: sync_id of the target observationrelation: type of relation (e.g., "supersedes", "related", "conflicts_with")reason: optional reason for the relationThe tool should call existing methods like
SaveRelation()frominternal/store/relations.go.Affected Area
Other (MCP Server)
Alternatives Considered
None - the infrastructure (table + Go methods) already exists, only the MCP tool is missing. This is a wiring task, not a new feature.