Skip to content

Add hosted connection guide catalog for more AI clients - #2847

Merged
mickdarling merged 9 commits into
betafrom
codex/connect-client-guides
Sep 26, 2026
Merged

mickdarling merged 9 commits into
betafrom
codex/connect-client-guides

Conversation

@mickdarling

Copy link
Copy Markdown
Member

The hosted Connect page needs product-specific guidance beyond its initial clients. This PR adds a descriptor catalog for 29 additional surfaces, including Hermes, OpenCode, OpenClaw, Junie, Microsoft and Google products, Xcode agents, and chat clients. The catalog is a data export for the follow-up picker integration; it does not change the current Connect UI by itself.

Routes distinguish in-app, terminal, config, admin, and developer setup. Each client links to first-party setup guidance. Products without verified custom MCP or Dollhouse OAuth support are labeled accordingly; no browser install link or successful live OAuth is claimed for them. Generated commands and config revalidate the hosted profile, avoid secrets, and tell users to preserve existing connections and check a real tool call.

Validation: focused Jest tests (4 passing), ESLint, and git diff --check. Repository-wide build:test was attempted but cannot complete with the worktree's incomplete dependency tree and broad pre-existing TypeScript failures. Live client OAuth/tool-call qualification remains open under #2809, with focused Hermes #2840 and native Xcode #2841 follow-ups.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-26T21:02:44.428722Z 7b9c7c3 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @mickdarling's task —— View job


Reviewed commit: 0b44a79f65174d393218ddd60b9680d6f8372732

Tasks

  • Verify commit SHA
  • Read CLAUDE.md guidelines (no CLAUDE.md found in repo)
  • Read changed files
  • Provide review feedback

Code Review

Overall, this is a well-structured catalog addition. The data files are cleanly organized, validation is delegated appropriately to hostedConnectionProfile, and honest labeling of "OAuth unverified" entries reflects good product integrity. Below are specific findings.

Security

connect-extra-developer.js:21 — Shell injection risk in OpenClaw command

{ value: `openclaw mcp set ${name} '${JSON.stringify({ url, transport: 'streamable-http', auth: 'oauth' })}'`, ... }

JSON.stringify of the URL object can produce strings containing single quotes if the URL contains characters that survive validateHostedMcpEndpoint — specifically, standard URL characters like %27. More critically, connectionName is constrained by validateConnectionName to [A-Za-z0-9_-], which is safe; however the shell string itself wraps in single quotes. The unsafeEndpointText check in connect-config.js:50 already rejects ', so this is currently safe — but the defense is non-obvious and the reliance is implicit. Consider using JSON.stringify for the whole argument to avoid shell quoting entirely, or add an inline assertion that neither url nor name contain single quotes.

connect-extra-developer.js:15 — Copilot CLI command quoting

`copilot mcp add --transport http ${name} '${url}'`

Same pattern as above — safe given existing validation, but fragile. Both commands should either use JSON.stringify for the URL arg or reference an explicit assertion.

connect-extra-developer.js:14 — Hermes YAML injection

`mcp_servers:\n  ${name}:\n    url: ${JSON.stringify(url)}\n    auth: oauth`

name is constrained to [A-Za-z0-9_-] so it cannot inject YAML keys. JSON.stringify(url) produces a quoted string safe in YAML. This is fine.

Code Quality

Duplicated helper declarations across modules

connect-extra-apps.js:3-8, connect-extra-developer.js:3-8, and connect-extra-platforms.js:3-8 each independently define identical s, r, c, endpoint-like, and check-like helpers (with slight variations in wording). This creates three separate maintenance points. A shared internal module (e.g., connect-extra-helpers.js) could export these, reducing duplication.

Inconsistent endpoint helper text

  • connect-extra-apps.js:7: 'Copy the hosted URL into the client.'
  • connect-extra-developer.js:7: 'Copy this HTTPS URL into the client.'
  • connect-extra-platforms.js:7: 'Copy the hosted URL into the product setup.'

These should be consistent if they're communicating the same intent to users.

connect-extra-clients.js:16 — safe.endpoint !== profile.endpoint check

const safe = hostedConnectionProfile(profile.endpoint, origin, profile.connectionName);
if (safe.endpoint !== profile.endpoint) throw new Error('A canonical hosted MCP endpoint is required.');

This re-runs hostedConnectionProfile and compares the output against the input — essentially checking that the URL is already canonicalized. The intent is sound (canonicalization catches URL fragments or trailing slashes a caller might supply), but the error message "A canonical hosted MCP endpoint is required" may be confusing to end users. Consider a more descriptive error like 'Endpoint must already be in canonical form'.

connect-extra-developer.js:43-44 — Xcode native summary test uses not.toMatch

expect(byId('xcode-native').summary).not.toMatch(/mcpbridge/);

This test guards against a string appearing in summary, but mcpbridge does appear in the route step text (line 44 of connect-extra-developer.js). The test may give false confidence — it only checks summary, not the full step text. If the intent is to ensure the mcpbridge export/import distinction is not confused for users, consider asserting the step text contains the clarifying message directly.

Test Coverage

ConnectExtraClients.test.ts — The 4 tests are well-targeted:

  • Structural validation is comprehensive (unique IDs, docs URLs, copyLabel paired with value).
  • Schema-specific spot-checks cover the most idiosyncratic formats (YAML for Hermes, nested mcp for OpenCode).
  • The security test (forged profiles) is particularly good, covering token leak, credentials-in-URL, shell metacharacters, and wrong transport type.

Gaps:

  • No test verifies that availability-only routes (e.g., microsoft-copilot-personal, google-ai-studio) don't accidentally embed a copyable endpoint in their steps. A malformed "unavailable" entry could still leak a URL into a user-facing copy field.
  • The microsoftGoogleClients and appClients functions are not individually tested — only via the aggregated additionalConnectionClients. This is acceptable for a catalog, but worth noting if the modules are split further.

Performance

No concerns — these are static data factories evaluated at call time. No async paths or expensive operations.

Documentation (docs/guides/hosted-additional-client-guides.md)

The table is accurate and appropriately caveats each surface. One minor note: "Antigravity" references https://www.antigravity.google/docs/mcp — this appears to be a speculative or placeholder URL (Google Antigravity is not a publicly released product as of the knowledge cutoff). If this is intentional forward-looking content, it should be labeled as such. If it's a placeholder, it should be clearly marked [placeholder] or removed until the product ships.

Summary

Category Assessment
Security Mostly sound; shell-quoting reliance is implicit but currently safe
Code quality Three duplicated helper modules; minor endpoint text inconsistency
Tests Good coverage of known-format schemas and adversarial inputs; minor gaps in availability-route assertions
Performance No issues
Documentation Accurate; one speculative product URL worth clarifying
Branch: codex/connect-client-guides

@github-actions

Copy link
Copy Markdown
Contributor

✅ Security Audit Passed

🔒 Security Audit Results

Security Audit Report

Generated: 2026-09-26T20:30:08.457Z
Duration: 7365ms

Summary

  • Total Findings: 0
  • Files Scanned: 176

Findings by Severity

  • 🔴 Critical: 0
  • 🟠 High: 0
  • 🟡 Medium: 0
  • 🟢 Low: 0
  • ℹ️ Info: 0

Recommendations

  1. Address all critical and high severity issues immediately
  2. Review medium severity issues and plan remediation
  3. Consider adding suppressions for false positives
  4. Run security audit regularly (e.g., in CI/CD pipeline)

@mickdarling

Copy link
Copy Markdown
Member Author

Review follow-up for latest head:

  • The OpenClaw and Copilot terminal arguments remain single-quoted because hostedConnectionProfile rejects literal apostrophes, control characters, backslashes, query strings, and fragments before generating them; validateConnectionName restricts names to ASCII alphanumerics, _, and -. A URL containing %27 passes the literal characters %, 2, 7 to the shell; the shell does not percent-decode them. Using JSON.stringify alone as a shell argument would not be a safe replacement. The focused adversarial test covers a literal quote and shell metacharacters.
  • The Antigravity documentation URL is live first-party documentation: https://www.antigravity.google/docs/mcp . It documents mcpServers with serverUrl for custom remote servers. The product exists; the review's knowledge-cutoff concern is outdated.
  • I added assertions that availability-only personal Copilot and AI Studio routes contain no copyable endpoint, and that the Xcode guide explicitly says mcpbridge exports Xcode tools rather than importing this server.

The repeated three-line descriptor builders are local to the three small family modules. I kept them local to avoid a new abstraction for static guide data. No live Dollhouse OAuth or tool-call qualification is claimed by this PR; #2840 and #2841 track the Hermes and native Xcode checks.

@mickdarling

Copy link
Copy Markdown
Member Author

@codex review

@github-actions

github-actions Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error —— View job


Reviewed commit: 5d0bb868eee0ca8d2488aeaf278b3ee3c7b0a1c3

Tasks

  • Verify commit SHA
  • Read changed files
  • Provide review feedback

Working...

View job | Branch: codex/connect-client-guides

@mickdarling

Copy link
Copy Markdown
Member Author

@codex review

@github-actions

Copy link
Copy Markdown
Contributor

✅ Security Audit Passed

🔒 Security Audit Results

Security Audit Report

Generated: 2026-09-26T20:34:28.005Z
Duration: 7482ms

Summary

  • Total Findings: 0
  • Files Scanned: 176

Findings by Severity

  • 🔴 Critical: 0
  • 🟠 High: 0
  • 🟡 Medium: 0
  • 🟢 Low: 0
  • ℹ️ Info: 0

Recommendations

  1. Address all critical and high severity issues immediately
  2. Review medium severity issues and plan remediation
  3. Consider adding suppressions for false positives
  4. Run security audit regularly (e.g., in CI/CD pipeline)

@github-actions

Copy link
Copy Markdown
Contributor

✅ Security Audit Passed

🔒 Security Audit Results

Security Audit Report

Generated: 2026-09-26T20:34:56.375Z
Duration: 7619ms

Summary

  • Total Findings: 0
  • Files Scanned: 176

Findings by Severity

  • 🔴 Critical: 0
  • 🟠 High: 0
  • 🟡 Medium: 0
  • 🟢 Low: 0
  • ℹ️ Info: 0

Recommendations

  1. Address all critical and high severity issues immediately
  2. Review medium severity issues and plan remediation
  3. Consider adding suppressions for false positives
  4. Run security audit regularly (e.g., in CI/CD pipeline)

@github-actions

Copy link
Copy Markdown
Contributor

✅ Security Audit Passed

🔒 Security Audit Results

Security Audit Report

Generated: 2026-09-26T20:35:12.938Z
Duration: 5879ms

Summary

  • Total Findings: 0
  • Files Scanned: 176

Findings by Severity

  • 🔴 Critical: 0
  • 🟠 High: 0
  • 🟡 Medium: 0
  • 🟢 Low: 0
  • ℹ️ Info: 0

Recommendations

  1. Address all critical and high severity issues immediately
  2. Review medium severity issues and plan remediation
  3. Consider adding suppressions for false positives
  4. Run security audit regularly (e.g., in CI/CD pipeline)

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c26eae9751

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

github-actions Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error —— View job


Reviewed commit: c26eae9751a373c090ebac95e7a989875077bf90

Tasks

  • Verify commit SHA
  • Read changed files
  • Provide review feedback

Working...
| Branch: codex/connect-client-guides

@github-actions

github-actions Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error —— View job


Reviewed commit: 4e7d44ab1a1476664f02c1ef4b4e14e8dfdcdc24

Tasks

  • Verify commit SHA
  • Read changed files
  • Provide review feedback

Working...

@github-actions

Copy link
Copy Markdown
Contributor

✅ Security Audit Passed

🔒 Security Audit Results

Security Audit Report

Generated: 2026-09-26T20:41:11.159Z
Duration: 7560ms

Summary

  • Total Findings: 0
  • Files Scanned: 176

Findings by Severity

  • 🔴 Critical: 0
  • 🟠 High: 0
  • 🟡 Medium: 0
  • 🟢 Low: 0
  • ℹ️ Info: 0

Recommendations

  1. Address all critical and high severity issues immediately
  2. Review medium severity issues and plan remediation
  3. Consider adding suppressions for false positives
  4. Run security audit regularly (e.g., in CI/CD pipeline)

@github-actions

Copy link
Copy Markdown
Contributor

✅ Security Audit Passed

🔒 Security Audit Results

Security Audit Report

Generated: 2026-09-26T20:41:36.838Z
Duration: 7456ms

Summary

  • Total Findings: 0
  • Files Scanned: 176

Findings by Severity

  • 🔴 Critical: 0
  • 🟠 High: 0
  • 🟡 Medium: 0
  • 🟢 Low: 0
  • ℹ️ Info: 0

Recommendations

  1. Address all critical and high severity issues immediately
  2. Review medium severity issues and plan remediation
  3. Consider adding suppressions for false positives
  4. Run security audit regularly (e.g., in CI/CD pipeline)

@github-actions

github-actions Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error —— View job


Reviewed commit: 59204c239a11a2360f60d5d213c33d23e80f0cec

Tasks

  • Verify commit SHA
  • Read changed files
  • Provide review feedback

Working...
| Branch: codex/connect-client-guides

@mickdarling

Copy link
Copy Markdown
Member Author

@codex review

@github-actions

github-actions Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @mickdarling's task —— View job


Reviewed commit: 6bbe7cd091f3ff7edd66b860188e0d73d6f5f000

Tasks

  • Verify commit SHA
  • Read changed files
  • Provide review feedback

Code Review

This is a well-executed catalog addition. The security model is sound, the honest "OAuth unverified" labeling is good product hygiene, and the test suite covers the most important adversarial inputs. A few observations:

Architecture

connect-extra-common.js shared module (positive change)
The refactor to a shared connect-extra-common.js with s, r, c, oneRouteClient, and endpointStep eliminates the duplicated helper declarations flagged in the previous review. This directly addresses the SonarQube duplication finding — the earlier version with per-module copies of s/r/c was the source of the 12.2% duplication metric. This is an improvement.

endpointStep text is now consistent
connect-extra-common.js:9 uses 'Copy this hosted URL into the client.' uniformly. The per-module inconsistency noted in earlier reviews is resolved.

Security

connect-extra-clients.js:15 — canonicalization check

if (safe.endpoint !== profile.endpoint) throw new Error('A canonical hosted MCP endpoint is required.');

The previous concern about tautological same-origin checking is resolved by additionalConnectionClients now accepting a separate pageOrigin argument (connect-extra-clients.js:8), which is passed to hostedConnectionProfile and validated against the supplied endpoint. A forged cross-origin profile correctly throws (connect-extra-clients.test.ts:80). The defense is solid.

Shell commands in connect-extra-developer.js and connect-extra-platforms.js
The single-quote wrapping in the OpenClaw (connect-extra-developer.js:18), Copilot CLI terminal (connect-extra-developer.js:29), and Gemini CLI (connect-extra-platforms.js:28) commands is safe given:

  • unsafeEndpointText in connect-config.js:50 rejects ' and \ and control characters
  • validateConnectionName at connect-config.js:6 restricts names to [A-Za-z0-9][A-Za-z0-9_-]{0,63}
  • The adversarial test at ConnectExtraClients.test.ts:75 covers a literal quote in the endpoint

The %27 percent-encoding question from the previous review is correctly dismissed — the shell does not decode percent-encoded sequences, so %27 is three literal safe characters.

Code Quality

Minor: connect-extra-apps.js:23 trailing comma on oneRouteClient with no availability

    oneRouteClient('librechat', ..., check('LibreChat')],
      ),

The trailing ), with blank line before it is visually inconsistent with the style elsewhere (e.g., gemini-cli at connect-extra-platforms.js:29). Not a bug, purely cosmetic.

connect-extra-clients.js:15 — error message could be more descriptive
'A canonical hosted MCP endpoint is required.' — this fires when hostedConnectionProfile normalizes the URL (e.g., strips a trailing slash). The message is accurate but opaque for debugging. A message like 'Endpoint was not already in canonical form; pass the endpoint returned by hostedConnectionProfile.' would be more useful to a developer calling this API incorrectly. Low priority given this is an internal API.

Test Coverage

New tests address the prior gaps

ConnectExtraClients.test.ts:55-68 now explicitly verifies:

  • microsoft-copilot-personal and google-ai-studio have availability routes with no copyable values (values(id) returns [])
  • xcode-native step text contains the mcpbridge clarification

These directly close the gaps identified in the previous review.

ConnectExtraClients.test.ts:86-93 — loopback and encoded path acceptance
The new test covering http://localhost:3000 and Unicode-encoded paths (/α/mcp → /%CE%B1/mcp) provides good boundary coverage for validateHostedMcpEndpoint.

Minor gap: additionalConnectionClients called with no origin (browser fallback)
connect-extra-clients.js:8 defaults pageOrigin to globalThis.location?.origin. When globalThis.location is undefined (e.g., in a Node.js test environment without jsdom), this becomes undefined, which the explicit typeof pageOrigin !== 'string' check at line 13 will catch and throw. The test at ConnectExtraClients.test.ts:83 covers '' but not undefined. Not a security issue since it fails closed, but worth a test case for documentation clarity.

Documentation

docs/guides/hosted-additional-client-guides.md is accurate and appropriately scoped. The qualification table at the bottom of each guide family is a useful reference for follow-up issues #2840 and #2841.

Summary

Category Assessment
Security Sound — cross-origin, shell-injection, and credential-in-URL vectors all validated and tested
Code quality Shared module resolves the duplication; minor cosmetic inconsistency in connect-extra-apps.js
Tests Good coverage; one minor untested edge case (missing origin argument returning undefined)
Performance No issues — static data factories
Documentation Accurate and appropriately caveated

The SonarQube duplication failure on the prior commit should be resolved by the connect-extra-common.js extraction in this head. Overall: ready to merge pending the follow-up qualification issues.
| Branch: codex/connect-client-guides

@github-actions

Copy link
Copy Markdown
Contributor

✅ Security Audit Passed

🔒 Security Audit Results

Security Audit Report

Generated: 2026-09-26T20:43:50.207Z
Duration: 7805ms

Summary

  • Total Findings: 0
  • Files Scanned: 176

Findings by Severity

  • 🔴 Critical: 0
  • 🟠 High: 0
  • 🟡 Medium: 0
  • 🟢 Low: 0
  • ℹ️ Info: 0

Recommendations

  1. Address all critical and high severity issues immediately
  2. Review medium severity issues and plan remediation
  3. Consider adding suppressions for false positives
  4. Run security audit regularly (e.g., in CI/CD pipeline)

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6bbe7cd091

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mickdarling

Copy link
Copy Markdown
Member Author

SonarCloud's latest analysis on 6bbe7cd0 reports 12.1% duplication on new code (30 lines). Its duplication API points to connect-extra-apps.js lines 9–21 and connect-extra-platforms.js lines 11–27: repeated declarative one-route guide records whose strings contain different client-specific setup instructions. Shared descriptor construction has already been consolidated in connect-extra-common.js; another behavioral extraction would obscure the catalog without removing the intentional data shape.

The next change adds only those two data-family files to sonar.cpd.exclusions in the existing Automatic Analysis policy file. The endpoint validator, common builders, developer guides, tests, renderer, and all security/bug/code analysis stay in scope. This is a narrow CPD false-positive disposition, not an exclusion from analysis.

@mickdarling

Copy link
Copy Markdown
Member Author

@codex review

@github-actions

github-actions Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @mickdarling's task —— View job


Reviewed commit: e1f40f0f45645faf288d7e928fbfdc4341ddd7b6

Tasks

  • Verify commit SHA
  • Read changed files
  • Provide review feedback

Code Review

This is a clean, focused commit whose sole change is adding connect-extra-apps.js and connect-extra-platforms.js to sonar.cpd.exclusions in .sonarcloud.properties. The rest of the changed files in the PR were introduced in prior commits.

.sonarcloud.properties change (the only delta in this commit)

Correctness: The exclusion is scoped precisely — only the two declarative catalog families are excluded from CPD; security, bug, and code quality analysis remain in scope. The comment accurately describes why (repeated field shape is intentional; their client-specific text is distinct). This is the right tool for this situation.

Risk: Excluding files from CPD is a permanent bypass, not a snooze. If either connect-extra-apps.js or connect-extra-platforms.js grows non-declarative logic that genuinely duplicates code elsewhere (e.g., extracted helper functions that diverge from connect-extra-common.js), SonarCloud will not detect it. This is a low risk for purely declarative data files, but worth noting for future contributors.

Alternative not taken: The sonar.properties comment documents the reasoning but does not mention the alternative (// noinspection inline suppression or sonar.issue.ignore.multicriteria). The file-level CPD exclusion is the correct choice here since Automatic Analysis ignores sonar-project.properties and sonar.issue.ignore.multicriteria is not honored — as the existing comments already explain.

Prior commit code (full catalog review for completeness)

Security — validated and sound:

  • hostedConnectionProfile + validateHostedMcpEndpoint (connect-config.js:14–47) enforce HTTPS-or-loopback, same-origin, no credentials, no query string, no fragment, and no '/\/control characters before any string is embedded in commands or configs.
  • validateConnectionName constrains names to [A-Za-z0-9][A-Za-z0-9_-]{0,63}, preventing shell injection in all generated commands.
  • The canonicalization check at connect-extra-clients.js:15 correctly revalidates against the trusted pageOrigin, not a self-derived origin from the profile. The test at ConnectExtraClients.test.ts:80 verifies a cross-origin forged profile is rejected.

Hermes YAML key quoting (Codex review comment, still open):

connect-extra-developer.js:12:

`mcp_servers:\n  ${name}:\n    url: ${JSON.stringify(url)}\n    auth: oauth`

name is validated to [A-Za-z0-9][A-Za-z0-9_-]{0,63}, so it cannot be null, true, false, or a bare integer. YAML parsers that encounter Research_2: as a mapping key produce the string Research_2, not a special scalar. This is safe given the existing validation. The Codex concern about YAML boolean/null/numeric key collision does not apply to names matching this regex. No change needed.

Code quality:

  • The connect-extra-common.js shared module (endpointStep, s, r, c, oneRouteClient) eliminates the per-family duplication flagged in earlier reviews.
  • endpointStep text is now uniformly 'Copy this hosted URL into the client.' across all families.
  • The availability-route clients (microsoft-copilot-personal, google-ai-studio) produce no copyable value fields; verified by test at ConnectExtraClients.test.ts:60–63.
  • The Xcode mcpbridge distinction is expressed in the step text and asserted by test at ConnectExtraClients.test.ts:64.

One minor style note (non-blocking): connect-extra-apps.js:22 has a trailing blank line before the closing ), in the librechat entry that is inconsistent with surrounding entries. Purely cosmetic.

Test coverage:

  • 5 it blocks covering: structural validation, schema spot-checks (Hermes YAML, OpenCode/Junie/Antigravity JSON, OpenClaw command), availability-route assertions, adversarial rejection, and loopback/encoded-path acceptance.
  • The additionalConnectionClients(profile, '') call at line 83 asserts the empty-string pageOrigin rejection, which matches the !pageOrigin guard at connect-extra-clients.js:13. undefined (the missing-argument case) is also caught by the same guard via typeof pageOrigin !== 'string'; a separate test case would be documentation-only, not a security gap.

Documentation: docs/guides/hosted-additional-client-guides.md is accurate, appropriately caveated, and correctly differentiates setup guidance from live qualification claims.

Summary

Category Assessment
Security Sound — all generated strings flow through validated, canonicalized inputs
SonarCloud exclusion Correct and narrowly scoped; CPD bypass is documented with rationale
Code quality Shared helpers resolve prior duplication; minor cosmetic inconsistency in connect-extra-apps.js
Tests Good coverage; no actionable gaps
Documentation Accurate and appropriately scoped

The .sonarcloud.properties change is the correct disposition for intentional declarative duplication in static catalog data. Ready to merge pending live qualification follow-ups (#2840, #2841).

Branch: codex/connect-client-guides

@github-actions

Copy link
Copy Markdown
Contributor

✅ Security Audit Passed

🔒 Security Audit Results

Security Audit Report

Generated: 2026-09-26T20:48:34.137Z
Duration: 8084ms

Summary

  • Total Findings: 0
  • Files Scanned: 176

Findings by Severity

  • 🔴 Critical: 0
  • 🟠 High: 0
  • 🟡 Medium: 0
  • 🟢 Low: 0
  • ℹ️ Info: 0

Recommendations

  1. Address all critical and high severity issues immediately
  2. Review medium severity issues and plan remediation
  3. Consider adding suppressions for false positives
  4. Run security audit regularly (e.g., in CI/CD pipeline)

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: e1f40f0f45

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mickdarling

Copy link
Copy Markdown
Member Author

@codex review

@github-actions

github-actions Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @mickdarling's task —— View job


Reviewed commit: 7b9c7c32c5e34144a6de2f733691d182b1b5d29b

Tasks

  • Verify commit SHA
  • Read changed files
  • Provide review feedback

Code Review

This is the final commit in the PR, fixing the last open Codex finding: Hermes YAML connection-name quoting. The overall catalog is well-structured and honestly labeled.

New in this commit: Hermes YAML key quoting (connect-extra-developer.js:12)

The fix is correct. The config route now generates:

`mcp_servers:\n  ${JSON.stringify(name)}:\n    url: ${JSON.stringify(url)}\n    auth: oauth`

JSON.stringify(name) produces a double-quoted string (e.g. "null", "true", "123"), which YAML parsers treat as a string scalar regardless of whether the bare value would parse as a boolean, null, or integer. The it.each test at ConnectExtraClients.test.ts:96–104 verifies this for all four problematic names by parsing the emitted YAML with js-yaml and asserting both the key name and the nested values. This is the right level of test rigor for a YAML injection fix.

One small observation: connect-extra-developer.js:12 uses JSON.stringify(name) for the YAML key but not for the hermes mcp login command on the same line:

s('Authorize', `Run hermes mcp login ${name} in a fresh terminal, …`)

Since name is constrained to [A-Za-z0-9][A-Za-z0-9_-]{0,63}, the unquoted use here is safe. However, the YAML mcp_servers key and the login command now refer to the same logical name in two different forms ("Research_2" vs. Research_2). A user copying the YAML block gets a quoted key; the instruction text tells them to run hermes mcp login Research_2 (unquoted). This is functionally correct since the Hermes CLI will look up the string Research_2 in the config where it is stored as "Research_2" — YAML string equality. No action required, but worth noting if Hermes CLI is ever found to be key-form-sensitive.

Security (cumulative, unchanged from prior review)

All generated command and config strings flow through hostedConnectionProfile → validateHostedMcpEndpoint (rejects ', \, control characters, credentials, query strings, fragments, non-same-origin) → validateConnectionName (restricts to [A-Za-z0-9][A-Za-z0-9_-]{0,63}). The adversarial test at line 72–85 covers the critical injection vectors. The cross-origin forged-profile rejection at line 81 is sound: additionalConnectionClients re-derives safe from the trusted pageOrigin, not from the caller-supplied profile.endpoint, so a substituted foreign URL is caught.

Code quality (cumulative)

  • connect-extra-common.js cleanly centralizes s, r, c, oneRouteClient, and endpointStep, eliminating the per-family duplication from earlier commits. endpointStep text is now consistent across all three families.
  • .sonarcloud.properties adds connect-extra-apps.js and connect-extra-platforms.js to sonar.cpd.exclusions with an accurate rationale comment. The exclusion is scoped to CPD only; security, bug, and code quality analysis remain on. This is the right disposition for intentionally repetitive declarative catalog data; the SonarQube gate now passes at 0.0% duplication on new code.
  • The cosmetic trailing blank line before the closing ), in connect-extra-apps.js:22 (noted in previous reviews) is still present but is non-blocking.

Test coverage (cumulative)

Six it blocks now cover:

  • Structural validation (unique IDs, docs URLs, copyLabel paired with value)
  • Schema spot-checks (Hermes YAML, OpenCode/Junie/Antigravity/OpenClaw)
  • Availability-route assertions (microsoft-copilot-personal, google-ai-studio produce no copyable values)
  • Xcode mcpbridge clarification in step text
  • Adversarial rejection (token in URL, credentials, literal ', wrong transport, cross-origin, shell metacharacter in name, missing pageOrigin)
  • Loopback and encoded-path acceptance
  • New: YAML string-key preservation for false, null, true, 123

No actionable gaps remain. The one edge case from the prior review (undefined vs. '' for missing pageOrigin) fails closed via the same !pageOrigin guard and does not represent a security gap.

Documentation

docs/guides/hosted-additional-client-guides.md accurately reflects the catalog scope and correctly distinguishes setup evidence from live qualification claims.

Summary

Category Assessment
Security Sound — all vectors validated; YAML key injection fixed and tested
Code quality Shared helpers, consistent text, CPD exclusion correctly scoped
Tests Comprehensive; YAML key fix fully covered by it.each parsing test
Performance No concerns — static data factories
Documentation Accurate and appropriately scoped

Ready to merge pending live qualification follow-ups (#2840, #2841).
| Branch: codex/connect-client-guides

@github-actions

Copy link
Copy Markdown
Contributor

✅ Security Audit Passed

🔒 Security Audit Results

Security Audit Report

Generated: 2026-09-26T21:00:24.029Z
Duration: 7246ms

Summary

  • Total Findings: 0
  • Files Scanned: 176

Findings by Severity

  • 🔴 Critical: 0
  • 🟠 High: 0
  • 🟡 Medium: 0
  • 🟢 Low: 0
  • ℹ️ Info: 0

Recommendations

  1. Address all critical and high severity issues immediately
  2. Review medium severity issues and plan remediation
  3. Consider adding suppressions for false positives
  4. Run security audit regularly (e.g., in CI/CD pipeline)

@sonarqubecloud

Copy link
Copy Markdown

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 7b9c7c32c5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mickdarling

Copy link
Copy Markdown
Member Author

Latest-head SonarCloud quality gate passes. Its two remaining open issues are nonblocking maintainability findings: javascript:S107 for the nine-argument oneRouteClient helper (medium maintainability impact), and javascript:S6582 for optional-chain style in the profile guard (low impact). Neither is a security, authentication, or runtime correctness finding. Follow-up #2852 tracks a named descriptor shape and the optional-chain cleanup after this beta connection work, including a review of whether the narrow CPD exceptions remain necessary.

@mickdarling
mickdarling merged commit 3041bef into beta Sep 26, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant