Brainz is an MCP server published by ai.brownmatter, hosted at brainz.brownmatter.ai. When last checked on 2026-11-24 it was working: it answers and lists its tools. It declares 18 tools, including search_concepts, get_concept, get_related, get_context, upsert_concept.
Shared product-knowledge graph for AI agent fleets — vault tools + agent self-signup over MCP.
Nothing else in the archive shares these values.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Search the product knowledge vault by free-text query. Useful when you need product knowledge but don't yet know which concept ids exist. Returns ranked hits (id, title, type, score, snippet) only; get_concept returns one full note and get_context an assembled briefing. An empty hit list means nothing matched.
| Parameter | Type | Description |
|---|---|---|
| mode | string | Search mode. "hybrid" (default) fuses keyword and semantic ranking; semantic silently falls back to keyword if embeddings are unavailable. |
| tags | array | Only return concepts carrying ALL of these tags. |
| type | string | Only return concepts of this type. |
| limit | integer | Max hits to return (default 10). |
| query * | string | Free-text search query, e.g. "lead scoring" or "session auth". |
| product | string | Only return concepts belonging to this product. |
{
"name": "search_concepts",
"title": "Search concepts",
"description": "Search the product knowledge vault by free-text query. Useful when you need product knowledge but don't yet know which concept ids exist. Returns ranked hits (id, title, type, score, snippet) only; get_concept returns one full note and get_context an assembled briefing. An empty hit list means nothing matched.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"query"
],
"properties": {
"mode": {
"enum": [
"hybrid",
"keyword",
"semantic"
],
"type": "string",
"default": "hybrid",
"description": "Search mode. \"hybrid\" (default) fuses keyword and semantic ranking; semantic silently falls back to keyword if embeddings are unavailable."
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "Only return concepts carrying ALL of these tags."
},
"type": {
"enum": [
"concept",
"domain",
"feature",
"story",
"spec",
"workflow",
"task",
"decision",
"constraint",
"pattern",
"glossary",
"iteration",
"milestone",
"epic"
],
"type": "string",
"description": "Only return concepts of this type."
},
"limit": {
"type": "integer",
"default": 10,
"maximum": 50,
"minimum": 1,
"description": "Max hits to return (default 10)."
},
"query": {
"type": "string",
"description": "Free-text search query, e.g. \"lead scoring\" or \"session auth\"."
},
"product": {
"type": "string",
"description": "Only return concepts belonging to this product."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Search concepts",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Fetch one concept by exact id: full markdown body, metadata, and its direct graph neighbors (each with the relation that connects it). Use after search_concepts or when another note wiki-links an id you need in full. The neighbors list tells you what to fetch next. If you don't know the id, use search_concepts instead.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Exact concept id (slug), e.g. "lead-scoring". |
{
"name": "get_concept",
"title": "Get concept",
"description": "Fetch one concept by exact id: full markdown body, metadata, and its direct graph neighbors (each with the relation that connects it). Use after search_concepts or when another note wiki-links an id you need in full. The neighbors list tells you what to fetch next. If you don't know the id, use search_concepts instead.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Exact concept id (slug), e.g. \"lead-scoring\"."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Get concept",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Walk the knowledge graph outward from a concept and return everything within `depth` hops, with distance and the edge path that reached it. Use to map the blast radius before changing a feature (what depends on it, what constrains it, which decisions apply) or to discover structure that keyword search misses. Filter by relation names (e.g. depends_on) to follow only one kind of edge.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Concept id to start from. |
| depth | integer | How many hops to traverse (1-3, default 1). |
| limit | integer | Max related nodes to return. |
| relations | array | Only follow edges with these relation names, e.g. ["depends_on", "part_of"]. |
{
"name": "get_related",
"title": "Get related concepts",
"description": "Walk the knowledge graph outward from a concept and return everything within `depth` hops, with distance and the edge path that reached it. Use to map the blast radius before changing a feature (what depends on it, what constrains it, which decisions apply) or to discover structure that keyword search misses. Filter by relation names (e.g. depends_on) to follow only one kind of edge.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Concept id to start from."
},
"depth": {
"type": "integer",
"default": 1,
"maximum": 3,
"minimum": 1,
"description": "How many hops to traverse (1-3, default 1)."
},
"limit": {
"type": "integer",
"minimum": 1,
"description": "Max related nodes to return."
},
"relations": {
"type": "array",
"items": {
"type": "string"
},
"description": "Only follow edges with these relation names, e.g. [\"depends_on\", \"part_of\"]."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Get related concepts",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Assemble a markdown briefing of the concepts most relevant to a query and/or explicit ids, expanded through the graph and trimmed to a token budget. The briefing is self-contained, so it can be handed to another agent or pasted into a prompt as-is. The final JSON line reports which concept ids were included, whether the bundle was truncated, and its approximate token count. Provide at least one of `query` or `ids`.
| Parameter | Type | Description |
|---|---|---|
| ids | array | Explicit seed concept ids (kept first, in order). |
| depth | integer | Graph hops to expand from the seeds (default 1). |
| query | string | Search query used to pick seed concepts. |
| product | string | Restrict expansion to concepts of this product. |
| tokenBudget | integer | Approximate token cap for the bundle (chars/4, default 4000). |
{
"name": "get_context",
"title": "Assemble context bundle",
"description": "Assemble a markdown briefing of the concepts most relevant to a query and/or explicit ids, expanded through the graph and trimmed to a token budget. The briefing is self-contained, so it can be handed to another agent or pasted into a prompt as-is. The final JSON line reports which concept ids were included, whether the bundle was truncated, and its approximate token count. Provide at least one of `query` or `ids`.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Explicit seed concept ids (kept first, in order)."
},
"depth": {
"type": "integer",
"default": 1,
"maximum": 3,
"minimum": 0,
"description": "Graph hops to expand from the seeds (default 1)."
},
"query": {
"type": "string",
"description": "Search query used to pick seed concepts."
},
"product": {
"type": "string",
"description": "Restrict expansion to concepts of this product."
},
"tokenBudget": {
"type": "integer",
"default": 4000,
"minimum": 1,
"description": "Approximate token cap for the bundle (chars/4, default 4000)."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Assemble context bundle",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Write a concept note into the vault (creates or overwrites the markdown file, then reindexes it). Use to capture new product knowledge discovered during a task — a decision made, a constraint hit, a pattern adopted — so future agents can find it. Omit `id` to derive a slug from the title; pass an existing id to update that note. Body is markdown; [[wiki-links]] to other concept ids create graph edges. Returns the saved concept's metadata.
| Parameter | Type | Description |
|---|---|---|
| id | string | Concept id (slug). Omit to derive from title; pass an existing id to update. |
| body * | string | Markdown body. [[other-id]] wiki-links become graph edges. |
| tags | array | Tags for filtering. |
| type | string | Concept type (default "concept"). The 14 built-in types are concept, domain, feature, story, spec, workflow, task, decision, constraint, pattern, glossary, iteration (a time-box such as a sprint) and milestone (a scoped deliverable with a target date) and epic (an overarching body of work that tasks… |
| title * | string | Human-readable title (required, non-empty). |
| doneAt | string | For tasks: ISO timestamp when completed. |
| status | string | Lifecycle status (default "active"). |
| endDate | any | For iterations/milestones: end or target day YYYY-MM-DD (null clears it). |
Remove a concept from the vault and all of its outgoing edges. Use to clear a note that is wrong, obsolete, or junk (e.g. a probe or test node that shouldn't be in the graph). Idempotent: deleting an id that doesn't exist is a no-op success (deleted:false), not an error. Deletion is permanent — prefer upsert_concept to correct a note you want to keep. Returns { deleted, id }.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Exact concept id (slug) to delete, e.g. "lead-scoring". |
{
"name": "delete_concept",
"title": "Delete concept",
"description": "Remove a concept from the vault and all of its outgoing edges. Use to clear a note that is wrong, obsolete, or junk (e.g. a probe or test node that shouldn't be in the graph). Idempotent: deleting an id that doesn't exist is a no-op success (deleted:false), not an error. Deletion is permanent — prefer upsert_concept to correct a note you want to keep. Returns { deleted, id }.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Exact concept id (slug) to delete, e.g. \"lead-scoring\"."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Delete concept",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": true
}
}Add a typed, directed edge between two existing concepts by editing the `from` note's frontmatter (e.g. lead-scoring depends_on contact-model). Use when you notice a relationship the vault is missing. Both concepts should already exist; use upsert_concept first if not.
| Parameter | Type | Description |
|---|---|---|
| to * | string | Target concept id. |
| from * | string | Source concept id (its file gains the relation). |
| relation | string | Edge type, e.g. part_of | realized_by | governs | depends_on | constrains | supersedes | related_to (default). Domain→domain links (related_to / depends_on) are encouraged where two domains share a boundary, so the graph shows how areas overlap. |
{
"name": "link_concepts",
"title": "Link concepts",
"description": "Add a typed, directed edge between two existing concepts by editing the `from` note's frontmatter (e.g. lead-scoring depends_on contact-model). Use when you notice a relationship the vault is missing. Both concepts should already exist; use upsert_concept first if not.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"from",
"to"
],
"properties": {
"to": {
"type": "string",
"description": "Target concept id."
},
"from": {
"type": "string",
"description": "Source concept id (its file gains the relation)."
},
"relation": {
"type": "string",
"default": "related_to",
"description": "Edge type, e.g. part_of | realized_by | governs | depends_on | constrains | supersedes | related_to (default). Domain→domain links (related_to / depends_on) are encouraged where two domains share a boundary, so the graph shows how areas overlap."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Link concepts",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}Enumerate concept metadata (no bodies), optionally filtered by product, type, or a single tag. Use to get the lay of the land in an unfamiliar vault, to audit what exists (e.g. all decisions for a product), or when search vocabulary isn't matching. For content, follow up with get_concept or get_context.
| Parameter | Type | Description |
|---|---|---|
| tag | string | Only concepts carrying this tag. |
| type | string | Only concepts of this type. |
| product | string | Only concepts of this product. |
{
"name": "list_concepts",
"title": "List concepts",
"description": "Enumerate concept metadata (no bodies), optionally filtered by product, type, or a single tag. Use to get the lay of the land in an unfamiliar vault, to audit what exists (e.g. all decisions for a product), or when search vocabulary isn't matching. For content, follow up with get_concept or get_context.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"tag": {
"type": "string",
"description": "Only concepts carrying this tag."
},
"type": {
"enum": [
"concept",
"domain",
"feature",
"story",
"spec",
"workflow",
"task",
"decision",
"constraint",
"pattern",
"glossary",
"iteration",
"milestone",
"epic"
],
"type": "string",
"description": "Only concepts of this type."
},
"product": {
"type": "string",
"description": "Only concepts of this product."
}
},
"additionalProperties": false
},
"annotations": {
"title": "List concepts",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Summarize the vault: counts of concepts and edges, the products and tags in use, a breakdown by concept type, and whether semantic search is available. Useful for gauging how much knowledge is here and which product/tag filters exist.
No parameters.
{
"name": "vault_stats",
"title": "Vault stats",
"description": "Summarize the vault: counts of concepts and edges, the products and tags in use, a breakdown by concept type, and whether semantic search is available. Useful for gauging how much knowledge is here and which product/tag filters exist.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
},
"annotations": {
"title": "Vault stats",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Index an existing product's codebase into this vault. {action: "start"} returns the onboarding playbook: a method for surveying the codebase and recording its product knowledge (domains, features, stories, specs, workflows, decisions, constraints) as concepts via upsert_concept, each anchored to the code with codeAreas. {action: "status", areaList} reports onboarded state, concept counts and, given your repo's source areas (Brainz can't read the repo), which areas are covered or uncovered. {action: "complete", summary, areaList} marks the vault onboarded and stores the summary; it is rejected while too many areas are uncovered. Until onboarding completes, search_concepts and get_context results include a one-line note saying so.
| Parameter | Type | Description |
|---|---|---|
| action * | string | "start" returns the onboarding playbook, "complete" marks the vault onboarded (requires `summary`), "status" reports onboarded state and concept counts. |
| summary | string | Required with "complete": 2–5 sentences on what was indexed and any notable gaps — stored as the product-onboarding-summary concept. |
| areaList | array | With "status" or "complete": the repo's top-level source areas (packages/*, apps/*/src subtrees, major dirs) from your own repo walk — Brainz can't read the repo. "status" diffs concepts' code_areas against this to report covered vs uncovered areas; "complete" is REJECTED if too many areas are still… |
| repoHint | string | With "start": where the codebase lives (path or URL), echoed into the playbook. |
| productName | string | With "start": the product's name, echoed into the playbook heading. |
Re-index an onboarded vault after the code changes (drift). {action: "start"} returns the sync playbook: the vault's last_synced_at, a coverage map over the concepts' code_areas, and a method for re-indexing only what changed (you run git — Brainz can't read the repo — and pass back changedPaths + areaList): update stale concepts in place, add concepts or tasks for new work, and report coverage gaps. {action: "status", areaList} reports onboarded state, last sync time, staleness, concept counts and coverage. {action: "complete", summary, areaList} stamps last_synced_at and appends the summary to the product-onboarding-summary concept (a running sync log). After ~14 days without a sync, get_context and search results include a one-line note saying so.
| Parameter | Type | Description |
|---|---|---|
| action * | string | "start" returns the sync (re-onboard) playbook — a DRIFT playbook scoped to what changed since the last sync (NOT the full onboarding playbook). "complete" records last_synced_at and appends the summary to the running sync log (requires `summary`). "status" reports onboarded state, last sync time, c… |
| summary | string | Required with "complete": 2–5 sentences on what changed, what you updated, and what you indexed — APPENDED to the product-onboarding-summary concept as a running sync log (never overwritten). |
| areaList | array | With "start", "status", or "complete": the repo's top-level source areas from your own repo walk (Brainz can't read the repo). Used to compute the coverage map (covered vs uncovered areas) — "complete" is REJECTED if too many areas are still uncovered. |
| productName | string | With "start": the product's name, echoed into the playbook heading. |
| changedPaths | array | With "start": paths you found CHANGED since last_synced_at (from your own git diff/log). The playbook focuses the fan-out on the areas these fall under. |
Dreaming: a scheduled consolidation sweep over this vault. Light stages what changed since the last dream (near-duplicate concepts, finished task outcomes, hygiene counts); REM asks an LLM for proposals; deep applies the ones that pass threshold gates: merges duplicates (edges redirected, the other tombstoned), promotes outcome knowledge into concepts, adds missing links, and files a task for each contradiction. A sweep that would touch too much of the vault is rejected; every applied dream keeps preimages and can be reverted. {action: "status"} shows schedule + last dream; {action: "run"} dreams now; {action: "diary"} reads the Dream Diary; {action: "revert", id} undoes one dream; {action: "configure", ...} sets the schedule, mode (apply, propose, light-only), phases, thresholds, caps, a stricter loss rail and the LLM choice; {action: "apply", id, proposals?} decides a proposed dream. Without an LLM only light runs.
| Parameter | Type | Description |
|---|---|---|
| id | string | With "revert" or "apply": the dream id (from "diary" or "status"). |
| llm | object | With "configure": Cloud: which LLM the REM step uses — "auto" (default), "workers-ai", or "byok" (only the account's own key) — and a model id for the account's own key; null clears it. |
| caps | object | With "configure": Most changes per dream: maxMerges 5 (1-20), maxPromotions 5 (1-20), maxLinks 10 (1-50), maxContradictions 3 (1-10). |
| mode | string | With "configure": "apply" writes the changes that pass the gates (default); "propose" holds them in the Dream Diary until approved with {action: "apply"}; "light-only" never calls an LLM. |
| limit | integer | With "diary": how many entries to return (default 10). |
List the vault's work pile: `task`-type concepts with their lifecycle (open/taken/done), oldest first, including who has taken each one (takenBy). Filter by taskStatus or by the domain the tasks are part_of. Read-only; take_task is what claims a task.
| Parameter | Type | Description |
|---|---|---|
| domain | string | Only tasks that are part_of this domain concept id. |
| taskStatus | string | Only tasks in this lifecycle state ("open" | "taken" | "done"). Omit for all. |
{
"name": "list_tasks",
"title": "List tasks",
"description": "List the vault's work pile: `task`-type concepts with their lifecycle (open/taken/done), oldest first, including who has taken each one (takenBy). Filter by taskStatus or by the domain the tasks are part_of. Read-only; take_task is what claims a task.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"domain": {
"type": "string",
"description": "Only tasks that are part_of this domain concept id."
},
"taskStatus": {
"enum": [
"open",
"taken",
"done"
],
"type": "string",
"description": "Only tasks in this lifecycle state (\"open\" | \"taken\" | \"done\"). Omit for all."
}
},
"additionalProperties": false
},
"annotations": {
"title": "List tasks",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Burndown and flow metrics for the vault's tasks, computed from their recorded history. `scope` is a concept id (an iteration, milestone, feature, domain or any concept tasks are part_of / realize, including nested containers) or `tag:<tag>`; omit it for every task. Returns, for the window: open vs done over time with an ideal line when the scope has start/end dates, scope changes, velocity per iteration or week, a projected completion date with an optimistic/pessimistic range, lead and cycle time per agent label, and claims held longer than `staleAfterHours`. `metrics` limits the sections returned. Read-only.
| Parameter | Type | Description |
|---|---|---|
| to | ref | Window end (YYYY-MM-DD or ISO). Default: the later of the scope's endDate and now. |
| from | string | Window start (YYYY-MM-DD or ISO). Default: the scope's startDate, else 8 weeks ago. |
| unit | string | Count tasks (default) or sum their `estimate` points. |
| scope | string | A concept id (iteration, milestone, feature, domain, …) or `tag:<tag>`. Omit for every task in the vault. |
| bucket | string | Series granularity. Default: day for windows up to 120 days, else week. |
| metrics | array | Sections to include: series, scopeChanges, velocity, projection, cycle, agents, stale (default all). |
| staleAfterHours | number | A claim held longer than this is stale (default 24). |
Claim a task and get its briefing in one call. Pass an `id` to claim a specific task, or omit it to claim the next open task (oldest open by createdAt then id). Atomically flips the task to "taken" and records takenBy/takenAt; errors if it's already taken or done. Returns the task and a get_context-style briefing for its part_of domain plus the concepts it realizes / is governed_by (with code_areas). complete_task marks it done.
| Parameter | Type | Description |
|---|---|---|
| id | string | Claim this specific task by id. Omit to claim THE next open task (oldest by createdAt then id). |
| takenBy | string | Label for who's claiming it (agent/orchestrator name). Defaults to a generic label. |
{
"name": "take_task",
"title": "Take a task off the pile",
"description": "Claim a task and get its briefing in one call. Pass an `id` to claim a specific task, or omit it to claim the next open task (oldest open by createdAt then id). Atomically flips the task to \"taken\" and records takenBy/takenAt; errors if it's already taken or done. Returns the task and a get_context-style briefing for its part_of domain plus the concepts it realizes / is governed_by (with code_areas). complete_task marks it done.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"id": {
"type": "string",
"description": "Claim this specific task by id. Omit to claim THE next open task (oldest by createdAt then id)."
},
"takenBy": {
"type": "string",
"description": "Label for who's claiming it (agent/orchestrator name). Defaults to a generic label."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Take a task off the pile",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}Mark a task done. Sets taskStatus=done + doneAt and appends `outcome` to the task body as an Outcome section. The result carries a one-line `reminder` that the rest of the graph is not updated automatically.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Id of the task to mark done. |
| outcome * | string | A short account of what was done — appended to the task body as an Outcome section. |
{
"name": "complete_task",
"title": "Complete a task",
"description": "Mark a task done. Sets taskStatus=done + doneAt and appends `outcome` to the task body as an Outcome section. The result carries a one-line `reminder` that the rest of the graph is not updated automatically.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id",
"outcome"
],
"properties": {
"id": {
"type": "string",
"description": "Id of the task to mark done."
},
"outcome": {
"type": "string",
"description": "A short account of what was done — appended to the task body as an Outcome section."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Complete a task",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}Turn a finding into first-class work: creates a `task`-type concept with taskStatus=open and the given relations — part_of a domain and/or an epic, `realizes` stories/features, `governed_by` specs — plus codeAreas pointing at where the work lands. Use when you discover work that isn't reflected in the codebase yet (a gap, a needed fix, a follow-up). The task then shows up in list_tasks / take_task and on the Kanban board.
| Parameter | Type | Description |
|---|---|---|
| body * | string | Markdown description of the work. [[wiki-links]] become edges. |
| epic | string | Epic concept id this task is part_of (the overarching body of work it belongs to). |
| tags | array | Tags, e.g. a priority tag like "high" or an area tag. |
| title * | string | Human-readable task title (required, non-empty). |
| domain | string | Domain concept id this task is part_of. |
| realizes | array | Story/feature concept ids this task realizes (creates `realizes` edges). |
| codeAreas | array | Rough codebase paths/globs where the work lands. |
| governedBy | array | Spec concept ids that govern this task (creates `governed_by` edges). |
Create a new, empty vault owned by you and add it to this connection. Returns the new vault and the vaults this connection can now use. Once a connection covers more than one vault, every vault tool takes a `vault` argument (a slug or id) and list_vaults lists the vaults. Each account has a vault limit and an hourly creation limit.
| Parameter | Type | Description |
|---|---|---|
| name * | string | The new vault's display name. |
| slug | string | Optional slug (lowercase letters, digits, dashes). Derived from `name` when omitted; must not already be used by one of your vaults. |
{
"name": "create_vault",
"title": "Create a vault",
"description": "Create a new, empty vault owned by you and add it to this connection. Returns the new vault and the vaults this connection can now use. Once a connection covers more than one vault, every vault tool takes a `vault` argument (a slug or id) and list_vaults lists the vaults. Each account has a vault limit and an hourly creation limit.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "The new vault's display name."
},
"slug": {
"type": "string",
"minLength": 1,
"description": "Optional slug (lowercase letters, digits, dashes). Derived from `name` when omitted; must not already be used by one of your vaults."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Create a vault",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}# Brainz — shared product knowledge graph This server is one Brainz vault: a product's features, specs, decisions, constraints and tasks, stored as linked markdown concepts. - `search_concepts`, `list_concepts`, `get_concept` and `get_related` find and read concepts; `get_context` assembles a token-budgeted briefing on a topic; `vault_stats` summarizes the vault. - `upsert_concept`, `link_concepts` and `delete_concept` edit the graph. - `list_tasks`, `create_task`, `take_task` and `complete_task` manage the vault's task pile. - `onboard` and `sync` return playbooks for indexing a codebase into the vault; `dream` runs or configures the consolidation sweep.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
| product | string | Product grouping key. |
| takenAt | string | For tasks: ISO timestamp when claimed. |
| takenBy | string | For tasks: label of the agent/orchestrator that claimed it. |
| estimate | any | For tasks: story points (null clears it). |
| codeAreas | array | Rough codebase paths/globs where this knowledge lives, e.g. ["packages/core/src/vault.ts", "apps/web/src/routes/**"] — lets agents briefed by get_context know where to apply it. |
| relations | object | Typed edges, e.g. {"depends_on": ["auth-system"]}. Conventions: part_of (feature/story/task → domain), realized_by (story → features), realizes (task → stories/features), governs (spec → what it constrains), governed_by (task → specs), depends_on, constrains, supersedes, related_to. For domain conce… |
| startDate | any | For iterations/milestones: start day YYYY-MM-DD (null clears it). |
| taskStatus | string | For type="task" concepts: lifecycle "open" | "taken" | "done" (default "open"). Prefer the task tools (create_task / take_task / complete_task) over setting this directly. |
{
"name": "upsert_concept",
"title": "Create or update concept",
"description": "Write a concept note into the vault (creates or overwrites the markdown file, then reindexes it). Use to capture new product knowledge discovered during a task — a decision made, a constraint hit, a pattern adopted — so future agents can find it. Omit `id` to derive a slug from the title; pass an existing id to update that note. Body is markdown; [[wiki-links]] to other concept ids create graph edges. Returns the saved concept's metadata.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"title",
"body"
],
"properties": {
"id": {
"type": "string",
"description": "Concept id (slug). Omit to derive from title; pass an existing id to update."
},
"body": {
"type": "string",
"description": "Markdown body. [[other-id]] wiki-links become graph edges."
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "Tags for filtering."
},
"type": {
"type": "string",
"description": "Concept type (default \"concept\"). The 14 built-in types are concept, domain, feature, story, spec, workflow, task, decision, constraint, pattern, glossary, iteration (a time-box such as a sprint) and milestone (a scoped deliverable with a target date) and epic (an overarching body of work that tasks and features are part_of); a vault may also define custom types. An unknown type falls back to \"concept\"."
},
"title": {
"type": "string",
"description": "Human-readable title (required, non-empty)."
},
"doneAt": {
"type": "string",
"description": "For tasks: ISO timestamp when completed."
},
"status": {
"enum": [
"active",
"draft",
"deprecated"
],
"type": "string",
"description": "Lifecycle status (default \"active\")."
},
"endDate": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
],
"description": "For iterations/milestones: end or target day YYYY-MM-DD (null clears it)."
},
"product": {
"type": "string",
"description": "Product grouping key."
},
"takenAt": {
"type": "string",
"description": "For tasks: ISO timestamp when claimed."
},
"takenBy": {
"type": "string",
"description": "For tasks: label of the agent/orchestrator that claimed it."
},
"estimate": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "null"
}
],
"description": "For tasks: story points (null clears it)."
},
"codeAreas": {
"type": "array",
"items": {
"type": "string"
},
"description": "Rough codebase paths/globs where this knowledge lives, e.g. [\"packages/core/src/vault.ts\", \"apps/web/src/routes/**\"] — lets agents briefed by get_context know where to apply it."
},
"relations": {
"type": "object",
"description": "Typed edges, e.g. {\"depends_on\": [\"auth-system\"]}. Conventions: part_of (feature/story/task → domain), realized_by (story → features), realizes (task → stories/features), governs (spec → what it constrains), governed_by (task → specs), depends_on, constrains, supersedes, related_to. For domain concepts, prefer linking to OTHER domains (related_to / depends_on) wherever they share a boundary or hand off responsibility — connected domains reveal how the product's areas overlap instead of floating as isolated islands.",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
},
"startDate": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
],
"description": "For iterations/milestones: start day YYYY-MM-DD (null clears it)."
},
"taskStatus": {
"enum": [
"open",
"taken",
"done"
],
"type": "string",
"description": "For type=\"task\" concepts: lifecycle \"open\" | \"taken\" | \"done\" (default \"open\"). Prefer the task tools (create_task / take_task / complete_task) over setting this directly."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Create or update concept",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": true
}
}{
"name": "onboard",
"title": "Onboard this vault",
"description": "Index an existing product's codebase into this vault. {action: \"start\"} returns the onboarding playbook: a method for surveying the codebase and recording its product knowledge (domains, features, stories, specs, workflows, decisions, constraints) as concepts via upsert_concept, each anchored to the code with codeAreas. {action: \"status\", areaList} reports onboarded state, concept counts and, given your repo's source areas (Brainz can't read the repo), which areas are covered or uncovered. {action: \"complete\", summary, areaList} marks the vault onboarded and stores the summary; it is rejected while too many areas are uncovered. Until onboarding completes, search_concepts and get_context results include a one-line note saying so.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"action"
],
"properties": {
"action": {
"enum": [
"start",
"complete",
"status"
],
"type": "string",
"description": "\"start\" returns the onboarding playbook, \"complete\" marks the vault onboarded (requires `summary`), \"status\" reports onboarded state and concept counts."
},
"summary": {
"type": "string",
"description": "Required with \"complete\": 2–5 sentences on what was indexed and any notable gaps — stored as the product-onboarding-summary concept."
},
"areaList": {
"type": "array",
"items": {
"type": "string"
},
"description": "With \"status\" or \"complete\": the repo's top-level source areas (packages/*, apps/*/src subtrees, major dirs) from your own repo walk — Brainz can't read the repo. \"status\" diffs concepts' code_areas against this to report covered vs uncovered areas; \"complete\" is REJECTED if too many areas are still uncovered."
},
"repoHint": {
"type": "string",
"description": "With \"start\": where the codebase lives (path or URL), echoed into the playbook."
},
"productName": {
"type": "string",
"description": "With \"start\": the product's name, echoed into the playbook heading."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Onboard this vault",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}{
"name": "sync",
"title": "Sync this vault to the current code",
"description": "Re-index an onboarded vault after the code changes (drift). {action: \"start\"} returns the sync playbook: the vault's last_synced_at, a coverage map over the concepts' code_areas, and a method for re-indexing only what changed (you run git — Brainz can't read the repo — and pass back changedPaths + areaList): update stale concepts in place, add concepts or tasks for new work, and report coverage gaps. {action: \"status\", areaList} reports onboarded state, last sync time, staleness, concept counts and coverage. {action: \"complete\", summary, areaList} stamps last_synced_at and appends the summary to the product-onboarding-summary concept (a running sync log). After ~14 days without a sync, get_context and search results include a one-line note saying so.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"action"
],
"properties": {
"action": {
"enum": [
"start",
"complete",
"status"
],
"type": "string",
"description": "\"start\" returns the sync (re-onboard) playbook — a DRIFT playbook scoped to what changed since the last sync (NOT the full onboarding playbook). \"complete\" records last_synced_at and appends the summary to the running sync log (requires `summary`). \"status\" reports onboarded state, last sync time, concept counts, staleness, and (with areaList) coverage."
},
"summary": {
"type": "string",
"description": "Required with \"complete\": 2–5 sentences on what changed, what you updated, and what you indexed — APPENDED to the product-onboarding-summary concept as a running sync log (never overwritten)."
},
"areaList": {
"type": "array",
"items": {
"type": "string"
},
"description": "With \"start\", \"status\", or \"complete\": the repo's top-level source areas from your own repo walk (Brainz can't read the repo). Used to compute the coverage map (covered vs uncovered areas) — \"complete\" is REJECTED if too many areas are still uncovered."
},
"productName": {
"type": "string",
"description": "With \"start\": the product's name, echoed into the playbook heading."
},
"changedPaths": {
"type": "array",
"items": {
"type": "string"
},
"description": "With \"start\": paths you found CHANGED since last_synced_at (from your own git diff/log). The playbook focuses the fan-out on the areas these fall under."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Sync this vault to the current code",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}| action * |
| string |
| "status" reports the settings, the last/next dream and any sweep in flight. "run" starts (or continues) a sweep NOW and advances it as far as one request allows. "diary" returns recent Dream Diary entries (newest first). "revert" undoes one dream via its preimages (requires `id`). "configure" change… |
| phases | object | With "configure": Turn individual kinds of change on or off: merges, promotions, links, contradictions. |
| enabled | boolean | With "configure": Turn scheduled dreaming on or off. |
| lossRail | object | With "configure": How much of the vault one dream may modify: maxTouchFraction (0.01-0.2) and minTouchAllowance (0-3). Can only be made stricter than the defaults. |
| proposals | array | With "apply": the proposal numbers (`n`) to approve; omit for all, [] to reject all. |
| runHourUtc | any | With "configure": Preferred UTC hour for a dream when the cadence is 24h or more; null clears it. |
| thresholds | object | With "configure": Minimum confidence (0.5-1) per kind: merge 0.8, promote 0.7, link 0.7, contradiction 0.6 by default. |
| cadenceHours | integer | With "configure": Hours between dreams (default 24). |
{
"name": "dream",
"title": "Dream (nightly consolidation)",
"description": "Dreaming: a scheduled consolidation sweep over this vault. Light stages what changed since the last dream (near-duplicate concepts, finished task outcomes, hygiene counts); REM asks an LLM for proposals; deep applies the ones that pass threshold gates: merges duplicates (edges redirected, the other tombstoned), promotes outcome knowledge into concepts, adds missing links, and files a task for each contradiction. A sweep that would touch too much of the vault is rejected; every applied dream keeps preimages and can be reverted. {action: \"status\"} shows schedule + last dream; {action: \"run\"} dreams now; {action: \"diary\"} reads the Dream Diary; {action: \"revert\", id} undoes one dream; {action: \"configure\", ...} sets the schedule, mode (apply, propose, light-only), phases, thresholds, caps, a stricter loss rail and the LLM choice; {action: \"apply\", id, proposals?} decides a proposed dream. Without an LLM only light runs.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"action"
],
"properties": {
"id": {
"type": "string",
"description": "With \"revert\" or \"apply\": the dream id (from \"diary\" or \"status\")."
},
"llm": {
"type": "object",
"properties": {
"model": {
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9._:/@-]+$",
"maxLength": 200,
"minLength": 1
},
{
"type": "null"
}
]
},
"provider": {
"enum": [
"auto",
"workers-ai",
"byok"
],
"type": "string"
}
},
"description": "With \"configure\": Cloud: which LLM the REM step uses — \"auto\" (default), \"workers-ai\", or \"byok\" (only the account's own key) — and a model id for the account's own key; null clears it.",
"additionalProperties": false
},
"caps": {
"type": "object",
"properties": {
"maxLinks": {
"type": "integer",
"maximum": 50,
"minimum": 1
},
"maxMerges": {
"type": "integer",
"maximum": 20,
"minimum": 1
},
"maxPromotions": {
"type": "integer",
"maximum": 20,
"minimum": 1
},
"maxContradictions": {
"type": "integer",
"maximum": 10,
"minimum": 1
}
},
"description": "With \"configure\": Most changes per dream: maxMerges 5 (1-20), maxPromotions 5 (1-20), maxLinks 10 (1-50), maxContradictions 3 (1-10).",
"additionalProperties": false
},
"mode": {
"enum": [
"apply",
"propose",
"light-only"
],
"type": "string",
"description": "With \"configure\": \"apply\" writes the changes that pass the gates (default); \"propose\" holds them in the Dream Diary until approved with {action: \"apply\"}; \"light-only\" never calls an LLM."
},
"limit": {
"type": "integer",
"maximum": 50,
"minimum": 1,
"description": "With \"diary\": how many entries to return (default 10)."
},
"action": {
"enum": [
"status",
"run",
"diary",
"revert",
"configure",
"apply"
],
"type": "string",
"description": "\"status\" reports the settings, the last/next dream and any sweep in flight. \"run\" starts (or continues) a sweep NOW and advances it as far as one request allows. \"diary\" returns recent Dream Diary entries (newest first). \"revert\" undoes one dream via its preimages (requires `id`). \"configure\" changes this vault's dreaming settings. \"apply\" decides a proposed dream (propose mode): applies the listed `proposals` (all when omitted) and rejects the rest (requires `id`)."
},
"phases": {
"type": "object",
"properties": {
"links": {
"type": "boolean"
},
"merges": {
"type": "boolean"
},
"promotions": {
"type": "boolean"
},
"contradictions": {
"type": "boolean"
}
},
"description": "With \"configure\": Turn individual kinds of change on or off: merges, promotions, links, contradictions.",
"additionalProperties": false
},
"enabled": {
"type": "boolean",
"description": "With \"configure\": Turn scheduled dreaming on or off."
},
"lossRail": {
"type": "object",
"properties": {
"maxTouchFraction": {
"type": "number",
"maximum": 0.2,
"minimum": 0.01
},
"minTouchAllowance": {
"type": "integer",
"maximum": 3,
"minimum": 0
}
},
"description": "With \"configure\": How much of the vault one dream may modify: maxTouchFraction (0.01-0.2) and minTouchAllowance (0-3). Can only be made stricter than the defaults.",
"additionalProperties": false
},
"proposals": {
"type": "array",
"items": {
"type": "integer",
"minimum": 0
},
"maxItems": 200,
"description": "With \"apply\": the proposal numbers (`n`) to approve; omit for all, [] to reject all."
},
"runHourUtc": {
"anyOf": [
{
"type": "integer",
"maximum": 23,
"minimum": 0
},
{
"type": "null"
}
],
"description": "With \"configure\": Preferred UTC hour for a dream when the cadence is 24h or more; null clears it."
},
"thresholds": {
"type": "object",
"properties": {
"link": {
"$ref": "#/properties/thresholds/properties/merge"
},
"merge": {
"type": "number",
"maximum": 1,
"minimum": 0.5
},
"promote": {
"$ref": "#/properties/thresholds/properties/merge"
},
"contradiction": {
"$ref": "#/properties/thresholds/properties/merge"
}
},
"description": "With \"configure\": Minimum confidence (0.5-1) per kind: merge 0.8, promote 0.7, link 0.7, contradiction 0.6 by default.",
"additionalProperties": false
},
"cadenceHours": {
"type": "integer",
"maximum": 168,
"minimum": 1,
"description": "With \"configure\": Hours between dreams (default 24)."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Dream (nightly consolidation)",
"readOnlyHint": false,
"openWorldHint": true,
"destructiveHint": true
}
}{
"name": "burndown",
"title": "Task burndown",
"description": "Burndown and flow metrics for the vault's tasks, computed from their recorded history. `scope` is a concept id (an iteration, milestone, feature, domain or any concept tasks are part_of / realize, including nested containers) or `tag:<tag>`; omit it for every task. Returns, for the window: open vs done over time with an ideal line when the scope has start/end dates, scope changes, velocity per iteration or week, a projected completion date with an optimistic/pessimistic range, lead and cycle time per agent label, and claims held longer than `staleAfterHours`. `metrics` limits the sections returned. Read-only.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"to": {
"$ref": "#/properties/from",
"description": "Window end (YYYY-MM-DD or ISO). Default: the later of the scope's endDate and now."
},
"from": {
"type": "string",
"description": "Window start (YYYY-MM-DD or ISO). Default: the scope's startDate, else 8 weeks ago."
},
"unit": {
"enum": [
"tasks",
"points"
],
"type": "string",
"description": "Count tasks (default) or sum their `estimate` points."
},
"scope": {
"type": "string",
"description": "A concept id (iteration, milestone, feature, domain, …) or `tag:<tag>`. Omit for every task in the vault."
},
"bucket": {
"enum": [
"day",
"week"
],
"type": "string",
"description": "Series granularity. Default: day for windows up to 120 days, else week."
},
"metrics": {
"type": "array",
"items": {
"enum": [
"series",
"scopeChanges",
"velocity",
"projection",
"cycle",
"agents",
"stale"
],
"type": "string"
},
"description": "Sections to include: series, scopeChanges, velocity, projection, cycle, agents, stale (default all)."
},
"staleAfterHours": {
"type": "number",
"description": "A claim held longer than this is stale (default 24).",
"exclusiveMinimum": 0
}
},
"additionalProperties": false
},
"annotations": {
"title": "Task burndown",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}{
"name": "create_task",
"title": "Create a task",
"description": "Turn a finding into first-class work: creates a `task`-type concept with taskStatus=open and the given relations — part_of a domain and/or an epic, `realizes` stories/features, `governed_by` specs — plus codeAreas pointing at where the work lands. Use when you discover work that isn't reflected in the codebase yet (a gap, a needed fix, a follow-up). The task then shows up in list_tasks / take_task and on the Kanban board.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"title",
"body"
],
"properties": {
"body": {
"type": "string",
"description": "Markdown description of the work. [[wiki-links]] become edges."
},
"epic": {
"type": "string",
"description": "Epic concept id this task is part_of (the overarching body of work it belongs to)."
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "Tags, e.g. a priority tag like \"high\" or an area tag."
},
"title": {
"type": "string",
"description": "Human-readable task title (required, non-empty)."
},
"domain": {
"type": "string",
"description": "Domain concept id this task is part_of."
},
"realizes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Story/feature concept ids this task realizes (creates `realizes` edges)."
},
"codeAreas": {
"type": "array",
"items": {
"type": "string"
},
"description": "Rough codebase paths/globs where the work lands."
},
"governedBy": {
"type": "array",
"items": {
"type": "string"
},
"description": "Spec concept ids that govern this task (creates `governed_by` edges)."
}
},
"additionalProperties": false
},
"annotations": {
"title": "Create a task",
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}