feat(profiles): Add profile management tools and session support by monotykamary · Pull Request #6 · hyperbrowserai/mcp · GitHub
Skip to content

feat(profiles): Add profile management tools and session support#6

Merged
AHarmlessPyro merged 5 commits into
hyperbrowserai:mainfrom
monotykamary:feat/profile-management
Apr 13, 2025
Merged

feat(profiles): Add profile management tools and session support#6
AHarmlessPyro merged 5 commits into
hyperbrowserai:mainfrom
monotykamary:feat/profile-management

Conversation

@monotykamary

@monotykamary monotykamary commented Apr 7, 2025

Copy link
Copy Markdown
Contributor

This PR introduces profile management capabilities to the Hyperbrowser MCP server.

Changes:

  • New Tools:
    • create_profile: Creates a new persistent profile (src/tools/create-profile.ts).
    • delete_profile: Deletes a profile by ID (src/tools/delete-profile.ts).
    • list_profiles: Lists existing profiles with optional pagination (src/tools/list-profiles.ts).
  • Tool Schema Updates:
    • src/tools/tool-types.ts: Added profile options to sessionOptionsSchema for all relevant tools to allow running tasks within a specific profile context. Added schemas for delete_profile and list_profiles.
  • Server Setup:
    • src/transports/setup_server.ts: Imported and registered the new profile management tools.
  • Documentation:
    • README.md: Updated the tool list to include the new profile management tools.

Resolves #5

- Added create_hyperbrowser_profile tool
- Added delete_hyperbrowser_profile tool
- Added list_hyperbrowser_profiles tool
- Updated existing tools to accept optional profileId in sessionOptions
- Refactored session option preparation into src/utils.ts#prepareSessionOptions
- Utilized CreateSessionParams type from @hyperbrowser/sdk
@monotykamary

Copy link
Copy Markdown
Contributor Author

@monotykamary

Copy link
Copy Markdown
Contributor Author
image image image

@AHarmlessPyro

Copy link
Copy Markdown
Collaborator

Hey, thanks for the PR @monotykamary , we'll review this and merge it soon : )

Can you update the PR description though ? Doesn't seem like the refactoring changes mentioned were kept in the PR.

@monotykamary

Copy link
Copy Markdown
Contributor Author

Ah my bad my bad, just updated.

@AHarmlessPyro AHarmlessPyro merged commit cf0d545 into hyperbrowserai:main Apr 13, 2025
@AHarmlessPyro

Copy link
Copy Markdown
Collaborator

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.

Profile support

2 participants