feat(mcp): add structured connection diagnostics#2669
Draft
reachjalil wants to merge 3 commits into
Draft
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
@reachjalil is attempting to deploy a commit to the Different AI Team on Vercel. A member of the Team first needs to authorize it. |
Collaborator
Author
Agent integration rehearsal update — 2026-07-11This source branch is published at 7b99407 and was exercised in the independent combined rehearsal, #2675. The rehearsal confirmed and regression-tested the Level 1 fixes for callback origin, lifecycle and late-write fencing, stale post-token validation, owned 401 versus 403 failures, and structured provider tool-result errors. 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Make MCP connection failures diagnosable end to end. Operators should see the failing phase, a stable safe error code, retry guidance, and an actionable owner without exposing credentials, provider bodies, or tenant data.
What changed
Security and correctness
Reviewer focus
ee/apps/den-api/src/lib/mcp-connection-diagnostics.tsee/apps/den-api/src/lib/mcp-external-client.tsValidation
git diff --check./bin/openwork-hub check mcp mcp-connection-diagnosticsThis is the first of three independent MCP diagnostic PRs. The mock enterprise server and live tracing changes are intentionally separate; overlapping MCP client surfaces will need normal merge sequencing.