First-party app
Mem

Mem

Mem: create, search and organize notes and collections, and read the tasks, projects and follow-ups Mem derives.

stable ProductivityAI & Machine Learning

About

Mem ships in the w6w first-party pack. It declares 26 actions, 2 health checks, and the host runs its code in a sandbox that never sees the credential.

App id
io.w6w.mem
Version
0.1.0
Author
w6w
Licence
MIT
Categories
Productivity · AI & Machine Learning

Overview

Mem is an AI note-taking workspace. This app drives its v2 API from a workflow.

Create, read, replace, trash, restore and permanently delete notes (markdown, first line is the title); search them by relevance, including content attached to them; find related notes; organize them into collections; hand raw text to Mem It and let Mem file it; and read the tasks, projects and follow-ups Mem extracts from your notes.

A Mem API key acts as its owner on all of their notes. The legacy v0/v1 routes and calendar, session, audio and agent endpoints are not part of this app.

Build with Mem

Three routes to the same 26 actions. The Workflow tab is generated from Mem's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.

Add Note to Collection

collection-add-note

Link a note to a collection.

Create Collection

collection-create

Create a collection (a folder-like grouping of notes).

Delete Collection

collection-delete

Delete a collection. Mem's reference does not say what happens to the notes in it.

Get Collection

collection-get

Fetch one collection with its note count.

List Collections

collection-list

List collections with cursor pagination and optional date filters.

Move Note Between Collections

collection-move-note

Move a note from one collection to another.

Remove Note from Collection

collection-remove-note

Unlink a note from a collection. The note itself is kept.

Search Collections

collection-search

Search collections by text query and date filters. Not paged.

Update Collection

collection-update

Change a collection's title and/or description. Fields left empty are not sent.

Get Follow-up

follow-up-get

Fetch one follow-up. The vendor wraps it as {follow_up}; this action returns the follow-up itself.

List Follow-ups

follow-up-list

List follow-ups Mem has recorded, optionally by status, task or project.

Mem It

mem-it

Hand Mem raw text (a transcript, an email, a web clip) and let it decide what to save and how to organize it. The response is only an acknowledgement; the resulting notes appear asynchronously. Costs 40 complexity tokens of Mem's 200-per-minute budget.

Create Note

note-create

Create a note from markdown. The first line of the content becomes the title. Optionally link it to collections by ID or by exact (case-insensitive) title.

Delete Note

note-delete

Permanently delete a note. This cannot be undone; use Trash Note for a recoverable removal.

Extended Search Notes

note-extended-search

Search notes and the content attached to them (PDF, images, audio recordings, calendar events, emails), with relevance or date sorting and a cursor.

Get Note

note-get

Fetch one note with its full markdown content and current version (needed by Update Note). A trashed note is returned with trashed_at set.

List Notes

note-list

List notes with cursor pagination, newest-updated first by default. Optionally filter by collection, date range and content kind, and include full markdown content.

List Related Notes

note-related-list

Find notes related to a given note, with a similarity score and the collections each belongs to.

Restore Note

note-restore

Restore a trashed note. A note removed with Delete Note cannot be restored.

Search Notes

note-search

Relevance-ranked search over notes by a text query, with collection, date and content-kind filters. Paged by offset; pass snapshotId back to keep paging a stable result set.

Trash Note

note-trash

Move a note to the trash. Recoverable with Restore Note.

Update Note

note-update

Replace a note's whole markdown body. Needs the exact version the edit is based on (from Get Note or the last write); a stale version is rejected by Mem. A trashed note must be restored first.

Get Project

project-get

Fetch one project.

List Projects

project-list

List projects Mem has identified across notes, optionally by status.

Get Task

task-get

Fetch one task.

List Tasks

task-list

List tasks Mem has extracted from notes, optionally by status or project.

A workflow step names the app and the action, and the editor fills in the connection when you pick one. This is the Step shape from the workflow spec, carrying Mem's real ids.

{
  "manifestVersion": "2",
  "name": "mem-example",
  "steps": [
    {
      "id": "collection-add-note",
      "uses": {
        "app": "io.w6w.mem",
        "action": "collection-add-note",
        "connection": "conn_YOUR_CONNECTION_ID"
      },
      "with": {
        "collection_id": "<collection_id>",
        "note_id": "<note_id>"
      }
    }
  ]
}

Here are some of the things you can do

  • Add Note to Collection

    perform
    collection-add-note
  • Create Collection

    perform
    collection-create
  • Get Collection

    read
    collection-get
  • List Collections

    read
    collection-list
  • Move Note Between Collections

    perform
    collection-move-note

+21 more actions available

Every app-specific value here is a blank you have to fill in. An app action is reached through the connection that authenticates it, so the address is a connection id, not the app id — and connections belong to your account, so a public page cannot know yours. Create one for Mem, then fill in the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the parameters that action declares. The call itself is real — the shape is transcribed from the studio's own snippet builder, which prints the same kind of blanks — but nothing in it is specific to Mem. The Workflow tab is where this app's real ids are.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { W6wClient, isActionRun } from "@w6w/sdk";

// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();

const envelope = await client.run({
  urn: "conn_YOUR_CONNECTION_ID",
  action: "collection-add-note",
  payload: {
    collection_id: "<value>",
    note_id: "<value>",
  },
});

if (isActionRun(envelope)) console.log(envelope.value);
Install the CLI
npm install -g @w6w/cli
CLI
w6w run conn_YOUR_CONNECTION_ID --action collection-add-note --payload '{"collection_id":"<value>","note_id":"<value>"}'

Give an AI agent Mem — without giving it Mem's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.

One tool call
{
  "name": "w6w_invoke",
  "arguments": {
    "ref": "app:io.w6w.mem#collection-add-note",
    "input": {
      "collection_id": "<collection_id>",
      "note_id": "<note_id>"
    }
  }
}

Every tool names its target with a single ref. The app: form above doesn't name a connection at all — the host resolves which of the caller's Mem connections to sign with, and refuses rather than guesses when the answer is ambiguous.

What the agent gets

Credentials it can't read

The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.

A tool surface scoped to the caller

Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.

A durable workflow in one call

Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.

Health-aware discovery

Mem's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.

The MCP surface is part of the hosted platform. Mem itself is MIT, and the runtime that executes it is source-available (FSL).

Request MCP access

Health checks

Mem declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

Mem API status

The 'API' component of status.mem.ai. Unauthenticated and unsigned.

quota

API request headroom