5 Commits
Author SHA1 Message Date
Jalil 0131392d59 chore(deps): remove unused dependency patches (#5894)
Delete the @solidjs/router patch, which is no longer listed in
patchedDependencies and whose package is no longer installed.

Drop the protocolVersion client option from the @modelcontextprotocol/sdk
patch. No caller passes it; the OAuth scope selection part stays.

Signed-off-by: Jalil <reachjalil@gmail.com>
2026-10-26 17:19:41 +00:00
Omar McAdam 8976512810 fix(deps): remediate open Dependabot security alerts (#5755)
Patch open alerts 533-547 across the root, evals and Rust example lockfiles:
@modelcontextprotocol/client, core and server 2.2.0, @modelcontextprotocol/sdk
1.31.0 (OAuth credential leak), sharp 0.35.5, shell-quote 1.11.0,
proxy-addr 2.0.8, source-map-js 1.2.2, postcss-selector-parser 7.1.6,
katex 0.18.2 and rustls 0.23.45.

The MCP client and SDK patches are rebased onto the new versions with the
same scope-selection and protocolVersion behaviour.

sprintf-js (542) and http-cache-semantics (533) have no published fix; both
only reach electron-builder's Electron download at build time.

Signed-off-by: OmarMcAdam <gh@mcadam.io>
2026-10-07 13:35:05 -07:00
ben cb94572cae fix(mcp): tolerate Slack-style OAuth MCP providers end to end (#3569)
* fix(mcp): tolerate Slack-style OAuth MCP providers end to end

Slack's MCP server (mcp.slack.com) broke org connectors: its token endpoint
returns errors as HTTP 200 {"ok":false,...} with token_type "user", and its
/mcp endpoint rejects newer initialize protocol versions with HTTP 400 instead
of negotiating down. Our conformance-hardened client surfaced all of it as
generic, retryable:false failures with no provider detail.

- enterprise-mcp-client: token-response compat layer (maps ok:false bodies to
  typed OAuth errors carrying the provider's real error string; normalizes
  token_type to Bearer), one-shot initialize retry with protocol version
  2025-06-18 on HTTP 400, bounded redacted response-body excerpts in
  diagnostics
- sdk patch: additive ClientOptions.protocolVersion (cjs/esm/d.ts)
- den-api: provider detail (untrusted, redacted, bounded) surfaces in
  connection diagnostics; StreamableHTTPError and OAuth error names allowlisted;
  slack preset gains pinned issuer + least-privilege default scopes applied at
  connection create/update when the admin specifies none
- enterprise-mcp-mock-server: slack-user-mcp profile with tokenResponseStyle
  slack-user and versionNegotiation strict knobs (defaults preserve existing
  behavior)
- evals: slack-style-mcp-connector.slow.test.ts proves connect-through-fallback,
  provider error string in Den diagnostics, and standard-path regression guard

* fix(mcp): redact credential-shaped content inside provider excerpt values

Warden K5E-PRZ: key-based redaction let OAuth codes/secrets echoed in
free-text fields (e.g. error_description) reach member-facing diagnostics.
Redact sensitive key=value pairs, JWT/Slack/Bearer/GitHub token shapes, and
40+-char opaque runs inside all string values in both excerpt helpers;
provider error strings like invalid_refresh_token survive.
2026-08-05 16:24:17 +00:00
Jalil 2b72a99aae fix(den): standardize external MCP OAuth on enterprise client (#2810)
* fix(den): make enterprise MCP OAuth opt-in

* feat(den-web): add MCP OAuth recovery controls

* fix(den): tighten MCP OAuth rollout controls

* fix(mcp): support Salesforce OAuth discovery

* fix(den-web): make MCP OAuth migration recoverable

* fix(den): simplify enterprise MCP OAuth rollout

* refactor(den-web): simplify MCP discovery UI

* refactor(den-web): streamline MCP connection setup
2026-07-15 15:56:35 -07:00
Jalil 0b970352a7 feat(connect): harden external MCP OAuth conformance (#2771)
* feat(mcp): harden enterprise OAuth protocol client

* feat(connect): add shared MCP OAuth callback flow

* test(mcp): add OAuth conformance browser proof

* fix(connect): keep MCP dialog within viewport

* fix(connect): protect shared callback migration
2026-07-14 21:19:23 -07:00