docs: add MCP work-proof structured example#435
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 a documented MCP API example for ChangesMCP API Example and Validation
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 |
weilixiong
left a comment
There was a problem hiding this comment.
LGTM — useful MCP work-proof structured example covering availability, can_submit, submission_requirements. Clean docs addition.
Summary
submit_work_proofexample usingformat:json.result.content[0].textplusresult.structuredContent.docs/api-examples.md.Bounty #411
Evidence
app/mcp.py, where dict tool results are returned as bothcontent[0].textandstructuredContent.app/mcp_work_proof.py, which emitsavailability,can_submit,availability_warnings,submission_requirements.reference_formats,attempt_endpoint, andnext_actions.docs/api-examples.md,tests/test_docs_public_urls.py.Test Evidence
./.venv/Scripts/python.exe scripts/docs_smoke.py-> docs smoke ok./.venv/Scripts/python.exe -m pytest tests/test_docs_public_urls.py -q-> 19 passed./.venv/Scripts/python.exe -m ruff check tests/test_docs_public_urls.py-> passed./.venv/Scripts/python.exe -m ruff format --check tests/test_docs_public_urls.py-> passedgit diff --check-> cleanMRWK
Related bounty or issue (
Bounty #NorRefs #Nfor multi-award bounties): Bounty #411Summary by CodeRabbit
Documentation
Tests