Advertise MCP schemas for wallet write tools#989
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR adds explicit JSON Schema ChangesMCP Wallet Tool Input Schemas
Possibly related issues
Possibly Related PRs
🚥 Pre-merge checks | ✅ 5 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
|
Rebased onto current origin/main to clear the dirty merge state.\n\nPost-rebase validation:\n- .venv\Scripts\python.exe -m pytest tests\test_api_mcp.py::test_mcp_tools_list_and_call tests\test_api_mcp.py::test_mcp_can_register_and_fetch_wallet tests\test_api_mcp.py::test_mcp_wallet_write_tools_reject_unexpected_arguments -> 3 passed, 1 existing Starlette/httpx warning\n- .venv\Scripts\ruff.exe check app\mcp.py tests\test_api_mcp.py -> All checks passed\n- .venv\Scripts\ruff.exe format --check app\mcp.py tests\test_api_mcp.py -> 2 files already formatted\n- git diff --check origin/main...HEAD -> clean\n\nCurrent diff remains focused on app/mcp.py and tests/test_api_mcp.py, preserving main's ledger/proof MCP schema assertions while adding wallet write tool inputSchema coverage. |
c2b1807 to
c04b014
Compare
|
Confirmed after rebase: the current PR diff is exactly two files: app/mcp.py and tests/test_api_mcp.py. GitHub reports base 2712881, head c04b014, one commit, and those same two files. The earlier 172-file bounty focus warning is stale from the pre-rebase comparison; the current diff is scoped to the stated MCP wallet schema changes. |
modelsbridgeaicom-ship-it
left a comment
There was a problem hiding this comment.
Approved current head c04b014709a8924dd86e3da0053d08f90e7e8025 from the MCP wallet write-tool schema surface.
The PR is focused on adding tools/list input schemas for register_wallet and submit_wallet_transfer without changing runtime behavior. I checked the schema metadata against the existing wallet argument validation expectations, including required write fields, mrwk1 address shape, public key/signature hex constraints, nonce minimums, label/memo limits, and rejection of unexpected arguments.
Files inspected:
app/mcp.pytests/test_api_mcp.py
Validation run locally:
.\.venv\Scripts\python.exe -m pytest tests\test_api_mcp.py::test_mcp_tools_list_and_call tests\test_api_mcp.py::test_mcp_can_register_and_fetch_wallet tests\test_api_mcp.py::test_mcp_wallet_write_tools_reject_unexpected_arguments -q-> 3 passed, 1 existing Starlette/httpx warning..\.venv\Scripts\python.exe -m pytest tests\test_api_mcp.py tests\test_mcp_tools.py -q-> 131 passed, 1 existing Starlette/httpx warning..\.venv\Scripts\ruff.exe check app\mcp.py tests\test_api_mcp.py-> All checks passed..\.venv\Scripts\ruff.exe format --check app\mcp.py tests\test_api_mcp.py-> 2 files already formatted..\.venv\Scripts\python.exe -m mypy app\mcp.py app\mcp_tools.py app\wallet_api.py-> success..\.venv\Scripts\python.exe scripts\docs_smoke.py-> docs smoke ok.git diff --check origin/main...HEAD-> clean.git merge-tree --write-tree origin/main HEAD-> clean tree022403842bd388d52d4edc1b58ca5aa5b7cf32a4.
GitHub state checked before review: PR open, non-draft, mergeable, CodeRabbit success, no current-head human reviews, and no visible #933 claim for PR #989. The hosted standard Quality/readiness/docs/image check is not present in the current rollup, so maintainers should still trigger or wait for it if required before merge.
Scope boundaries: no runtime MCP behavior, ledger mutation, wallet signing/custody, treasury/proposal execution, payout execution, admin-token behavior, credentials, private data, exchange, bridge, cash-out, MRWK price behavior, or fabricated payout claim was used.
Summary
egister_wallet and submit_wallet_transfer
Validation
Refs #934
Summary by CodeRabbit
New Features
Tests