Add get_balance MCP input schema#937
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)
📝 WalkthroughWalkthroughThe Changesget_balance tool input schema
Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
9a75108 to
5dca8b1
Compare
|
Update after rebasing onto current Current head: The earlier Bounty Pr Focus warning was from the previous head/base comparison. After rebase, the PR diff is limited to the intended two files:
Updated validation on the rebased head:
Hosted Quality/readiness/docs/image is successful on this rebased head. CodeRabbit is still pending its latest run at the time of this note. |
|
Final status update after the rebased CodeRabbit run completed: CodeRabbit is now |
szx19970521
left a comment
There was a problem hiding this comment.
Reviewed current head 5dca8b12685d472bb37b78fe0654b9b57d68dd22.
Evidence checked:
- inspected
app/mcp.pyandtests/test_api_mcp.py; - confirmed this only adds
tools/listinputSchemametadata for the existing read-onlyget_balancetool; - confirmed the schema requires the existing
accountselector, disallows extra properties at the advertised MCP schema level, and documents the same account forms already accepted by runtime normalization; - confirmed the dispatcher/runtime path for
get_balanceremains unchanged inapp/mcp_tools.py, so response text, balance calculation, wallet/GitHub account normalization, ledger state, treasury behavior, payout behavior, wallet registration/transfer signing, admin-token behavior, private data, exchange, bridge, cash-out, and MRWK price behavior are not changed.
Validation run locally on a clean temp checkout with the PR head files applied:
python -m pytest tests/test_api_mcp.py::test_mcp_tools_list_and_call tests/test_api_mcp.py::test_wallet_account_views_normalize_mixed_case_addresses tests/test_api_mcp.py::test_github_account_views_normalize_mixed_case_logins -q-> 3 passed, 1 existing Starlette/httpx warningpython -m ruff check app/mcp.py tests/test_api_mcp.py-> passedpython -m ruff format --check app/mcp.py tests/test_api_mcp.py-> 2 files already formattedpython -m mypy app/mcp.py-> successpython scripts/docs_smoke.py-> docs smoke ok
GitHub state checked before review: PR open, mergeable clean, and no human reviews visible on current head.
No blocker found for this focused MCP schema/usability change.
Summary
inputSchemametadata for the existingget_balanceMCP tool.accountselector shape intools/listso agents can discover it before calling the tool.get_balanceruntime behavior and response text.Bounty scope / duplicate check
Bounty #844.
This is a focused MCP schema/usability improvement for a read-only tool. Existing useful open #844 work covers get_balance structured output (#885), selector description wording (#891), broad/stale input-schema work (#738), list_bounties argument guards (#892), proof/bounty/attempt aliases, and wallet schema work (#926). This PR only adds machine-readable
inputSchemametadata for the existingget_balance.accountargument and does not change the dispatcher, balance calculation, response shape, or wallet/ledger/treasury behavior.Validation
uv run --python 3.12 --extra dev python -m pytest tests/test_api_mcp.py::test_mcp_tools_list_and_call tests/test_api_mcp.py::test_wallet_account_views_normalize_mixed_case_addresses tests/test_api_mcp.py::test_github_account_views_normalize_mixed_case_logins -q-> 3 passed, 1 existing Starlette/httpx warninguv run --python 3.12 --extra dev python -m pytest tests/test_api_mcp.py tests/test_mcp_tools.py -q-> 112 passed, 1 existing Starlette/httpx warninguv run --python 3.12 --extra dev ruff check app/mcp.py tests/test_api_mcp.py-> passeduv run --python 3.12 --extra dev ruff format --check app/mcp.py tests/test_api_mcp.py-> 2 files already formatteduv run --python 3.12 --extra dev mypy app/mcp.py-> successuv run --python 3.12 --extra dev python scripts/docs_smoke.py-> docs smoke okgit diff --check origin/main...HEAD-> cleangit merge-tree --write-tree origin/main HEAD-> cleanSummary by CodeRabbit
Bug Fixes
Tests