test(mcp): add deployed-server e2e suite#1057
Conversation
End-to-end tests that drive the deployed Supermemory MCP over streamable HTTP (no mocks): - discovery: handshake + tool/resource/prompt listing - identity: whoAmI, listProjects - memory: save -> recall round-trip, profile variants, forget, container scoping - graph/resources/prompts: memory-graph, fetch-graph-data, profile/projects, context - oauth: protected-resource discovery chain, dynamic client registration, token-endpoint negatives, and a real refresh -> access token round-trip - auth: GET / info, 401 on missing/invalid token - root-scope: x-sm-project scoping behavior Tests skip without SUPERMEMORY_API_KEY (OAuth tier-D skips without its token env vars) so CI is safe without secrets. Adds vitest + a test:e2e script and documents running + the OAuth flow in apps/mcp/README.md.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-app | 830fd3d | Commit Preview URL Branch Preview URL |
Jun 06 2026, 12:48 AM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-mcp | 830fd3d | Jun 06 2026, 12:48 AM |
How to use the Graphite Merge QueueAdd the label Main to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
Claude finished @MaheshtheDev's task in 1m 17s —— View job Review Complete
Summary: Reviewed the e2e test suite — no bugs, security issues, or logic errors found. The tests are well-structured with proper CI safety (skip without secrets), unique markers to avoid pollution, appropriate timeouts for async operations, and good cleanup. Ready to ship. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Overview: Adds a comprehensive e2e test suite for the MCP server covering OAuth flows, discovery, memory operations, and container scoping.
Issues found: None — this looks good to ship.
The test suite is well-structured:
- Tests properly skip when required env vars are missing (CI-safe)
- Unique markers via
randomUUID()prevent test pollution across runs - Appropriate timeouts for eventually-consistent operations (90s polling for recall)
- Proper cleanup in
afterAllhooks - Good coverage of OAuth protocol wiring (PKCE, dynamic client registration, token exchange)
- Container scoping tests verify isolation between projects
Score: 10/10
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

End-to-end tests that drive the deployed Supermemory MCP over streamable HTTP (no mocks):
token-endpoint negatives, and a real refresh -> access token round-trip
Tests skip without SUPERMEMORY_API_KEY (OAuth tier-D skips without its token env vars) so CI is safe without secrets. Adds vitest + a test:e2e script and documents running + the OAuth flow in apps/mcp/README.md.