Repository navigation
MCP: Update Node SDK to 0.154.0 - #279
kernel-internal[bot] wants to merge 3 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
66a5ea9 to
7ab703d
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ 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."; |
There was a problem hiding this comment.
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.
Triggered by learned rule: MCP tool responses: return data, don't invent orchestration protocols
Reviewed by Cursor Bugbot for commit 7ab703d. Configure here.


Summary
@onkernel/sdkto0.154.0.Coverage
MCP coverage update for
@onkernel/sdk0.154.0Audit result
@onkernel/sdkpinned at0.154.0inpackage.jsonandbun.lock.a4c3fdde9d32677e4a923499bf0198ed906bcbc5, including the earlier 0.153.0 coverage work on this branch.Added and updated MCP coverage
Browser host platform and usage cost
manage_browserscreate inputplatform.osfor SDKBrowsers.create/BrowserCreateParams.platform, including thelinuxandmacosenum, creation-only validation, host-versus-reported-OS guidance, current macOS availability and configuration restrictions, and the API'splatform_unavailable,unsupported_configuration, andunsupported_fieldsbehavior.unsupported_fieldsfrom SDKAPIErrorbodies without exposing arbitrary error data.manage_browsersget inputinclude_costfor SDKBrowsers.retrieve/BrowserRetrieveParams.include_cost. Cost calculation is opt-in: the parameter is omitted unless the caller supplies it, explicitfalseis preserved, and parameterless browser resources never request cost.BrowserCostvalues unchanged, including zero provisional spend, and adds response guidance forprovisional,pending, andunavailable, invoice limitations,as_of, and still-accruing usage.platformin browser-pool acquire summaries and invocation-browser results. Normal browser create/get/list/update responses already pass it through.Link balance setup and live balance data
manage_vault_walletsactionlink_balance_setupfor SDKvaults.items.performOperationwithLinkBalanceSetupVaultItemOperationRequest.manage_vault_itemsinvocation with strict operation-specific validation.desired_balance_amountanddesired_transaction_limitconstraints: integer cents, minimum 100, whole-dollar multiples, transaction-limit maximum 50000, and guidance for Link's dynamic $150 maximum addition.link_balance_setupbefore submitting the grouped action.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 freshpayment_methodsexpansion.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.Workload identity issuer lifetime
manage_workload_identityissuertoken_validation.max_lifetime_secondsfrom 86400 to 172800 for SDKWorkloadIdentityTokenValidation.max_lifetime_seconds.OpenAPI description synchronization
BrowserCreateParams.platform,BrowserOS, andBrowserPlatform: reflected host OS semantics, Linux default, current macOS availability, headful/us-eastrestrictions, 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_costandBrowserCost: documented default-off calculation, detail-only presence, provisional gross USD meaning, statuses, zero values, andas_ofcaveats.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.VaultPaymentMethodBalanceandVaultPaymentMethodAmount: documented live provider reads, absentavailable, 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
manage_browsersmanage_vault_walletsmanage_vault_walletswas shortened by moving operation-specific detail into parameter descriptions and response guidance. Tool annotations were unchanged: it was already destructive because it includesremove_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:
computer_actionbatching; browser filesystem methods are represented through boundedmanage_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 byget_connection_context; browserfetchis represented by the structuredbrowser_curltool; config-registry waiting remains explicit boundedget_analysiscalls.exec_commandinstead of open SSE or process transports.manage_browser_filesapplies explicit size caps, encoding, embedded-resource handling, and retry controls.Invocations.updateis an app-runtime completion callback, not a caller action. SDK polling helpers such as config-registrywaitForResultare not separate MCP actions. Managed-auth app implementation tools remain app-capability-gated and hidden from normal model selection.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-appbunx tsc --noEmit --incremental falsebun test— 1338 passed, 0 failed across 86 filesAdditional checks:
src/lib/mcp/tool-contract.test.tspasses; the completetools/listpayload is 230941 characters against the 231000-character cap.git diff --check a4c3fdde9d32677e4a923499bf0198ed906bcbc5passes.An exploratory
bun run format:checkreports pre-existing formatting warnings in unrelated files, so it was not used as an additional gate and no global formatting rewrite was retained.Validation
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/sdkto 0.154.0 and aligns MCP tools with new browser, vault, and workload-identity APIs.Browsers:
manage_browsersadds creation-onlyplatform.os(linux/macos), optional getinclude_cost(default off) with usage-cost guidance, and safe surfacing of APIunsupported_fields.platformis included in browser-pool acquire summaries and app invocation browser listings.Vault (Link): New
link_balance_setuponmanage_vault_walletsand genericmanage_vault_itemsinvoke, with validated balance/threshold inputs, redacted setup URLs, and publicbalance.availableon payment methods.Workload identity: Issuer
token_validation.max_lifetime_secondsmaximum 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.