API Reference

EntityCard

A card for a typed thing — a person, service, dataset, or concept — with fields and typed relations.

An EntityCard is a card for a typed thing — a person, service, dataset, or concept — with a type chip, a summary, a dl of fields, and a row of typed relations. It renders a clean card for humans and serializes to a first-class graph entity for agents.

When to use it

This is the highest-leverage knowledge face: it turns a superlore KB into a knowledge graph. Use it whenever a page describes an addressable entity an agent should be able to list (by type), get (by entity:type/slug), and navigate (by relation).

Props

EntityCard

PropTypeDefaultDescription
typestringThe entity type (service, person, dataset, …) — shown as a chip and used in the entity:type/slug address
slugstringStable id within its type; combines with type to address the entity
titlestringDisplay name
summarystringOne-line gloss under the title
iconstringA lucide icon name shown in the header
fields{ key, value, type? }[]The dl rows; numeric fields render mono/tabular
refs{ rel?, target, label? }[]Typed relations — entity: targets link in-page

A field's type is one of text · number · bool · date · enum · code · ref, and it is preserved in the knowledge face so an agent knows how to compare it.

Live example

superlore MCP Server

service

Serves the structured index to agents.

transport
Streamable HTTP
auth
public (this deploy)
tools
6

What the agent sees

A first-class graph entity — entityType + slug make it addressable, fields keep their types, and refs are the edges navigate follows. The entity: ref is internal; so is the /docs/agents/mcp path:

{
  "kind": "entity",
  "id": "mcp-server",
  "title": "superlore MCP Server",
  "summary": "Serves the structured index to agents.",
  "entityType": "service",
  "slug": "mcp-server",
  "fields": [
    { "key": "transport", "value": "Streamable HTTP" },
    { "key": "auth", "value": "public (this deploy)" },
    { "key": "tools", "value": "6", "type": "number" }
  ],
  "refs": [
    {
      "rel": "part-of",
      "target": "entity:product/superlore",
      "label": "superlore",
      "internal": true
    },
    { "rel": "related", "target": "/docs/agents/mcp", "label": "MCP docs", "internal": true }
  ]
}

From card to graph

Because the entity is addressable as entity:service/mcp-server, an agent can call list(entityType: "service") to enumerate every service in the KB, then navigate the part-of edge to reach the product. No page text is parsed — the edges are declared.

On this page

Built withsuperlore