Add MCP schemas for proof and ledger lookups#974
Conversation
|
Complex PR? Review this PR in Change Stack to move by importance, not file order. 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 (3)
📝 WalkthroughWalkthroughMCP tool definitions in ChangesMCP Tool Schema Validation
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 |
elianguitarra
left a comment
There was a problem hiding this comment.
Bounty #933 review packet
Reviewed head: 0adcbc3a6fea9deaaef888f57a47b6028eba93df
Files inspected:
app/mcp.pytests/test_api_mcp.pydocs/agent-guide.md
Verdict: Looks useful and merge-ready from the reviewed surfaces. The PR adds missing tools/list schemas for get_ledger_entry and get_proof without changing runtime behavior, and the advertised constraints match the current dispatcher/path validation expectations: positive integer ledger sequence and 64-char hex proof hash. I did not find a blocker in this head.
Validation run locally on the PR head:
.venv\Scripts\python.exe -m pytest tests/test_api_mcp.py::test_mcp_tools_list_and_call tests/test_api_mcp.py::test_mcp_get_ledger_entry_includes_payment_proof_hash tests/test_api_mcp.py::test_mcp_get_ledger_entry_rejects_non_positive_sequence tests/test_api_mcp.py::test_mcp_get_proof_returns_public_proof_details tests/test_api_mcp.py::test_mcp_get_proof_reports_unknown_hash tests/test_api_mcp.py::test_mcp_get_proof_rejects_malformed_hash-> 6 passed, 1 existing Starlette/httpx warninggit diff --check 8bdd2823340d9704298e4829f42f53558aa83133..HEAD-> clean
Mergeability/overlap checked:
- GitHub reports PR #974 open, non-draft, mergeable.
- No human reviews were present before this review.
- CodeRabbit generated no actionable comments.
Bounty #934
Summary
tools/listinput schemas forget_ledger_entryandget_proof.sequenceandhashselectors for agent callers.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_mcp_get_ledger_entry_includes_payment_proof_hash tests/test_api_mcp.py::test_mcp_get_proof_returns_public_proof_details -quv run --python 3.12 --extra dev ruff check app/mcp.py tests/test_api_mcp.pyuv run --python 3.12 --extra dev ruff format --check app/mcp.py tests/test_api_mcp.pyuv run --python 3.12 --extra dev mypy app/mcp.pyuv run --python 3.12 --extra dev python scripts/docs_smoke.pygit diff --check origin/main...HEADgit merge-tree --write-tree origin/main HEADScope
This is limited to MCP tool schema/docs/tests. It does not change ledger, wallet, treasury, payout, admin, or price behavior.
Summary by CodeRabbit
New Features
Documentation
Tests