Add MCP proof lookup tool#40
Merged
Merged
Conversation
Contributor
|
No blockers from my pass. Checked:
Validation on this PR branch:
|
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:
Adds a read-only
get_proofMCP tool for looking up public proof records by hash.Related bounty or issue:
Bounty #37
What changed:
get_proofto the MCPtools/listresponse.tools/callhandling forget_proofusing existingProofrows and stored public proof JSON.hash,kind, ledger/submission ids, creation time) without changing proof payloads, ledger hashes, or payout behavior.get_proofMCP example todocs/agents.md.Validation:
../mergework-bounty-20/.venv/bin/python -m pytest 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 -q-> 2 passed.../mergework-bounty-20/.venv/bin/python -m pytest tests/test_api_mcp.py -q-> 13 passed.../mergework-bounty-20/.venv/bin/python -m pytest -q-> 74 passed.../mergework-bounty-20/.venv/bin/python -m ruff format --check .-> 28 files already formatted.../mergework-bounty-20/.venv/bin/python -m ruff check .-> All checks passed.../mergework-bounty-20/.venv/bin/python -m mypy app-> Success.../mergework-bounty-20/.venv/bin/python scripts/check_agents.py-> AGENTS.md ok.../mergework-bounty-20/.venv/bin/python scripts/docs_smoke.py-> docs smoke ok.Notes:
Documentation and MCP behavior only; no deployment, secrets, ledger mutation, proof payload mutation, or payout behavior changes.