mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-06 02:47:54 +00:00
## Summary - Instrument the MCP v2 server with the pinned PostHog MCP Analytics SDK and replace the custom `mcp_tool_executed` wrapper with standard `$mcp_*` events. - Send only allowlisted metadata, disable schema injection and exception autocapture, and use personless user IDs with person-profile processing disabled. - Deliver events through immediate capture guarded by Cloudflare `waitUntil`. ## Verification - The initial implementation passed the MCP typecheck, existing unit suite, Biome, and Wrangler dry-run bundle. - A local `who_am_i` MCP call returned successfully and emitted a metadata-only `$mcp_tool_call` on the initial implementation. - All five checks passed on the final `54a2384` head, including the Cloudflare MCP build. Actual PostHog ingestion is not verified yet; this workspace still needs a PostHog project token and authenticated Supermemory MCP credential.
59 lines
1.8 KiB
JSON
59 lines
1.8 KiB
JSON
{
|
|
"name": "supermemory-mcp",
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"portless": {
|
|
"name": "mcp.dev.supermemory",
|
|
"script": "dev:app"
|
|
},
|
|
"scripts": {
|
|
"build:widget": "bun run scripts/build-widget.ts",
|
|
"build": "bun run build:widget",
|
|
"dev": "portless",
|
|
"dev:app": "wrangler dev --port ${PORT:-8788}",
|
|
"dev:widget": "vite --config vite.config.dev.ts",
|
|
"studio": "vite --config vite.config.dev.ts --open /studio.html",
|
|
"deploy": "wrangler deploy --minify",
|
|
"check-types": "bun run build:widget && tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.widget.json",
|
|
"test:unit": "bun run build:widget && vitest run src",
|
|
"test:e2e": "vitest run e2e",
|
|
"cf-typegen": "wrangler types --env-interface CloudflareBindings"
|
|
},
|
|
"dependencies": {
|
|
"@cloudflare/workers-oauth-provider": "^0.2.2",
|
|
"@modelcontextprotocol/client": "2.0.0",
|
|
"@modelcontextprotocol/ext-apps": "^1.7.5",
|
|
"@modelcontextprotocol/sdk": "1.30.0",
|
|
"@modelcontextprotocol/server": "2.0.0",
|
|
"@phosphor-icons/react": "^2.1.10",
|
|
"@posthog/mcp": "0.21.0",
|
|
"@radix-ui/react-popover": "^1.1.15",
|
|
"@radix-ui/react-slot": "^1.2.3",
|
|
"@radix-ui/react-tooltip": "^1.2.7",
|
|
"@supermemory/memory-graph": "^0.2.0",
|
|
"agents": "^0.20.1",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"hono": "^4.11.1",
|
|
"jose": "^6.2.0",
|
|
"posthog-node": "^5.18.0",
|
|
"react": "^19.2.4",
|
|
"react-dom": "^19.2.4",
|
|
"supermemory": "^4.0.0",
|
|
"tailwind-merge": "^3.4.0",
|
|
"zod": "^4.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@cloudflare/workers-types": "^4.20250620.0",
|
|
"@tailwindcss/vite": "^4.1.13",
|
|
"@types/react": "^19.1.13",
|
|
"@types/react-dom": "^19.1.9",
|
|
"@vitejs/plugin-react": "^4.3.4",
|
|
"tailwindcss": "^4.1.13",
|
|
"typescript": "^5.8.3",
|
|
"vite": "^6.0.0",
|
|
"vite-plugin-singlefile": "^2.3.0",
|
|
"vitest": "^3.2.4",
|
|
"wrangler": "^4.4.0"
|
|
}
|
|
}
|