feat(mcp): add live connection diagnostic tracing#2672
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@reachjalil is attempting to deploy a commit to the Different AI Team on Vercel. A member of the Team first needs to authorize it. |
Agent integration rehearsal update — 2026-07-11This source branch is published at 3e84bd3 and was exercised in the independent combined rehearsal, #2675. The rehearsal confirmed post-OAuth resource-phase classification, diagnostic deletion and start-race cleanup, runner cancellation and recovery audit behavior, callback stability, and a visible Catalog Ready scope boundary that does not imply provider-operation readiness. Status remains deliberately separate:
This PR remains based on upstream dev because the controlled parent branch exists only on the Jalil fork. #2674 is the approval ledger; this PR is the source and evidence branch. |
Important
Parent MCP diagnostics release: #2674
Parent integration status: Not integrated. Verified by Jalil: Not started.
This source PR remains the workspace for its focused fixes and evidence. After Jalil reviews and accepts this level, the verified change will be integrated into
feature/mcp-diagnostics-releaseand the parent ledger will be updated. Because the parent branch intentionally exists only on Jalil's fork, GitHub cannot use it as the literal base of an upstream-repository PR; this PR therefore remains based ondevwhile pointing to the parent release tracker.Intent
Add a Den-side diagnostic mode that traces an enterprise MCP connection live, identifies the first failing layer without losing the highest proven health level, and produces support-safe evidence without exposing credentials, provider payloads, session IDs, tool arguments, or customer content.
What changed
0034_famous_nekrafor attempts, events, pending OAuth grants, registration leases, client revisions, and ordered event uniqueness.Security and correctness
DEN_API_PUBLIC_URLis propagated through Turbo so local/hub OAuth callbacks target Den API rather than Den Web.Reviewer focus
external-mcp-diagnostic-runner.tsandexternal-mcp-diagnostics.tsexternal-mcp-connections.ts,external-mcp-client.ts, andoauth-credentials.ts0034_famous_nekraand tenant/sequence indexesValidation
@openwork/types, Den DB, Den API, and Den Web production builds0033bootstrap → branch0034migration replay: 34 ledger entries, three diagnostic tables, required columns, and two-column attempt/sequence uniquenessgit diff --check./bin/openwork-hub check mcp mcp-live-diagnostic-tracingFollow-ups
Last-Event-IDresume rather than full snapshot replay.This is the third of three independent MCP diagnostic PRs. It is based directly on
dev; overlapping MCP transport/client surfaces with the structured-diagnostics and enterprise-mock PRs will need normal merge sequencing.