Repository navigation
🤖 feat(web): add W3C WebMCP browser AI agent integration (useWebMCP) - #42
Merged
Merged
Conversation
Deploying sc-controller-mapper with
|
| Latest commit: |
4ab3b4f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://abda58d6.sc-controller-mapper.pages.dev |
| Branch Preview URL: | https://feat-webmcp-exploration.sc-controller-mapper.pages.dev |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🤖 AI Agent / LLM Disclosure
This Pull Request was developed and generated with the assistance of an AI Agent (Google DeepMind Antigravity):
document.modelContext/navigator.modelContext) is a viable integration for the Star Citizen Keybinding Management Suite (sc-controller-mapper), design the client-side tool capabilities, implement the hook and diagnostic UI on a new branch (feat/webmcp-exploration), and add unit + E2E test coverage.search_webfor W3C WebMCP specification & polyfill patterns), workspace file analysis (read_file,write_file,edit_file), Vitest unit test runner, TypeScript compiler (tsc -b), and Vite production build verification.npm testacross the monorepo (22 test files / 223 unit & component tests passing, including 7 comprehensive tests inapps/web/src/hooks/useWebMCP.test.tsx).npm run buildacross@sc-mapping/shared-types,@sc-mapping/parser,@sc-mapping/resolver, and@sc-mapping/web(clean TypeScript build and Vite production bundle).e2e/app-workflow.spec.tsverifyingdocument.modelContext.getTools(),document.modelContext.executeTool('set_action_binding', ...), and the interactive WebMCP diagnostic runner inside the Contributor Tools modal.Summary of Changes
apps/web/src/hooks/useWebMCP.ts):document.modelContextandnavigator.modelContextwith zero external runtime dependencies and automatic polyfill support:get_profile_summary(read): Profile metadata, target game version (GAME_METADATA), joystick hardware list,jsX_remap table, action counts, and conflict summary.audit_conflicts(read): RunsConflictResolver.auditDocumentwithdeviceScope(js,kb,all),severity(Fatal,Warning,Redundant,all), andlimitfilters.search_bindings_and_catalog(read): Searches across all 50 Star Citizen action maps in both the loaded XML profile andCatalogManagerby keyword, input code,mapName,masterFlightMode(SCM/NAV), andbindingState(bound/unbound/all).find_unused_joystick_inputs(read): Identifies unused vs. bound buttons and axes on any joystick instance (js1..jsN).set_action_binding(write): Updates<rebind>and<addbind>inputs with chorded modifier parsing (ActionMapsParser.parseInputDescriptor), preserves the<rebind input=""/>unbind invariant when cleared, and runs an immediate conflict delta check.auto_fix_obsolete_conflicts(write): Automatically strips deprecated legacy bindings (obsolete_collision) colliding with modern Star Citizen actions.remap_joystick_instances(write): Updates or resets thejs1..js8+hardware remapping table to bypass Star Citizen's 4-devicepp_resortdevicesceiling.configure_joystick_options(write): Configures axis inversions, deadzones, sensitivities, andProductGUIDon<options type="joystick">blocks.workspace_control(write): Switches HUD tabs (matrix,inspector,conflicts), updates the live search query, loads starter HOSAS/HOTAS presets, or exports the lossless CryEngine XML string.apps/web/src/App.tsx):document.modelContext) diagnostic panel inside the Contributor Tools modal to inspect and test-run registered tools in the browser.apps/web/src/hooks/useWebMCP.test.tsx) and Playwright E2E test (e2e/app-workflow.spec.ts).AGENTS.md,README.md,docs/ARCHITECTURE_BLUEPRINT.md, anddocs/PROJECT_STATE.md.