@tokenfactory/acc-mcp-server 0.1.1-internal → 0.1.2-internal
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/dist/supabase.d.ts.map +1 -1
- package/dist/supabase.js +15 -0
- package/dist/supabase.js.map +1 -1
- package/package.json +3 -1
package/dist/supabase.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supabase.d.ts","sourceRoot":"","sources":["../src/supabase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAgB,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"supabase.d.ts","sourceRoot":"","sources":["../src/supabase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAgB,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG1E,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB;AAcD,wBAAgB,eAAe,CAAC,GAAG,EAAE,cAAc,GAAG,cAAc,CAYnE;AAED,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,CAYzE"}
|
package/dist/supabase.js
CHANGED
|
@@ -12,14 +12,29 @@
|
|
|
12
12
|
* when spawning us.
|
|
13
13
|
*/
|
|
14
14
|
import { createClient } from "@supabase/supabase-js";
|
|
15
|
+
import WebSocket from "ws";
|
|
15
16
|
// The MCP server speaks the acc schema. Supabase's generic types model
|
|
16
17
|
// the default schema name in their type parameters, so we cast through
|
|
17
18
|
// `unknown` to land on the canonical SupabaseClient<...> type that the
|
|
18
19
|
// tool impls consume.
|
|
20
|
+
//
|
|
21
|
+
// `realtime.transport` is pinned to the `ws` package because
|
|
22
|
+
// @supabase/supabase-js's RealtimeClient initializes eagerly at
|
|
23
|
+
// createClient() time and Node 20 lacks a Supabase-recognized WebSocket
|
|
24
|
+
// global — without an explicit transport, construction throws
|
|
25
|
+
// "Node.js 20 detected without native WebSocket support" and the whole
|
|
26
|
+
// MCP subprocess dies before stdio is wired. Same fix as
|
|
27
|
+
// @tokenfactory/acc-runner v0.2.2.
|
|
19
28
|
export function createMcpClient(cfg) {
|
|
20
29
|
return createClient(cfg.supabaseUrl, cfg.anonKey, {
|
|
21
30
|
db: { schema: "acc" },
|
|
22
31
|
auth: { persistSession: false, autoRefreshToken: false },
|
|
32
|
+
realtime: {
|
|
33
|
+
// any-allowed: ws's type matches Node, not the browser WebSocket
|
|
34
|
+
// interface Supabase's option signature is declared against.
|
|
35
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
36
|
+
transport: WebSocket,
|
|
37
|
+
},
|
|
23
38
|
global: { headers: { Authorization: `Bearer ${cfg.accessToken}` } },
|
|
24
39
|
});
|
|
25
40
|
}
|
package/dist/supabase.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supabase.js","sourceRoot":"","sources":["../src/supabase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,YAAY,EAAuB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"supabase.js","sourceRoot":"","sources":["../src/supabase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,YAAY,EAAuB,MAAM,uBAAuB,CAAC;AAC1E,OAAO,SAAS,MAAM,IAAI,CAAC;AAQ3B,uEAAuE;AACvE,uEAAuE;AACvE,uEAAuE;AACvE,sBAAsB;AACtB,EAAE;AACF,6DAA6D;AAC7D,gEAAgE;AAChE,wEAAwE;AACxE,8DAA8D;AAC9D,uEAAuE;AACvE,yDAAyD;AACzD,mCAAmC;AACnC,MAAM,UAAU,eAAe,CAAC,GAAmB;IACjD,OAAO,YAAY,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,CAAC,OAAO,EAAE;QAChD,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;QACrB,IAAI,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE;QACxD,QAAQ,EAAE;YACR,iEAAiE;YACjE,6DAA6D;YAC7D,8DAA8D;YAC9D,SAAS,EAAE,SAAgB;SAC5B;QACD,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,UAAU,GAAG,CAAC,WAAW,EAAE,EAAE,EAAE;KACpE,CAA8B,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,WAAmB;IACvD,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAC;IACnF,MAAM,OAAO,GACX,OAAO,CAAC,GAAG,CAAC,iBAAiB;QAC7B,OAAO,CAAC,GAAG,CAAC,qBAAqB;QACjC,EAAE,CAAC;IACL,IAAI,CAAC,WAAW,IAAI,CAAC,OAAO,EAAE,CAAC;QAC7B,MAAM,IAAI,KAAK,CACb,oFAAoF,CACrF,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;AAC/C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenfactory/acc-mcp-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2-internal",
|
|
4
4
|
"description": "Agent Control Center MCP server. Stdio-transport subprocess spawned by acc-runner alongside Claude Code; exposes read-only ACC tools and telemeters every call to acc.mcp_tool_calls.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|
|
@@ -24,10 +24,12 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
26
26
|
"@supabase/supabase-js": "^2.105.3",
|
|
27
|
+
"ws": "^8.20.0",
|
|
27
28
|
"zod": "^3.25.28"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
31
|
"@types/node": "^25.6.0",
|
|
32
|
+
"@types/ws": "^8.18.1",
|
|
31
33
|
"typescript": "^5.6.3",
|
|
32
34
|
"vitest": "^1.6.1"
|
|
33
35
|
}
|