Skip to content

MCP: Update Node SDK to 0.152.0 - #278

Merged
hiroTamada merged 10 commits into
mainfrom
mcp-coverage-update
Nov 20, 2026
Merged

hiroTamada merged 10 commits into
mainfrom
mcp-coverage-update

Conversation

@kernel-internal

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

Copy link
Copy Markdown
Contributor

Summary

  • Update @onkernel/sdk to 0.152.0.

Coverage

MCP coverage audit — Node SDK 0.152.0

Audit scope

  • MCP base: 70e473ae261f0c233d1b98222b972129bab550e4 (@onkernel/sdk 0.148.0).
  • Audited branch: mcp-coverage-update, committed HEAD 8c86aea, plus the workflow-pinned 0.152.0 dependency update and the working-tree changes described below.
  • Installed SDK: @onkernel/sdk 0.152.0.
  • Runtime/package manager: Bun 1.3.3.
  • Inputs reviewed:
    • the full MCP diff against the base SHA (43 files, 3,414 insertions, 171 deletions),
    • the complete SDK 0.148.0 → 0.152.0 resource diff,
    • the supplied OpenAPI diff,
    • ../sdk/api.md, all public resource method signatures, and all request/parameter declarations under ../sdk/src/resources,
    • the non-resource workload-identity credential exports, ClientOptions.credentials, token sources/cache/exchange behavior, and the new optional AWS STS peer dependency,
    • MCP registration, schemas, grouped tools, response projections, authentication, project selection, entitlement gates, tests, and tool-size contracts.
  • Resource AST inventory: 209 public methods across 49 APIResource classes/files. This is the 206 generated endpoint methods documented by api.md plus three public SDK convenience methods (auditLogs.download, browsers.fetch, and configRegistry.analyses.waitForResult). The parameter audit enumerated 220 *Params/*Request declarations across 47 resource files, including nested unions.

Verdict

All user-facing additions and changed behavior from SDK 0.149.0, 0.150.0, 0.151.0, and 0.152.0 are represented in the existing grouped MCP tools after the final 0.152.0 change. No new top-level tool was needed for 0.152.0.

Of the 209 public SDK resource methods:

  • 168 are covered by MCP tools or internal MCP control-plane use.
    • 162 call generated SDK resource methods from MCP implementation code.
    • Search's four methods use the same endpoint/request contracts through the generated client's generic HTTP methods so billable operations can explicitly disable retries and set bounded deadlines.
    • auth.context.retrieve authenticates and scopes each Kernel-native connection and feeds get_connection_context.
    • organization.entitlements.retrieve is used internally to gate vault and search capability registration/calls.
  • 41 remain deliberate exclusions, all listed below with concrete reasons. None was introduced by 0.149.0–0.152.0 without corresponding MCP coverage.

Cumulative SDK/OpenAPI changes and MCP coverage

SDK release SDK/OpenAPI change MCP coverage
0.149.0 Tasks; reports and report-type discovery; deleted vault-item event lookup; 1pw_disconnect; 1Password provider revocation during account/vault deletion. Added manage_tasks with task/report/report-type actions, pagination, limits, and nested report data. Added include_deleted event lookup with deleted-ID semantics and cursor hints. Added 1pw_disconnect, revoking, provider_revocation_pending, recovery guidance, and no-input validation.
0.150.0 Browser captcha_solver; stealth deprecation/proxy behavior; Linux and macOS fingerprints; fingerprint/captcha response fields; Kernel-card browser_id authorization; AgentCard display cart and authorization evidence; service-account/effective-policy/workload provenance in auth context; API-key policy replacement, service-account principal and source_ip condition; workload-identity SDK credentials; payment_reveal_refused. Added captcha solver schemas and forwarding for browser create, browser pools, and managed auth, preserving false; enforced conflicts and creation-only behavior. Added Linux fingerprint enum and new prerequisites. Returned captcha/fingerprint data from apps and pool acquisitions. Added Kernel-card browser routing while preserving Link/Shop Pay paired checkout context. Added AgentCard line items/totals and safe authorization evidence. Extended auth routing/context for workload JWTs. Extended API-key create/update policy behavior and source-IP conditions. Updated telemetry description for the new proxy code.
0.151.0 Service accounts, workload-identity issuers, federation rules, and authentication events; API-key list filters (service_account_id, principal_type, created_by, project_id) and expired; generated type renames. Added signed-in-only manage_workload_identity covering all resource methods, nested JWKS/token validation/match/target/authorization structures, optimistic versions, filters, and pagination. Extended manage_api_keys filters/status handling. Type-only renames required no MCP runtime change.
0.152.0 Optional OnePasswordOAuthAction.connect_url and its user-flow description. Added connect_url to the safe vault action projection and URL filtering. Response guidance now distinguishes the device connect flow from the ordinary OAuth URL, explains mobile/browser behavior and signup, says both URLs should be offered where appropriate, records first-completion invalidation, expiry/refresh behavior, and recovery-link absence.

0.152.0 implementation details

  • src/lib/mcp/vault-responses.ts
    • allows action.connect_url through the same explicit output allowlist as other safe action metadata;
    • applies the existing display-safe URL checks to connect_url, including rejection of credentials in authority components and secret-bearing query/fragment keys;
    • leaves all unknown provider fields and opaque action data filtered;
    • puts the long OpenAPI behavioral explanation in result guidance rather than enlarging a tool description.
  • src/lib/mcp/tools/vault-onepassword.test.ts
    • verifies a mocked account response returns both url and connect_url;
    • verifies the model guidance covers device use, existing desktop users, first-completion behavior, refresh, and recovery absence;
    • verifies a recovery response that omits connect_url does not invent one.
  • src/lib/mcp/vault-responses.test.ts
    • verifies safe connect links survive projection;
    • verifies a secret-bearing connect link is omitted.

Full public method inventory

“Covered” includes internal authentication/entitlement use where exposing a separate user tool would be wrong. Search coverage uses the generated client's generic request methods against the same endpoints and mirrored request contracts for explicit retry/deadline control.

SDK resource Covered method(s) Deliberate exclusion(s)
apiKeys create, delete, list, retrieve, rotate, update —
apps list —
auditLogs — download, exportChunk, list
auditLogs.exportDestinations — create, delete, list, retrieve, test, update
auth.connections create, delete, list, login, retrieve, submit, timeline, update follow
auth.context retrieve —
browserPools acquire, create, delete, flush, list, release, retrieve, update —
browsers create, curl, deleteByID, list, repl, retrieve, saveProfile, update fetch, loadExtensions
browsers.computer batch, captureScreenshot, clickMouse, dragMouse, getMousePosition, moveMouse, pressKey, readClipboard, scroll, setCursorVisibility, typeText, writeClipboard —
browsers.fs createDirectory, deleteDirectory, deleteFile, downloadDirZip, fileInfo, listFiles, move, readFile, setFilePermissions, upload, uploadZip, writeFile —
browsers.fs.watch — events, start, stop
browsers.liveView create —
browsers.logs — stream
browsers.playwright.executors delete, list —
browsers.playwright execute —
browsers.process exec kill, resize, spawn, status, stdin, stdoutStream
browsers.replays list, start, stop download
browsers.telemetry events stream
browsers.webmcp.customTools add, list, remove —
browsers.webmcp invokeTool, listTools —
configRegistry.analyses cancel, list, retrieve waitForResult
configRegistry list, lookup, resolve —
credentialProviders create, delete, list, listItems, retrieve, test, update —
credentials create, delete, list, retrieve, totpCode, update —
deployments delete, list, retrieve create, follow
extensions delete, get, list download, downloadFromChromeStore, upload
invocations create, deleteBrowsers, list, listBrowsers, retrieve follow, update
organization.entitlements retrieve —
organization.limits — retrieve, update
profiles create, delete, list, retrieve, update download
projects.limits retrieve, update —
projects create, delete, list, retrieve, update —
proxies check, create, delete, list, retrieve, update —
proxyIPs list, retrieve —
reportTypes list, retrieve —
reportTypes.versions retrieve —
reports create, list, retrieve —
search.contents fetch —
search.providers list —
search create, retrieve —
serviceAccounts create, delete, list, retrieve, update —
tasks create, linkBrowsers, list, retrieve —
telemetry.destinations — create, delete, list, retrieve, update
vaultProviderConfigs create, delete, list, retrieve, update —
vaults.items delete, events, list, performOperation, retrieve, update, upsert —
vaults delete, list, retrieve, upsert retrieveEncryptionKey
workloadIdentityAuthenticationEvents list —
workloadIdentityFederationRules create, delete, list, retrieve, update —
workloadIdentityIssuers create, delete, list, retrieve, update, verify —

Non-resource workload-identity credential API

SDK 0.150.0 also added a public client-authentication surface outside src/resources: ClientOptions.credentials, access/identity token provider types, TokenCache, OIDC assertion exchange, environment credential chaining, and GitHub Actions, GCP metadata, AWS STS, file, and one-shot value token sources. These are deployment-side SDK credential providers, not Kernel API operations, so no MCP tool should accept their identity assertions or environment configuration. MCP coverage is compatibility at the authentication boundary: an API-audience workload access token produced by this SDK surface is forwarded to Kernel /auth/context, revalidated on every MCP request, and treated as an API/workload credential rather than a Clerk or native-MCP OAuth session. The optional AWS STS peer remains optional to the SDK; MCP added no direct dependency or model-facing STS operation.

Deliberate exclusions

Binary, multipart, or artifact transfer

  • deployments.create
  • browsers.loadExtensions
  • browsers.replays.download
  • profiles.download
  • extensions.download, extensions.downloadFromChromeStore, extensions.upload
  • auditLogs.exportChunk, auditLogs.download

These operations move source archives, extension ZIPs, profile/replay artifacts, or compressed audit exports. Deployment creation additionally accepts environment-variable values and a private-repository token. They are intentionally not added as generic model-facing JSON wrappers or secret-bearing upload forms. Existing MCP file/screenshot tools are bounded, purpose-built exceptions with explicit encodings and output handling.

Long-lived streams and low-level process control

  • deployments.follow, invocations.follow, auth.connections.follow
  • browsers.telemetry.stream, browsers.logs.stream
  • browsers.fs.watch.events, browsers.fs.watch.start, browsers.fs.watch.stop
  • browsers.process.spawn, status, stdin, stdoutStream, resize, kill

MCP exposes bounded list/get/timeline/event polling, one-shot filesystem operations, and process.exec instead. It does not proxy indefinite SSE/stdout streams or process-handle/PTY lifecycle management. Filesystem watch start/stop are excluded with the event stream because exposing only that lifecycle would create unusable or orphaned server-side watches; the SDK provides no bounded cursor/list operation for watch events. Managed auth has bounded wait/timeline behavior, browser telemetry has paginated events, and deployments/invocations have retrieve/list.

Organization-wide administrative surfaces

  • all five telemetry.destinations methods;
  • organization.limits.retrieve and organization.limits.update;
  • auditLogs.list;
  • all six auditLogs.exportDestinations methods.

These are organization/enterprise administration and compliance surfaces, including destination credentials/headers, audit records, S3 trust configuration, and organization defaults. They are outside the current end-user/project-scoped grouped tools and were unchanged by this release range. Adding them would require a separately reviewed signed-in/admin-only capability and secret-safe contract, not opportunistic release coverage.

Internal or SDK-convenience methods

  • invocations.update: intended for app/runtime status/output reporting rather than an invoking end user; caller-facing app invocation creation, observation, browser listing, and cleanup are already exposed.
  • vaults.retrieveEncryptionKey: supports custom collection web-app integrations that submit encrypted values; MCP deliberately uses hosted/value-free flows and does not accept ciphertext/raw credential material.
  • browsers.fetch: SDK convenience wrapper returning a raw Response; browser_curl already provides the reviewed structured HTTP surface.
  • configRegistry.analyses.waitForResult: SDK polling helper, not an API method. MCP exposes retrieve/list/cancel and avoids hidden polling.

Parameter, enum, pagination, and behavior parity

New grouped tools

  • manage_tasks
    • Covers task create/list/get/link-browser and report create/list/get plus report-type list/get/version.
    • Preserves optional empty metadata/arrays and zero-valued nested report fields.
    • Exposes limit/offset for task, report-type, and report lists and returns compact items, has_more, next_offset pages.
    • Enforces SDK/OpenAPI size/count constraints before network calls.
  • manage_workload_identity
    • Covers service-account, issuer, rule, verification, and authentication-event resources.
    • Includes every release enum: issuer presets, replay protection, status/outcome filters, source-IP policy conditions, and provider-specific match fields.
    • Builds the SDK's nested rule target and authorization objects without flattening away semantics.
    • Preserves false, empty descriptions, minimum TTLs, and offset 0.
    • Requires a signed-in user; API keys and workload credentials are rejected locally.

Existing grouped tools extended

  • manage_api_keys
    • Adds service-account creation, principal/audit metadata, policy replacement on update, source-IP conditions, all new list filters, and expired status.
    • Preserves include_deleted: false, nullable create scope, zero-day immediate rotation, and offset 0.
  • Browser, pool, managed-auth, and app tools
    • Add captcha_solver.enabled, including false, with documented independent proxy behavior.
    • Preserve deprecated stealth compatibility while rejecting contradictory settings.
    • Add linux to the fingerprint enum and enforce the SDK's captcha/headless/GPU/memory prerequisites.
    • Return captcha/fingerprint fields where the SDK added them.
  • Vault tools
    • Add AgentCard line_items, subtotal, shipping, tax, and discount, preserving zero values.
    • Add authorization evidence enums/fields and conservative result guidance.
    • Accept Kernel-card browser_id without page_url; retain paired context for Link/Shop Pay and no browser context for VGS/other Kernel items.
    • Add deleted item/vault event lookup, 1pw_disconnect, revoking/revocation behavior, and connect_url.
    • Continue refusing secret-token operations and filtering opaque provider fields.
  • Connection/auth context
    • Accepts workload-identity API-audience JWTs through Kernel /auth/context, without Clerk or native-MCP token exchange.
    • Keeps per-request Kernel-native revalidation for revocation, expiry, and policy.
    • Returns only sanitized workload provenance and effective policy.

Authentication, project selection, entitlements, and secret boundaries

  • Clerk sessions, native MCP OAuth, opaque API keys, and workload-identity access tokens retain separate authentication paths.
  • API/workload credentials are revalidated by Kernel on every request; no new auth-context cache was introduced.
  • Existing project pinning and projectForOperation checks remain intact. manage_tasks is project-scoped. manage_workload_identity is organization-level and accepts project_id only as the explicit rule/list field required by the SDK.
  • Vault/search entitlement resolution and fail-closed capability registration are unchanged.
  • Closed-beta fingerprint behavior and server-side authorization/capability gates remain backend-enforced.
  • Vault response projection remains allowlist-based. The new connect link receives the same safe-URL screening as other action URLs; unknown action/provider fields remain omitted.
  • Existing deliberate exclusions remain: secret token update operations, raw card data, VGS provisioning aliases, and binary archive transfer.
  • Side-effecting/billable operations retain no-automatic-retry behavior where uncertainty matters.
  • No generated managed-auth application bundle was edited.

Tool descriptions and size contracts

Character counts were measured from real tools/list output with all toolsets enabled at the base SHA and in the final working tree.

Tool Before After Delta Reason
get_connection_context 343 506 +163 Added effective policy and sanitized workload-identity provenance.
manage_api_keys 963 429 -534 Rewrote concisely for service-account keys, policy updates, and lifecycle behavior.
manage_tasks 0 (absent) 491 +491 New grouped task/report tool.
manage_vault_cards 7,778 3,125 -4,653 Moved provider/action detail to parameter descriptions and response guidance while retaining pre-call safety rules.
manage_vault_items 9,844 3,527 -6,317 Same compaction; retained consent, secret, recovery, and no-retry boundaries.
manage_vaults 2,872 1,817 -1,055 Added concise 1Password revocation behavior while removing duplicated item detail.
manage_workload_identity 0 (absent) 449 +449 New grouped service-account/workload-identity tool.

0.152.0 itself changes no top-level tool description; its new behavioral text is returned only with relevant 1Password account results.

  • Default per-description cap: 3,000 characters.
  • Existing exceptions were not raised.
  • Final all-tools tools/list JSON size: 229,947 characters, below the 230,000 cap (53 characters headroom).
  • Base all-tools tools/list JSON size: 225,296 characters.

Annotation changes

Only the two newly registered tools add annotation records; no existing tool's annotations changed.

Tool readOnlyHint destructiveHint idempotentHint openWorldHint
manage_tasks false false false false
manage_workload_identity false true false true

manage_tasks performs non-destructive creates/submissions/link additions. manage_workload_identity includes archive operations and reaches external identity-provider/JWKS endpoints through Kernel.

Branch diff review by area

  • Dependency metadata: package.json, bun.lock move SDK 0.148.0 → 0.152.0.
  • Authentication/transport: src/app/[transport]/route.ts and test; src/lib/mcp/auth-context.ts and test; src/lib/native-oauth.ts and test.
  • Connection context and registration: connection-context.ts and test; register.ts and test; tool-names.ts; prompts.test.ts; shared schemas.ts.
  • Tasks/reports: new tools/tasks.ts and tools/tasks.test.ts.
  • API keys/workload identity: tools/api-keys.ts and test; new tools/workload-identity.ts and test.
  • Browser/managed-auth surface: browser-config.ts and test; tools/browsers.ts and test; browser-pools.ts and test; auth-connections.ts and test; apps.ts and test; telemetry catalog text.
  • Vault surface: vault-cards.ts; vault-items.ts and test; vault-kernel.test.ts; vault-onepassword.test.ts; vaults.ts and test; vault-schemas.ts and test; vault-responses.ts and test.

No unrelated generated application artifact changed. git diff --check reports no whitespace errors.

Validation

Required commands, all with Bun 1.3.3:

  • bun run check:managed-auth-app — passed.
  • bunx tsc --noEmit --incremental false — passed.
  • bun test — passed: 1,326 tests, 0 failures, 6,014 expectations across 86 files.

Additional checks:

  • Focused 1Password/vault response tests — passed: 93 tests, 0 failures.
  • Installed package verification — @onkernel/sdk@0.152.0.
  • Tool description and total payload contract tests — included in the passing full suite.
  • Full diff review and git diff --check — passed.

Validation limitations

  • No live Kernel/1Password/identity-provider calls were made; network behavior was validated with mocked SDK clients and mocked HTTP responses.
  • The OpenAPI audit used the supplied openapi-diff.patch and the checked-out SDK release sources; the supplied API snapshot directory was not a Git repository, so no independent OpenAPI history command was possible there.
  • A supplemental targeted Prettier check was not a required command and reports existing style drift under the parent repository's Prettier configuration for the touched vault files; the same files at committed HEAD also fail that parent-config check. They were not wholesale reformatted because that would create large unrelated quote/wrapping churn.
  • The full tools/list payload has only 53 characters of remaining cap headroom; it passes deterministically in the current dependency set but future schema growth must remove or shorten other schema/description text.

Repository state

No commit or push was performed. Expected working-tree changes are:

  • workflow-pinned package.json and bun.lock update to SDK 0.152.0;
  • src/lib/mcp/vault-responses.ts;
  • src/lib/mcp/vault-responses.test.ts;
  • src/lib/mcp/tools/vault-onepassword.test.ts.

Validation

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

Note

High Risk
Changes authentication routing for JWT/API credentials, extends API-key policies and vault payment authorization—security- and payment-sensitive areas with broad tool-surface impact.

Overview
Bumps @onkernel/sdk to 0.152.0 and brings the MCP tool surface in line with that release: new capabilities, stricter validation, and updated auth handling.

Authentication now routes opaque API keys and API-audience workload-identity JWTs (failed Clerk verification) through Kernel /auth/context instead of rejecting them. Connection context/analytics understand service-account principals, effective policy (including source_ip), and sanitized workload_identity provenance.

New MCP toolsets: manage_tasks (tasks, typed reports, report-type discovery) and manage_workload_identity (service accounts, federation issuers/rules, auth events). manage_api_keys gains service-account keys, policy create/update with source-IP conditions, and richer list filters/status.

Browser stack: explicit captcha_solver on browsers, pools, and managed-auth connections; stealth treated as deprecated with conflict checks; fingerprints add linux; responses surface captcha/fingerprint where the SDK does.

Vault/payments: Kernel cards can authorize with browser_id only; Link/Shop Pay still require paired checkout context; include_deleted on item events; 1pw_disconnect and connect_url in 1Password OAuth guidance; tightened authorize/fill contracts and shorter tool descriptions.

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

@vercel

vercel Bot commented Nov 17, 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 20, 2026 3:39pm UTC

@socket-security

socket-security Bot commented Nov 17, 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.148.0 ⏵ 0.152.066 -9100100 +199100

View full report

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

Stale Bugbot comment from a previous run.

Comment thread src/lib/mcp/tools/tasks.ts Resolved
Comment thread src/lib/mcp/tools/tasks.ts Resolved
…lt delete needs a retry

KERNEL retries the revoke, not the vault deletion, and a retry can end without
1Password's confirmation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kernel-internal kernel-internal Bot changed the title MCP: Update Node SDK to 0.149.0 MCP: Update Node SDK to 0.150.0 Nov 19, 2026
Comment thread src/lib/mcp/tools/browsers.ts Resolved
@kernel-internal kernel-internal Bot changed the title MCP: Update Node SDK to 0.150.0 MCP: Update Node SDK to 0.151.0 Nov 19, 2026

@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 3 potential issues.

There are 5 total unresolved issues (including 2 from previous reviews).

Fix All in Cursor

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

Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 8c86aea. Configure here.

Comment thread src/lib/mcp/tools/workload-identity.ts Resolved
Comment thread src/lib/mcp/tools/workload-identity.ts Resolved
Comment thread src/lib/mcp/tools/api-keys.ts Resolved
@kernel-internal kernel-internal Bot changed the title MCP: Update Node SDK to 0.151.0 MCP: Update Node SDK to 0.152.0 Nov 19, 2026
…ettles

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The API treats stealth=true as captcha_solver.enabled=true, so fingerprint
creates that pass only the deprecated stealth flag are valid.
Replace the separate per-action field maps with checks in each branch, next to
the fields it forwards. Reuse the shared pagination schema, give each
workload identity datetime field its own schema instance, add action prefixes
to the remaining workload identity inputs, and reject an empty created_by.
Action-prefixed descriptions for the new workload identity inputs put the
listing about 350 characters over the previous budget.
@hiroTamada
hiroTamada merged commit 3bfd0d6 into main Nov 20, 2026
10 checks passed
@hiroTamada
hiroTamada deleted the mcp-coverage-update branch November 20, 2026 15:43

This branch was successfully deployed

1 active deployment
Preview — e17dc170 Deployed Nov 20, 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.

2 participants