Skip to content

MCP: Update Node SDK to 0.154.0 - #279

Open
kernel-internal[bot] wants to merge 3 commits into
mainfrom
mcp-coverage-update
Open

kernel-internal[bot] wants to merge 3 commits into
mainfrom
mcp-coverage-update

Conversation

@kernel-internal

@kernel-internal kernel-internal Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Update @onkernel/sdk to 0.154.0.

Coverage

MCP coverage update for @onkernel/sdk 0.154.0

Audit result

  • Kept @onkernel/sdk pinned at 0.154.0 in package.json and bun.lock.
  • Enumerated all 209 public SDK resource methods and reviewed their parameters, nested request shapes, enums, pagination, streaming signatures, and changed return types against registered MCP tools, resources, and shared schemas.
  • Reviewed the complete 16-file diff against a4c3fdde9d32677e4a923499bf0198ed906bcbc5, including the earlier 0.153.0 coverage work on this branch.
  • After the changes below, the complete SDK method/parameter audit found no remaining missing user-facing coverage.

Added and updated MCP coverage

Browser host platform and usage cost

  • Added manage_browsers create input platform.os for SDK Browsers.create / BrowserCreateParams.platform, including the linux and macos enum, creation-only validation, host-versus-reported-OS guidance, current macOS availability and configuration restrictions, and the API's platform_unavailable, unsupported_configuration, and unsupported_fields behavior.
  • Safely appends validated unsupported_fields from SDK APIError bodies without exposing arbitrary error data.
  • Added manage_browsers get input include_cost for SDK Browsers.retrieve / BrowserRetrieveParams.include_cost. Cost calculation is opt-in: the parameter is omitted unless the caller supplies it, explicit false is preserved, and parameterless browser resources never request cost.
  • Returns SDK BrowserCost values unchanged, including zero provisional spend, and adds response guidance for provisional, pending, and unavailable, invoice limitations, as_of, and still-accruing usage.
  • Preserves platform in browser-pool acquire summaries and invocation-browser results. Normal browser create/get/list/update responses already pass it through.
  • Added mocked tests for omitted/false/true detail flags, resource behavior, all cost statuses, zero spend, platform forwarding, update rejection, safe unsupported-field errors, browser-pool output, and app invocation-browser output.

Link balance setup and live balance data

  • Added manage_vault_wallets action link_balance_setup for SDK vaults.items.performOperation with LinkBalanceSetupVaultItemOperationRequest.
  • Added the same operation to generic manage_vault_items invocation with strict operation-specific validation.
  • Added desired_balance_amount and desired_transaction_limit constraints: integer cents, minimum 100, whole-dollar multiples, transaction-limit maximum 50000, and guidance for Link's dynamic $150 maximum addition.
  • Requires a Link wallet that freshly advertises link_balance_setup before submitting the grouped action.
  • Added strict handling for LinkBalanceSetupVaultItemOperationResult: only a display-safe URL is returned, provider-private fields are discarded, and guidance explains private delivery, user completion, non-expiry, suggestion semantics, and observation through a fresh payment_methods expansion.
  • Projects SDK VaultPaymentMethod.balance.available.amount/currency, including zero, while omitting provider-private balance data. Added wallet guidance for live, non-persisted balances and unchanged KERNEL-card approval requirements.
  • Added mocked tests for grouped and generic forwarding, optional inputs, schema bounds, pre-request rejection, advertised-operation gating, zero balances, response redaction, and unsafe URL rejection.

Workload identity issuer lifetime

  • Updated manage_workload_identity issuer token_validation.max_lifetime_seconds from 86400 to 172800 for SDK WorkloadIdentityTokenValidation.max_lifetime_seconds.
  • Updated the parameter description for the 48-hour bound and Azure managed identity rationale, and added boundary/forwarding tests.

OpenAPI description synchronization

  • BrowserCreateParams.platform, BrowserOS, and BrowserPlatform: reflected host OS semantics, Linux default, current macOS availability, headful/us-east restrictions, the MCP names of incompatible fields, and API error codes.
  • ErrorModel.unsupported_fields: surfaced only validated field names as a safe tool-error note.
  • getBrowsers.include_cost and BrowserCost: documented default-off calculation, detail-only presence, provisional gross USD meaning, statuses, zero values, and as_of caveats.
  • LinkBalanceSetupVaultItemOperationRequest: documented eligibility/advertisement behavior, optional suggestions, units, limits, whole-dollar requirements, and the fact that KERNEL cards still require user approval.
  • LinkBalanceSetupVaultItemOperationResult: moved post-call behavior into response guidance rather than repeating it in the tool description.
  • VaultPaymentMethodBalance and VaultPaymentMethodAmount: documented live provider reads, absent available, smallest-unit amounts, and lowercase ISO 4217 currency codes.
  • WorkloadIdentityTokenValidation.max_lifetime_seconds: documented the new 172800-second maximum and rationale.

Changed tool-description sizes

Tool Before After
manage_browsers 1196 1248
manage_vault_wallets 2466 1301

manage_vault_wallets was shortened by moving operation-specific detail into parameter descriptions and response guidance. Tool annotations were unchanged: it was already destructive because it includes remove_payment_method; the new setup action does not change that classification. Browser annotations were also unchanged.

Intentional exclusions and equivalent mappings

The full-surface audit retained existing safety and transport boundaries:

  • Equivalent grouped coverage: standalone computer mutations are represented through computer_action batching; browser filesystem methods are represented through bounded manage_browser_files; search create/get/content/provider routes are represented through the SDK client's low-level requests to preserve no-retry and deadline behavior; authenticated context is returned by get_connection_context; browser fetch is represented by the structured browser_curl tool; config-registry waiting remains explicit bounded get_analysis calls.
  • Open streams and transport sessions: auth/deployment/invocation follow streams, browser log and telemetry streams, filesystem watch streams, and process spawn/status/stdin/stdout/resize/kill remain excluded. MCP exposes bounded timeline/events/list/get calls and synchronous exec_command instead of open SSE or process transports.
  • Binary and artifact APIs: extension upload/download/Chrome-store download, profile archive download, replay download, runtime extension ZIP loading, audit-log chunk download, and file/GitHub deployment creation remain outside the general JSON tool surface. Browser VM files are the exception because manage_browser_files applies explicit size caps, encoding, embedded-resource handling, and retry controls.
  • Internal callbacks and helpers: Invocations.update is an app-runtime completion callback, not a caller action. SDK polling helpers such as config-registry waitForResult are not separate MCP actions. Managed-auth app implementation tools remain app-capability-gated and hidden from normal model selection.
  • Organization-admin and compliance surfaces: organization-wide audit-log reads/exports, audit export-destination management, organization limit mutation, and OTLP destination management remain excluded pending dedicated authorization, redaction, and secret-header handling. Organization entitlements are consumed internally only to gate vault/search registration.
  • Secret-bearing operations: vault encryption-key retrieval, VGS configuration/wallet/card writes requiring PAN/CVC aliases, caller-supplied single-use card creation, 1Password token/integration-key imports and token rotation, and secret access-token replacement operations remain API/SDK-only. Existing MCP reads continue to project safe metadata while omitting secret references and capabilities.

No SDK 0.153.0/0.154.0 addition is left unexplained: browser platform/cost, Link balance setup/balance data, and the workload-identity lifetime change are covered above.

Validation

All required commands were run with Bun 1.3.3 and passed:

  • bun run check:managed-auth-app
  • bunx tsc --noEmit --incremental false
  • bun test — 1338 passed, 0 failed across 86 files

Additional checks:

  • src/lib/mcp/tool-contract.test.ts passes; the complete tools/list payload is 230941 characters against the 231000-character cap.
  • Browser positioning tests pass with no prohibited access-evasion language in advertised metadata.
  • git diff --check a4c3fdde9d32677e4a923499bf0198ed906bcbc5 passes.
  • New behavior is covered with mocks; no production API calls or real resources were used.

An exploratory bun run format:check reports pre-existing formatting warnings in unrelated files, so it was not used as an additional gate and no global formatting rewrite was retained.

Validation

  • Frozen Bun install
  • Managed-auth App bundle check
  • TypeScript type check
  • Bun tests
  • OAuth Redis recording check

Note

Medium Risk
Touches payment (Link balance setup), billing visibility (browser cost), and auth federation limits; mostly additive with validation and redaction, but broader user-facing behavior.

Overview
Bumps @onkernel/sdk to 0.154.0 and aligns MCP tools with new browser, vault, and workload-identity APIs.

Browsers: manage_browsers adds creation-only platform.os (linux / macos), optional get include_cost (default off) with usage-cost guidance, and safe surfacing of API unsupported_fields. platform is included in browser-pool acquire summaries and app invocation browser listings.

Vault (Link): New link_balance_setup on manage_vault_wallets and generic manage_vault_items invoke, with validated balance/threshold inputs, redacted setup URLs, and public balance.available on payment methods.

Workload identity: Issuer token_validation.max_lifetime_seconds maximum raised to 172800 (48h) for Azure-style tokens.

Tests and tool/schema descriptions updated across the touched surfaces.

Reviewed by Cursor Bugbot for commit 7ab703d. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
mcp Ready Ready Preview Nov 22, 2026 9:01pm UTC

@socket-security

socket-security Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​onkernel/​sdk@​0.152.0 ⏵ 0.154.066100100 +199 +1100

View full report

@kernel-internal kernel-internal Bot changed the title MCP: Update Node SDK to 0.153.0 MCP: Update Node SDK to 0.154.0 Nov 20, 2026

@devin-ai-integration devin-ai-integration 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@cursor cursor 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 7ab703d. Configure here.

"KERNEL wallet enrollment and spend approval use bearer action urls. share card_enrollment and spend_approval urls only with the intended user privately; send card_ingest urls only to the trusted card issuer backend. never open them or put them in logs or traces. a connected wallet can hold zero or more cards in payment_methods. when add_payment_method and remove_payment_method are advertised, use manage_vault_wallets to enroll or remove individual cards; add defaults to a 30-minute hosted card_enrollment link and can request a 5-minute server card_ingest url, while removing one method does not disconnect the wallet. otherwise the wallet uses one legacy default card: creation returns its card_enrollment action, pending_authorization waits for enrollment, and degraded means an uncertain enrollment requires deleting the wallet before adding another card. reconnect_required is a legacy wallet awaiting an operator upgrade; reads preserve it, but payment and deletion requests are refused until the upgrade. payment method is_default identifies only the legacy default card; wallets with payment methods enabled have no default. pending_enrollment uses its card_enrollment or card_ingest action. removal_pending refuses payments after an uncertain removal outcome; retry remove_payment_method later only when advertised. recovery_required after an uncertain enrollment may be removable, while an unreadable stored card requires private support and can refuse removal with 409; follow status_reason. payment_methods eligibility is advisory. network_token_pending, network_token_unsupported, or network_token_failed normally means do not authorize, unless the returned capability and advertised flow explicitly support checkout delivery without a network token; then fill types temporary checkout details. for network_token_pending, re-check later at most once in this attempt. if still ineligible or unknown, ask the cardholder before enrolling a different card; do not poll indefinitely or replay an uncertain purchase.";

const linkWalletBalanceGuidance =
"payment_methods is live provider data. a stored-value method such as Link balance has type balance and may include balance.available; amount is in the currency's smallest unit and currency is a lowercase iso 4217 code. available is absent when the provider did not report it, and KERNEL never stores the balance. when link_balance_setup is advertised, use manage_vault_wallets or manage_vault_items to get the user-completed setup page; the suggested balance and threshold do not remove the approval requirement from KERNEL cards.";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Vault guidance omits invoke contract

Low Severity

New Link wallet guidance names link_balance_setup and manage_vault_items without spelling action: "invoke" plus operation: "link_balance_setup". Agents that follow the prose instead of structured hints can call manage_vault_items with the operation as an action, which that tool does not accept.

Fix in Cursor Fix in Web

Triggered by learned rule: MCP tool responses: return data, don't invent orchestration protocols

Reviewed by Cursor Bugbot for commit 7ab703d. Configure here.

This branch was successfully deployed

1 active deployment
Preview — 7ab703df Deployed Nov 22, 2026 by vercel[bot]
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.

0 participants