Skip to content

feat(mcp): add session tab cleanup tool#91

Merged
yan5xu merged 1 commit intoepiral:mainfrom
MonkeyLeeT:codex/mcp-close-all-tabs
Mar 22, 2026
Merged

feat(mcp): add session tab cleanup tool#91
yan5xu merged 1 commit intoepiral:mainfrom
MonkeyLeeT:codex/mcp-close-all-tabs

Conversation

@MonkeyLeeT
Copy link
Copy Markdown
Contributor

Summary

  • track tabs opened by browser_open and browser_tab_new during the current MCP session
  • add a browser_close_all MCP tool to close tracked tabs in one call
  • remove closed tabs from the session tracker and tolerate tabs already closed outside bb-browser

Testing

  • pnpm build

Closes #48

@yan5xu yan5xu merged commit cfa1b0f into epiral:main Mar 22, 2026
yan5xu added a commit that referenced this pull request Mar 22, 2026
- #82: extract EXEC_TIMEOUT_BUFFER_MS constant for magic number 5000
- #91: remove failed tabs from sessionOpenedTabs to prevent stale entries
- #25: update platform/command counts from 35/97 to 36/103

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

MCP: Auto-close tabs opened during a session

2 participants