-
Notifications
You must be signed in to change notification settings - Fork 47
feat: add dynamic context control for get-pointed-element tool #13
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
Merged
elieteyssedou
merged 18 commits into
etsd-tech:main
from
ashtonchew:feature/dynamic-context-control
Nov 12, 2025
Merged
Changes from 13 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
f7637a0
feat(shared): add detail level enums and optional text/css fields to
ashtonchew 4860ac2
feat(extension): capture text variants and full computed styles in el…
ashtonchew 3254237
feat(server): allow textDetail/cssLevel request parameters and prune …
ashtonchew 041a2ba
feat(server): add element shaping utility for dynamic detail control
ashtonchew de8f249
feat(server): cover element detail normalization and shaping
ashtonchew cf3fc32
docs(readme): document optional MCP tool arguments for context control
ashtonchew 2e468ab
feat(changeset): update version with minor change patch
ashtonchew 7cf0678
fix(extension): use LEGACY_ELEMENT_SELECTED enum value
ashtonchew b5b1d29
feat(server): adapt dynamic context control to ProcessedPointedDOMEle…
ashtonchew cbb4704
feat(server): store full CSS properties in ProcessedPointedDOMElement
ashtonchew 4ce493e
refactor(server): remove LEGACY_ELEMENT_SELECTED support and dead code
ashtonchew ca7a516
docs: add v0.6.0 changeset and update architecture documentation
ashtonchew 4fb84d0
fix(extension): return true from message listener to keep channel open
ashtonchew db24adb
refactor(extension): remove legacy element serializer
ashtonchew d74cd48
feat(shared): switch detail levels to enums
ashtonchew 08339fb
refactor(server): simplify shared state and css payload
ashtonchew 2faf088
docs(readme): clarify numeric detail levels
ashtonchew 3c48015
Fix lint
elieteyssedou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| "@mcp-pointer/server": minor | ||
| "@mcp-pointer/shared": minor | ||
| --- | ||
|
|
||
| **Architecture Cleanup & Improvements** | ||
|
|
||
| - **Server**: Store full CSS properties in `cssProperties` instead of filtering to 5 properties | ||
| - **Server**: Remove LEGACY_ELEMENT_SELECTED support - only DOM_ELEMENT_POINTED is now supported | ||
| - **Server**: Delete unused files (`mcp-handler.ts`, `websocket-server.ts`) | ||
| - **Server**: Simplify types - remove StateDataV1 and LegacySharedState | ||
| - **Server**: Dynamic CSS filtering now happens on-the-fly during MCP tool calls based on cssLevel parameter | ||
|
|
||
| This enables full CSS details to be accessible without re-pointing to elements, with filtering applied server-side based on tool parameters. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.