Skip to content

Commit bd57e47

Browse files
committed
feat: rewrite main.ts for multi-session tool registration
Replace singleton browser/context with SessionManager. All existing browser tools now receive a mandatory sessionId parameter injected transparently via registerBrowserTool() wrapper — original tool handlers remain unmodified. - registerBrowserTool(): injects sessionId into Zod schema, resolves correct session's McpContext, acquires per-session mutex - registerSessionTool(): full implementations for create/list/close - Signal handling with process.once() and 10s shutdown timeout - Safety check rejects tools that define their own sessionId schema
1 parent d581c59 commit bd57e47

2 files changed

Lines changed: 233 additions & 129 deletions

File tree

package-lock.json

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)