gabriel / musehub public
feat patch phase5 task/phase5-mcp-profile-manifest #1 / 1
AI Agent gabriel · 49 days ago · Apr 30, 2026 · Diff

feat(phase5): MCP profile manifest + attestation + MPay executor functions

Add six new MCP executor functions and their dispatcher routing + tool definitions:

- execute_read_profile_manifest: full archetype-aware ProfileManifest (activity canvas, attestation badges, AVAX address, agent trust chain, org manifest, MPay totals) — supersedes execute_read_user_profile for agent consumers - execute_issue_attestation: Ed25519 sig verification before DB write; ATTEST canonical message domain-separated from MSign and MPay - execute_revoke_attestation: attester-only revocation; KeyError → 404, PermissionError → 403 - execute_list_attestations: query by subject with optional include_revoked flag - execute_record_mpay_claim: guards amount>0 + sender!=recipient before sig verify; idempotent on nonce_hex - execute_get_mpay_ledger: clamped limit (max 500); returns sent + received with totals

Also adds dispatch_tool() public wrapper in dispatcher.py for test + CLI use. 24 RED → GREEN TDD tests in tests/test_mcp_profile_tools.py.

sha256:9ad0efbec47b1f00437d4ae234184060adcde1ece69c7b63550a13408106b00a sha
sha256:1302fd0e8bc1882bea1afdd7514a2608bc07d0e814b3d1ef3f4100efe5383769 snapshot
← Older Oldest on task/phase5-mcp-profile-manifest
All commits
Newer → Latest on task/phase5-mcp-profile-manifest

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:9ad0efbec47b1f00437d4ae234184060adcde1ece69c7b63550a13408106b00a --body "your comment"