Add scoped-token auth and live hedge MCP execution - #53
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
sdb001
left a comment
There was a problem hiding this comment.
Blocking this for two execution-policy issues.\n\n1. defaults to , but a stored scoped token with still fails in unless the caller also sends . Dry-run preview should not require confirmation, and this currently contradicts the tool's default/docstring.\n\n2. The MCP tool passes scoped policy env into , but the CLI command itself does not enforce with . That means action/network/wallet/notional policy constraints are not checked inside the subprocess before the hedge order path runs. Please add a canonical hedge action and enforce it in before signing/submitting.
|
Blocking this for two execution-policy issues.
|
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Addressed Sam's two execution-policy blockers in 11f11e3:
Verification: |
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Resolved the two stale execution-policy threads after rebasing/merging the base branch into this PR. Verified locally with: python3 -m pytest tests/test_funding_hedge.py tests/test_hedge_margin_port.py tests/test_mcp_gateway_context.py tests/test_web_auth_signer.py (53 passed). |
Summary
hl authscoped-token import/status/export/revoke flow for keyless signing without raw private keys.funding_hedge_executefor live BTCSWP hedge execution.hl hedge executesigns/submits orders.Test plan
python3 -m pytest tests/test_auth_scoped_token.py tests/test_web_auth_signer.py tests/test_setup_auth_guidance.py tests/test_mcp_gateway_context.py tests/test_mcp_annotations.py tests/test_funding_hedge.py tests/test_hedge_margin_port.pypython3 -m pytestMade with Cursor