Skip to content

Add session WebMCP tools and invocation handles - #128

Merged
NikhilShahi merged 3 commits into
mainfrom
codex/webmcp
Oct 10, 2026
Merged

NikhilShahi merged 3 commits into
mainfrom
codex/webmcp

Conversation

@NikhilShahi

@NikhilShahi NikhilShahi commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Changes

Validation

  • yarn lint
  • yarn build

Note

Medium Risk
New session surface that can invoke arbitrary page tools with consequential semantics; retry/timeout behavior differs between GET polling and POST invoke/start/cancel.

Overview
Adds WebMCP support so sessions can discover and run page-provided tools after opt-in with enableWebMcp on sessions.create. SessionsService now exposes sessions.webmcp with listTools, blocking invoke, async start / getResult / cancel, plus exported types under @hyperbrowser/sdk/types.

The client validates toolRef, JSON input, and time budgets locally, scales HTTP timeouts from timeoutSeconds / waitSeconds, and documents non-retry semantics for mutating calls (lost responses can mean unknown outcomes). README documents usage, limits, and polling; version bumps to 1.2.0.

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

@NikhilShahi
NikhilShahi merged commit 3f4f95c into main Oct 10, 2026
3 checks passed
@AHarmlessPyro
AHarmlessPyro deleted the codex/webmcp branch October 10, 2026 22:56
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