Skip to content

refactor(grain): live Grain API only — the index moved to grain-indexer - #567

Merged
JonasJesus42 merged 1 commit into
mainfrom
JonasJesus42/grain-live-api-only
Oct 27, 2026
Merged

JonasJesus42 merged 1 commit into
mainfrom
JonasJesus42/grain-live-api-only

Conversation

@JonasJesus42

@JonasJesus42 JonasJesus42 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Why

The Grain MCP's own index (a grain_meeting_recordings table in Supabase fed by Grain webhooks, plus SEARCH_INDEXED_RECORDINGS and trigger storage) is replaced by decocms/grain-indexer. That service keeps full transcripts, privacy rules, signed webhooks and an MCP of its own. The old tables were already migrated (as metadata only) and dropped, and the old atlas-index hooks were deleted from Grain.

What

  • Removed: the webhook route and auto-created hooks, the Supabase index and queries, SEARCH_INDEXED_RECORDINGS, Mesh triggers (their storage table had 0 rows), the backfill script, and the @supabase/supabase-js dependency.
  • Kept: LIST_RECORDINGS, GET_RECORDING, GET_TRANSCRIPT, GET_SUMMARY. They call the Grain API live with the connection's own key, with no state.
  • README points to grain-indexer for search, transcripts and events.

Verified

tsc on grain/ is clean apart from 2 errors inside node_modules/@decocms/runtime (bindings version mismatch), which are unrelated to this change. oxlint and oxfmt pass.

🤖 Generated with Claude Code


Summary by cubic

Turns the Grain MCP into a stateless, live-API-only package. The webhook-fed Supabase index (grain_meeting_recordings), SEARCH_INDEXED_RECORDINGS, Mesh triggers, and the backfill script have moved to decocms/grain-indexer, which now owns full transcripts, privacy rules, signed webhooks, and search; the old tables were already migrated there and dropped.

What stays: LIST_RECORDINGS, GET_RECORDING, GET_TRANSCRIPT, and GET_SUMMARY, which call the Grain API live with the connection's own key and keep no state.

  • Removed the webhook route, auto-created Grain hooks, Supabase queries, trigger storage, the backfill script, and the @supabase/supabase-js dependency.
  • No webhooks are created on users' Grain accounts anymore; the README now points to grain-indexer for search and transcripts.

Written for commit 78f80d1. Summary will update on new commits.

View guided diff Turn on auto-fix

The webhook-fed index (grain_meeting_recordings in Supabase), its search
tool, the trigger storage and the backfill script are gone. They now live,
with full transcripts, privacy rules and signed webhooks, in
decocms/grain-indexer — and the old tables were dropped there.

What stays: LIST_RECORDINGS, GET_RECORDING, GET_TRANSCRIPT, GET_SUMMARY,
live against Grain with the connection's own key. No state, no webhooks
created on anyone's Grain account, no Supabase dependency.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/airtable October 27, 2026 20:17 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/blog-generator October 27, 2026 20:17 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/content-scraper October 27, 2026 20:17 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/deco-llm October 27, 2026 20:17 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/deco-news-weekly-digest October 27, 2026 20:17 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/discord-read October 27, 2026 20:17 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/figma-mcp October 27, 2026 20:17 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/flux October 27, 2026 20:17 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/google-analytics October 27, 2026 20:17 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/google-big-query October 27, 2026 20:18 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/google-calendar October 27, 2026 20:18 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/google-calendar-sa October 27, 2026 20:18 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/google-drive October 27, 2026 20:18 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/google-meet October 27, 2026 20:18 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/google-search-console October 27, 2026 20:18 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/google-sheets October 27, 2026 20:18 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/google-slides October 27, 2026 20:18 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/google-tag-manager October 27, 2026 20:18 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/google-workspace October 27, 2026 20:18 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/grafana October 27, 2026 20:18 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/grain October 27, 2026 20:18 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/hyperdx October 27, 2026 20:18 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/magento October 27, 2026 20:18 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/meta-ads October 27, 2026 20:19 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/nanobanana October 27, 2026 20:19 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/object-storage October 27, 2026 20:19 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/pandadoc October 27, 2026 20:19 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/perplexity October 27, 2026 20:19 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/registry October 27, 2026 20:19 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/shopify October 27, 2026 20:19 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/slack-mcp October 27, 2026 20:19 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/veo October 27, 2026 20:19 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/vtex October 27, 2026 20:19 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/vtex-docs October 27, 2026 20:19 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/wake October 27, 2026 20:19 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/whatsappagent October 27, 2026 20:19 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/youtube-channel-admin October 27, 2026 20:19 Destroyed
@deco-hosting
deco-hosting Bot temporarily deployed to preview/pr-567/youtube-search October 27, 2026 20:20 Destroyed
@JonasJesus42
JonasJesus42 merged commit 212fc14 into main Oct 27, 2026
2 of 40 checks passed
@JonasJesus42
JonasJesus42 deleted the JonasJesus42/grain-live-api-only branch October 27, 2026 20:36

This branch was successfully deployed

No deployments
preview/pr-567/youtube-search — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/youtube-channel-admin — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/whatsappagent — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/wake — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/vtex-docs — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/vtex — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/veo — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/slack-mcp — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/shopify — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/registry — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/perplexity — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/pandadoc — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/object-storage — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/nanobanana — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/meta-ads — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/magento — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/hyperdx — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/grain — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/grafana — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/google-workspace — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/google-tag-manager — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/google-slides — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/google-sheets — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/google-search-console — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/google-meet — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/google-drive — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/google-calendar-sa — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/google-calendar — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/google-big-query — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/google-analytics — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/flux — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/figma-mcp — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/discord-read — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/deco-news-weekly-digest — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/deco-llm — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/content-scraper — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/blog-generator — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
preview/pr-567/airtable — 78f80d1d Deployed Oct 27, 2026 by deco-hosting[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant