@meetopenbot/supabase 1.1.3 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/dist/index.js +9 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Supabase specialist agent for OpenBot: MCP-backed projects, SQL, migrations, and
|
|
|
5
5
|
## Features (MVP)
|
|
6
6
|
|
|
7
7
|
- **Agent** — OpenAI + Supabase's official MCP (`https://mcp.supabase.com/mcp`)
|
|
8
|
-
- **Auth** — personal access token
|
|
8
|
+
- **Auth** — personal access token, connected once for the whole workspace by a workspace owner
|
|
9
9
|
|
|
10
10
|
## Setup
|
|
11
11
|
|
|
@@ -20,7 +20,11 @@ plugins:
|
|
|
20
20
|
model: openai/gpt-6-luna
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
Connect the token from the **Connect Supabase** card OpenBot shows the first time the agent runs, or from **Settings → Agents** (open the agent). It is a workspace account: one token for the whole workspace, and only a workspace owner can connect it. Other members are asked to have an owner connect it. The token is checked before saving, stored encrypted by the runtime, and never shown again. Workspace variables are not used for it.
|
|
24
|
+
|
|
25
|
+
On a self-hosted runtime you can instead set `SUPABASE_ACCESS_TOKEN` in the runtime host's environment (not as a workspace variable).
|
|
26
|
+
|
|
27
|
+
LLM calls use `OPENAI_API_KEY` when set (BYOK), otherwise OpenBot Credits.
|
|
24
28
|
|
|
25
29
|
Production projects can contain sensitive data. Prefer a project-scoped, read-only token when you only need to inspect data.
|
|
26
30
|
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,15 @@ export const plugin = await defineMcpAgent({
|
|
|
27
27
|
name: 'Supabase',
|
|
28
28
|
description: 'Supabase MCP-backed specialist agent for projects, SQL, and Edge Functions',
|
|
29
29
|
models: { providers: ['openai'], default: 'openai/gpt-6-luna' },
|
|
30
|
-
|
|
30
|
+
connection: {
|
|
31
|
+
kind: 'apiKey',
|
|
32
|
+
id: 'supabase',
|
|
33
|
+
// Supabase projects are shared infrastructure.
|
|
34
|
+
scope: 'workspace',
|
|
35
|
+
envKey: 'SUPABASE_ACCESS_TOKEN',
|
|
36
|
+
docsUrl: 'https://supabase.com/dashboard/account/tokens',
|
|
37
|
+
label: 'Supabase access token',
|
|
38
|
+
},
|
|
31
39
|
mcp: {
|
|
32
40
|
url: 'https://mcp.supabase.com/mcp',
|
|
33
41
|
headers: (token) => ({ Authorization: `Bearer ${token}` }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meetopenbot/supabase",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Supabase MCP-backed specialist agent for OpenBot",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@meetopenbot/plugin-sdk": "^
|
|
22
|
+
"@meetopenbot/plugin-sdk": "^2.0.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/node": "^20.10.1",
|