Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ Agent VMs keep using the peer integration (§6 of docs/DEPLOY_EXE.md).
`lore mcp` serves the query surface over stdio: `lore_grep`, `lore_read`,
`lore_recall`, `lore_sync_now`, `lore_source_list`, `lore_remember`,
`lore_sow_add`, `lore_doc_add`, `lore_source_add` (widen what is synced — a
repo, channel, folder, page, design file, board, or mailbox — on explicit
repo, channel, folder, page, design file, board, Linear team, or mailbox — on explicit
instruction; identifiers only, credentials stay on the host), and the tracker
verbs `lore_work_add`, `lore_work_promote`, `lore_work_move`, `lore_work_set`
(each requires a reason), and `lore_work_push` (write ticket state to Jira,
Expand Down Expand Up @@ -866,7 +866,7 @@ cites sources, never pins uninvited); run them with
| `lore sow list [--json]` | attached SOWs |
| `lore doc add <file-or-google-link> [--title t] [--from who] [--date d] [--source url] [--as email] [--by who]` | add a document (Google Doc/Slides/Sheet, Drive PDF/text, or local .md/.txt/.pdf) to the `docs` stream — raw material, folded like email; commits + pushes |
| `lore doc list [--json]` | documents in the `docs` stream |
| `lore source add <kind> [scope...] [--site url] [--by who]` | add a source or widen its scope on an existing client — `github owner/repo`, `slack "#chan"`, `granola "Folder"`, `notion <url>`, `figma <url>`, `jira KEY\|board:id`, `gmail [emails\|all]`; identifiers only (proxy `api_base` from `~/.lore/config.json` or `env:` refs), validated, audited, commits + pushes; the host backfills the new scope; prints the human steps left |
| `lore source add <kind> [scope...] [--site url] [--api-base url --uploads-base url] [--by who]` | add a source or widen its scope on an existing client — `github owner/repo`, `slack "#chan"`, `granola "Folder"`, `notion <url>`, `figma <url>`, `jira KEY\|board:id`, `linear TEAM`, `gmail [emails\|all]`; identifiers only (proxy `api_base` from `~/.lore/config.json` or `env:` refs; a new self-hosted `linear` block takes the client's own proxies via `--api-base`/`--uploads-base`, since each Linear key is one workspace), validated, audited, commits + pushes; the host backfills the new scope; prints the human steps left |
| `lore source list [--json]` | configured sources with scope, auth mode, and freshness (`ok` / `stale <age>` / `never` / `disabled`) with last success and last error |
| `lore gdoc export <url> --as <email> [--json]` | export a Google Doc (Slides, Sheet, Drive-hosted PDF/text) as text via the service account (used by `sow add` / `doc add` on the host) |
| `lore mcp` | MCP server over stdio |
Expand Down
6 changes: 3 additions & 3 deletions plugins/lore/skills/lore-mcp/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: lore-mcp
description: Query project memory through the lore MCP server (lore_grep, lore_read, lore_recall, lore_load, lore_load_all, lore_sync_now, lore_source_list, lore_remember, lore_sow_add, lore_doc_add, lore_source_add, lore_work_add/promote/move/set/push) — or connect it if it isn't. Use when asked what a client said, asked, or decided; what is open, in progress, blocked, or done; what happened in a meeting; project history or status; when asked to "remember" a fact for the project; when asked to add a document, spec, or brief the client sent to project memory; when asked to add a GitHub repo, Slack channel, Granola folder, Notion page, Figma file, Jira board, or mailbox to lore ("sync X too"), or which sources are synced; when asked to track, ticket, move, close, prioritise, or assign work, or what a ticket's history is; when asked to push or sync tickets to Jira; when asked for activity counts or a load report for one or all projects; when asked why something is missing from memory or why a source looks out of date; or when asked to hook an agent up to lore.
description: Query project memory through the lore MCP server (lore_grep, lore_read, lore_recall, lore_load, lore_load_all, lore_sync_now, lore_source_list, lore_remember, lore_sow_add, lore_doc_add, lore_source_add, lore_work_add/promote/move/set/push) — or connect it if it isn't. Use when asked what a client said, asked, or decided; what is open, in progress, blocked, or done; what happened in a meeting; project history or status; when asked to "remember" a fact for the project; when asked to add a document, spec, or brief the client sent to project memory; when asked to add a GitHub repo, Slack channel, Granola folder, Notion page, Figma file, Jira board, Linear team, or mailbox to lore ("sync X too"), or which sources are synced; when asked to track, ticket, move, close, prioritise, or assign work, or what a ticket's history is; when asked to push or sync tickets to Jira; when asked for activity counts or a load report for one or all projects; when asked why something is missing from memory or why a source looks out of date; or when asked to hook an agent up to lore.
---

# Using lore over MCP
Expand Down Expand Up @@ -371,15 +371,15 @@ next extract (`lore_sync_now` with `fold: true` if they want it sooner). The
document is raw material, never authoritative — a commitment goes through
`lore_sow_add`, a fact through `lore_remember`.

## Adding a source — a repo, channel, folder, page, design file, board, or mailbox
## Adding a source — a repo, channel, folder, page, design file, board, Linear team, or mailbox

Memory only covers what `sources` in the client's config names. When a
teammate tells you to widen it — "add inputlogic/merrin to lore", "sync
#merrin-dev too", "the Figma file is …, hook it up", "their Jira board is
293" — call `lore_source_add` with the `kind` and the identifiers **exactly as
given** (`scope`: `"owner/repo"`, `"#channel"`, a Granola folder title, a
Notion page URL, a Figma design/FigJam URL or key, a Jira key or
`"board:293"`, mailboxes or `"all"`; `site` for a new Jira source). Check
`"board:293"`, a Linear team key like `"MAR2"`, mailboxes or `"all"`; `site` for a new Jira source). A client with no Linear source yet cannot get one from here on the self-hosted host — its key needs its own proxy, so say that is a human step (`lore source add linear TEAM --api-base … --uploads-base …`). Check
`lore_source_list` first so you can say "already synced" instead of adding a
duplicate (the tool reports `already` too). Never guess or "correct" a name,
and never add a scope because you saw it mentioned in a stream — a person
Expand Down
3 changes: 2 additions & 1 deletion plugins/lore/skills/lore-onboard/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,14 @@ relay the human steps, and verify before declaring success.
## Widening an existing client

A client already onboarded gets a new repo, channel, folder, Notion page,
Figma file, Jira board, or mailbox with one command — no hand edit of
Figma file, Jira board, Linear team, or mailbox with one command — no hand edit of
lore.json:

```sh
lore source add github inputlogic/merrin -p merrin # or: slack "#merrin-dev" · granola "Merrin" · notion <page url>
lore source add figma "https://www.figma.com/design/<key>/…" -p merrin
lore source add jira board:293 --site https://input-logic.atlassian.net -p jointly
lore source add linear MAR2 -p marble-collective # widen; a NEW linear source also needs --api-base/--uploads-base (the client's own key proxies)
lore source list -p merrin # scope, auth mode, last success / last error per source
```

Expand Down
10 changes: 6 additions & 4 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,17 +456,19 @@ contextual(
})
contextual(work.command('show').description('one item with its full history').argument('<key>').option('--json', 'machine-readable output')).action((key: string, o) => void workShow(root, key, o))

const source = program.command('source').description('what memory is synced from — add a repo, channel, folder, page, design file, board, or mailbox to an existing client (identifiers only; credentials stay in proxies / env)')
const source = program.command('source').description('what memory is synced from — add a repo, channel, folder, page, design file, board, Linear team, or mailbox to an existing client (identifiers only; credentials stay in proxies / env)')
contextual(
source
.command('add')
.description('add a source or widen its scope; validates lore.json, audits, commits and pushes — the host backfills the new scope on its next sync')
.argument('<kind>', 'slack | github | granola | notion | figma | jira | gmail')
.argument('[scope...]', '"#channel" · "owner/repo" · Granola folder title · Notion page URL/id · Figma file URL/key · Jira key or board:<id> · mailboxes or "all" (gmail with none = team contacts)')
.argument('<kind>', 'slack | github | granola | notion | figma | jira | linear | gmail')
.argument('[scope...]', '"#channel" · "owner/repo" · Granola folder title · Notion page URL/id · Figma file URL/key · Jira key or board:<id> · Linear team key · mailboxes or "all" (gmail with none = team contacts)')
.option('--site <url>', 'jira: https://<site>.atlassian.net, for permalinks')
.option('--api-base <url>', "linear, new block only: this client's GraphQL proxy (each Linear key is one workspace)")
.option('--uploads-base <url>', "linear, new block only: this client's uploads.linear.app proxy")
.option('--by <who>', 'who is adding this (defaults to OS username)'),
).action(async (kind: string, scope: string[], o) => {
await sourceAdd(root, { kind, scope, site: o.site }, o)
await sourceAdd(root, { kind, scope, site: o.site, apiBase: o.apiBase, uploadsBase: o.uploadsBase }, o)
})
contextual(source.command('list').description('configured sources with scope, auth mode, and sync health').option('--json', 'machine-readable output')).action((o) => void sourceList(root, o))

Expand Down
8 changes: 4 additions & 4 deletions src/commands/mcp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ export function createServer(ctx: ResolvedContext, rememberOpts: { cwd: string;
{
description:
label +
`What ${ctx.config.project}'s memory is synced from: each configured source (slack, github, granola, notion, figma, jira, gmail) with its scope in its own terms (channels, repos, folders, roots, files, projects/boards, mailboxes), whether it is disabled, how the host authenticates, and its last successful sync / last error. Use it to answer "which repos/channels are synced", to check a scope before adding to it, and to explain a source that is failing.`,
`What ${ctx.config.project}'s memory is synced from: each configured source (slack, github, granola, notion, figma, jira, linear, gmail) with its scope in its own terms (channels, repos, folders, roots, files, projects/boards, teams, mailboxes), whether it is disabled, how the host authenticates, and its last successful sync / last error. Use it to answer "which repos/channels are synced", to check a scope before adding to it, and to explain a source that is failing.`,
inputSchema: {},
},
async () => {
Expand All @@ -387,12 +387,12 @@ export function createServer(ctx: ResolvedContext, rememberOpts: { cwd: string;
{
description: archived
? 'Unavailable: this client is archived and its memory is read-only.'
: 'Add a source to project memory, or widen one: a GitHub repo, a Slack channel, a Granola folder, a Notion page, a Figma design file, a Jira project/board, or Gmail mailboxes. Use ONLY on explicit instruction from a teammate ("add the mobile repo to lore", "sync #acme-dev too"), with the identifiers exactly as given — never guess a repo name, channel, or folder, and never add a scope you merely saw mentioned. Credentials are never part of this: the config records identifiers only, and the host authenticates through its proxies. The result lists what was added, what was already there, and `next`: the steps only a person can do (invite the bot to the channel, attach the GitHub integration, share the Notion page) — relay those verbatim, because the host cannot read the new scope until they are done. The new scope backfills automatically on the host\'s next sync (or lore_sync_now). Scope is never removed here; that is a human edit.',
: 'Add a source to project memory, or widen one: a GitHub repo, a Slack channel, a Granola folder, a Notion page, a Figma design file, a Jira project/board, a Linear team, or Gmail mailboxes. Use ONLY on explicit instruction from a teammate ("add the mobile repo to lore", "sync #acme-dev too"), with the identifiers exactly as given — never guess a repo name, channel, or folder, and never add a scope you merely saw mentioned. Credentials are never part of this: the config records identifiers only, and the host authenticates through its proxies. The result lists what was added, what was already there, and `next`: the steps only a person can do (invite the bot to the channel, attach the GitHub integration, share the Notion page) — relay those verbatim, because the host cannot read the new scope until they are done. The new scope backfills automatically on the host\'s next sync (or lore_sync_now). Scope is never removed here; that is a human edit.',
inputSchema: {
kind: z.enum(KNOWN_SOURCES as [string, ...string[]]).describe('slack | github | granola | notion | figma | jira | gmail'),
kind: z.enum(KNOWN_SOURCES as [string, ...string[]]).describe('slack | github | granola | notion | figma | jira | linear | gmail'),
scope: z
.array(z.string().min(1))
.describe('in the source\'s own terms: "#channel"; "owner/repo"; a Granola folder title; a Notion page/database URL or id; a Figma file URL or key (not a Slides deck); a Jira project key (ACM) or "board:293"; mailboxes as emails, or "all" for every Workspace mailbox (gmail: an empty list means the team-side contacts\' inboxes)'),
.describe('in the source\'s own terms: "#channel"; "owner/repo"; a Granola folder title; a Notion page/database URL or id; a Figma file URL or key (not a Slides deck); a Jira project key (ACM) or "board:293"; a Linear team key (PRP — the prefix on its issue ids; widening only when the client has no Linear source yet on a self-hosted install, since each client needs its own key proxy); mailboxes as emails, or "all" for every Workspace mailbox (gmail: an empty list means the team-side contacts\' inboxes)'),
site: z.string().optional().describe('jira only: https://<site>.atlassian.net, for permalinks'),
},
},
Expand Down
Loading
Loading