feat: add minimal EIP-1193 browser bridge scaffold - #56
Merged
hellno merged 3 commits intoJun 15, 2026
Conversation
hellno
added a commit
that referenced
this pull request
Jun 16, 2026
Resolved one conflict in crates/deckard-mcp/src/sidecar.rs: main refactored the sidecar to delegate chain-probing + the low-level socket request to the new deckard-wallet-client crate (PR #56 browser-bridge-out-of-mcp). Took main's structure (self.wallet.ensure_chain() + the trimmed deckard_contract imports), keeping ProposalOrigin since shield()/execute() still tag their proposes Agent-origin (the #60 feed shows those as "Atlas"). Carried this branch's additive wire change (SignerRequest::Propose gained an `origin` field) into the merged-in deckard-wallet-client: its connect-time chain probe now passes `origin: ProposalOrigin::Agent` (was failing to compile without it). Verified green on the merged tree: cargo fmt --check, clippy -D warnings (default + tray), full workspace tests, shellcheck.
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.
Summary
deckard-mcpinto a standalonedeckard-browser-bridgecrate.deckard-wallet-clientfor shared signer client access, chain id config, wallet address lookup, and common failure mapping.Why
MCP is an agent interface; the browser bridge is a dapp/browser interface. The spike lived under
deckard-mcpbecause it reused the existing local sidecar/API surface, but keeping HTTP/EIP-1193/browser-extension logic there would make MCP a generic local API server. This refactor gives the browser bridge its own boundary without expanding its API.How to run
Browser bridge:
Dev/mock mode:
Test dapp:
Intentionally experimental / unchanged
4200errors.Follow-up cleanup ideas
/rpcHTTP boundary.Verification
All passed locally.