memory_entity

Shipped in v3-alpha (Beta). Interface may still change before 3.0 stable.

Description

Manage entities (people, projects, systems) in your knowledge graph.

Input schema

{
  action: "find" | "create" | "link" | "graph",
  find?:   { name: string },
  create?: { name; kind; aliases? },
  link?:   { fromEntity; toEntity; verb; context? },
  graph?:  { entityId; depth?: number },
}

Example

// Find or create an entity by name
const entity = await mcp.callTool("memory_entity", {
  action: "find",
  find: { name: "billing-service" },
});
 
// Link two entities
await mcp.callTool("memory_entity", {
  action: "link",
  link: {
    fromEntity: "billing-service",
    toEntity: "stripe",
    verb: "depends_on",
    context: "Stripe API for payment intent creation",
  },
});
 
// Get the subgraph around an entity
const sub = await mcp.callTool("memory_entity", {
  action: "graph",
  graph: { entityId: "billing-service", depth: 2 },
});

Backed by