-
Notifications
You must be signed in to change notification settings - Fork 659
Implement Browser Tabs as MCP Resources #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi Hikaru! I'm not aware of any MCP clients currently implementing resources in a way that would work here. Claude Desktop uses them in a way where there's human input needed to give the model access to a resource. What client are you working with? Would it work there? |
I'm using Cline which handles MCP resources as context. Therefore, this change is very useful as resources can be treated like files. But I know that many clients don't support resources. What about making it switchable through an option? |
I think it's fine to expose it without an option. Clients that don't understand resources won't suffer :D I'm not convinced this is the right approach because of the the warning at https://modelcontextprotocol.io/docs/concepts/resources, but i'll play with it! |
Now with Cursor removing Resources entirely, i'll deprioritise on this. Let's wait until the notion of Resources settles in the MCP ecosystem. |
Uh oh!
There was an error while loading. Please reload this page.
Overview
Currently, in our MCP implementation, page content is returned as tool output after browser operations (tools) are executed. This causes the same content to be repeatedly included in the context, leading to context capacity issues. To resolve this, we propose implementing browser tabs using the MCP "resources" protocol and notifying changes only when snapshots are modified.
Background
MCP has two main protocols:
Browser tab state should be treated as data, making the resources protocol more appropriate for management.
Objective
Implementation Details
1. Resource Definition
// Tab resource URI schema: tab://{tabId}/snapshot
2. Resource Management Class Implementation
3. Tool and Resource Integration
4. Client Notification System
Technical Details
Resource Management
Change Detection and Notification
Expected Benefits
References
The text was updated successfully, but these errors were encountered: