Commit graph

24 commits

Author SHA1 Message Date
Vorflux AI
bcf2ff87fa feat: improve graph aesthetics - subtle edges, luminous nodes, better spacing
- Edge opacity: derives 0.18, updates 0.45, extends 0.12 for gossamer web effect
- Edge colors: sky blue (#38BDF8), soft violet (#A78BFA), teal (#2DD4BF)
- Node glow: subtle radial glow behind memory dots for luminous effect
- Force layout: stronger repulsion (-2500), wider spacing (450/200), gentler centering
- Refactor simulation to use FORCE_CONFIG constants instead of hardcoded values
- Update MCP app edge colors to match
2026-03-28 07:41:03 +00:00
Vorflux AI
b43c311092 feat: rename edge types to derives/updates/extends with distinct colors
- Rename edge types: doc-memory -> derives, version -> updates, same-space -> extends
- Assign distinct colors: derives (#3B82F6 blue), updates (#8B5CF6 purple), extends (#14B8A6 teal)
- Update legend labels to show Derives, Updates, Extends
- Update theme color properties: edgeDerives, edgeUpdates, edgeExtends
- Update MCP app edge types and colors to match
- Remove redundant drawDocDocLines proximity rendering (extends edges now serve this purpose)
- Update all tests and comments for new edge type names
2026-03-28 07:20:48 +00:00
Vorflux AI
06e51f2126 fix: resolve biome CI errors (noExplicitAny + formatting)
- Replace catch(error: any) with catch(error: unknown) in mcp client
- Fix extra blank line left by refactor in renderer.ts
2026-03-28 07:01:50 +00:00
Vorflux AI
429c7e97ad refactor: simplify graph API - remove backend computation, use client-side layout
- Remove x/y from GraphApiDocument (client computes via force simulation)
- Remove similarity from GraphApiEdge, add edgeType enum
- Replace viewport/bounds/stats API calls with single paginated documents endpoint
- Derive edges client-side from document structure (doc-memory, version, same-space)
- Update MCP client/server to use documents endpoint
- Update MCP UI app for new type shapes
- Update all tests for new API contract
- Progressive loading via useInfiniteQuery (100 docs/page)
2026-03-28 06:04:11 +00:00
Mahesh Sanikommu
962fb85cd3
feat: empty state action for new spaces (#780)
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-15 11:02:14 -07:00
sohamd22
07875ad1a1 update forget implementation in mcp (#773)
### TL;DR

Enhanced the `forgetMemory` method to try exact content matching first, then fall back to semantic search with a high similarity threshold for more precise memory deletion.

### What changed?

The `forgetMemory` method now uses a two-step approach: first attempting exact content matching via the API, and if that fails with a 404, falling back to semantic search with a similarity threshold of 0.85. The search method also accepts an optional threshold parameter. Error messages now distinguish between exact matches and semantic matches, including similarity scores in the response.

### How to test?

1. Call `forgetMemory` with the exact content of an existing memory to verify direct deletion
2. Call `forgetMemory` with similar but not identical content to test the semantic search fallback
3. Call `forgetMemory` with completely unrelated content to verify the "no matching memory found" response
4. Verify that success messages indicate whether deletion used exact matching or semantic matching with similarity scores

### Why make this change?

This approach provides more precise memory deletion by prioritizing exact matches while still offering a fallback for similar content. The high similarity threshold (0.85) ensures that only very similar memories are deleted when exact matches aren't found, reducing the risk of accidentally deleting unrelated memories.
2026-03-09 18:59:08 +00:00
Dhravya Shah
80a75f73ba fix: forget api 2026-03-05 10:11:34 -08:00
Prasanna721
2bbc7fc7a5 feat(mcp): add interactive memory graph MCP App visualization (#763)
### feat(mcp): add memory graph visualization MCP App

#### Summary
  - Add interactive force-directed graph visualization as an MCP App using `force-graph` + `d3-force-3d`
  - Register `memory-graph` and `fetch-graph-data` tools with MCP Apps SDK UI resources
  - Add graph API client methods (`getGraphBounds`, `getGraphViewport`) to `SupermemoryClient`
  - Set up Vite + `vite-plugin-singlefile` build pipeline to produce a self-contained HTML bundle
  - Support light/dark theme, zoom controls, node popups, and legend

  #### Files changed
  - `apps/mcp/src/server.ts` — register app tools + HTML resource
  - `apps/mcp/src/client.ts` — add graph API types and methods
  - `apps/mcp/src/ui/mcp-app.ts` — force-graph visualization app
  - `apps/mcp/src/ui/global.css`, `mcp-app.css` — styling
  - `apps/mcp/mcp-app.html` — entry HTML for Vite
  - `apps/mcp/vite.config.ts` — Vite single-file build config
  - `apps/mcp/package.json` — add UI deps and build scripts
  - `apps/mcp/wrangler.jsonc` — add HTML text import rule
2026-03-05 16:28:34 +00:00
Dhravya Shah
0c46362505 fix: properly attribute revenue with posthog 2026-02-25 18:28:13 -08:00
Prasanna721
c82dcdc30a fix(mcp): hide containerTag from tool schemas when x-sm-project header is set (#749)
### fix(mcp): prevent LLM from overriding x-sm-project container tag

- When `x-sm-project` header is configured, the `containerTag` field is now
    excluded from memory/recall/context tool schemas
 - This prevents LLMs from overriding the configured project by picking a
    different containerTag from the available projects list
  - When no header is set, behavior is unchanged — containerTag remains visible
    in schemas for manual project selection via listProjects
2026-02-20 04:34:57 +00:00
Dhravya Shah
7030c8bdb0 fix: effective tag 2026-02-19 20:12:19 -08:00
Coldaine
1328c2ac3a
fix(mcp): change memories.delete to documents.delete for forget action (#737) 2026-02-16 14:32:04 -07:00
Muhammed Hunaid Topiwala
3069bd61e6
fix(mcp): include r.memory in getProfile fallback chain (#697) 2026-01-23 12:44:52 -08:00
MaheshtheDev
1423bd7004 feat: mobile responsive, lint formats, toast, render issue fix (#688)
- Mobile responsive
- new toast design
- web document render issue fix
- posthog analytics
- ui improvements
2026-01-21 03:11:53 +00:00
Dhravya Shah
87b361c26b
docs changes (#678)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 16:55:32 -08:00
MaheshtheDev
acdb422635 add (mcp): projects aware tool on every init (#676) 2026-01-17 00:57:48 +00:00
Dhravya
e94134cd26 fix: oauth discovery not working with some clients (#666)
### TL;DR

TESTING REMAINING. This is my hypothesis. @MaheshtheDev please carry on from here or we can test in prod.

Added a proxy endpoint for OAuth authorization server metadata to support non-compliant MCP clients.

### What changed?

Added a new endpoint `/.well-known/oauth-authorization-server` to the MCP server that proxies requests to the main API. This endpoint fetches the authorization server metadata from the API and returns it to clients.

### How to test?

1. Make a GET request to `/.well-known/oauth-authorization-server` on the MCP server
2. Verify that it returns the same metadata as the main API's `/.well-known/oauth-authorization-server` endpoint
3. Test with a client that expects to find the authorization server metadata on the MCP domain

### Why make this change?

Some MCP clients don't correctly follow the OAuth specification. Instead of using the `authorization_servers` array provided in the protected resource metadata, they look for the authorization server metadata directly on the MCP server domain. This proxy endpoint ensures compatibility with these non-compliant clients without requiring them to be updated.
2026-01-12 23:38:30 +00:00
Dhravya Shah
f7c442e0dc chore: wrangler jsonc update 2026-01-02 13:28:25 -08:00
Dhravya Shah
d3bb0a8855 fix: added one more file 2026-01-02 13:01:26 -08:00
Dhravya Shah
e37c84e51f fix: mcp initializes in durable object 2026-01-02 12:59:33 -08:00
MaheshtheDev
cda6e1a93a chore: update readme and gitignore (#640) 2025-12-31 02:41:35 +00:00
Mahesh Sanikommu
7d0fa7d033
fix: prompt injection with mcp (#638) 2025-12-30 14:22:35 -08:00
Mahesh Sanikommu
c6792e5100
feat: supermemory MCP 4.0 (#631) 2025-12-30 12:03:21 -08:00
Dhravya Shah
5bef1b2bbc chore: bump package version 2025-12-28 19:22:28 -08:00