{"id":51013969,"url":"https://github.com/bch1212/agenttrust-mcp","last_synced_at":"2026-06-21T07:31:41.152Z","repository":{"id":356764717,"uuid":"1233983111","full_name":"bch1212/agenttrust-mcp","owner":"bch1212","description":"Trust-score \u0026 reputation MCP for the agent-to-agent economy.","archived":false,"fork":false,"pushed_at":"2026-05-09T15:55:24.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-09T17:40:32.482Z","etag":null,"topics":["a2a","agent-economy","agent-trust","ai-agents","anthropic","claude","fastapi","mcp","mcp-server","model-context-protocol","python","railway","reputation","sqlite","trust-score"],"latest_commit_sha":null,"homepage":"https://agenttrust-mcp-production.up.railway.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bch1212.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-09T15:44:41.000Z","updated_at":"2026-05-09T15:55:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bch1212/agenttrust-mcp","commit_stats":null,"previous_names":["bch1212/agenttrust-mcp"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/bch1212/agenttrust-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bch1212%2Fagenttrust-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bch1212%2Fagenttrust-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bch1212%2Fagenttrust-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bch1212%2Fagenttrust-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bch1212","download_url":"https://codeload.github.com/bch1212/agenttrust-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bch1212%2Fagenttrust-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34601660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["a2a","agent-economy","agent-trust","ai-agents","anthropic","claude","fastapi","mcp","mcp-server","model-context-protocol","python","railway","reputation","sqlite","trust-score"],"created_at":"2026-06-21T07:31:38.947Z","updated_at":"2026-06-21T07:31:41.145Z","avatar_url":"https://github.com/bch1212.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AgentTrust MCP\n\n\u003e **The trust layer for the A2A economy.**\n\u003e A first-mover credit-bureau-style reputation infrastructure for AI agents.\n\nAs agent-to-agent commerce scales toward $450B by 2028, agents need a way to verify counterparties before transacting — payments, data brokerage, scraping, research, anything paid. AgentTrust gives every agent a portable identity, a 0–1000 trust score, an immutable transaction history, and peer endorsements. Other agents query it; humans verify it; disputes erode it.\n\nTwelve MCP tools, one SQLite store, zero external dependencies. Drop-in compatible with the Anthropic MCP protocol.\n\n---\n\n## Install\n\n```bash\nclaude mcp add agenttrust-mcp --url https://mcp-agenttrust.up.railway.app/mcp\n```\n\nOr run locally:\n\n```bash\ngit clone \u003cthis repo\u003e \u0026\u0026 cd mcp-agenttrust\npip install -r requirements.txt\npython -m uvicorn server:app --reload\n```\n\nOpen [http://localhost:8000/](http://localhost:8000/) for the service banner, [/health](http://localhost:8000/health) for liveness, [/docs](http://localhost:8000/docs) for the OpenAPI explorer.\n\n---\n\n## MCPize Listing Copy\n\n\u003e **AgentTrust — Reputation infrastructure for the A2A economy.**\n\u003e\n\u003e Before your agent wires money, hands over data, or accepts a job from another agent, ask AgentTrust who they're dealing with. Every counterparty gets a 0–1000 trust score that combines transaction history, success rate, account age, peer endorsements, and dispute record — recomputed live. Free for read calls; $9/mo unlimited writes.\n\u003e\n\u003e First-mover infrastructure for a $450B market: as A2A commerce scales, every agent needs a counterparty-check tool. Twelve MCP tools cover the full lifecycle — register, transact, dispute, endorse, verify, search, and rank. SQLite-backed, async, deployable in one click on Railway. Built for agents that need to *know* before they trust.\n\n---\n\n## Pricing\n\n| Tier | Limit | Price |\n|------|---------------------|----------|\n| Free | 100 write calls/day | $0 |\n| Pro  | Unlimited writes    | **$9/mo** |\n| Pay-per-call | $0.001 / write call | metered |\n\nAll read tools (`get_*`, `search_*`, `get_leaderboard`) are public — no API key required.\n\n---\n\n## Trust Tiers\n\n| Tier      | Score range | Plain English |\n|-----------|-------------|---------------|\n| PLATINUM  | 800–1000    | Long history, near-perfect success rate, verified, endorsed |\n| GOLD      | 550–799     | Established, mostly clean, decent volume |\n| SILVER    | 300–549     | Mid-pack, modest volume, no major disputes |\n| BRONZE    | 100–299     | Junior, small footprint, untested at scale |\n| NEW       | 0–99        | Fresh registration — transact at your own risk |\n\n---\n\n## Trust Score Algorithm (plain English)\n\nEvery score is recomputed live on read — no stale cache. Six independent signals combine into a number between 0 and 1000:\n\n**Volume (0–200, log scale).** A first transaction is worth ~12 points; ten transactions ~40; a hundred ~80; a thousand caps at 200. We use a log curve so high-volume agents don't dwarf legitimate small ones — being active matters, but not exponentially.\n\n**Success rate (0–400, the heaviest signal).** The percentage of transactions marked successful, multiplied by 400. A 99% success rate is worth 396 points; a 50% rate is only 200. This is the single most important factor — agents that ship reliably climb fastest.\n\n**Age (0–100, capped at one year).** Each day since registration adds about a quarter of a point, maxing out at 365 days. Not a huge factor, but real: a one-day-old agent with five great transactions is still less trustworthy than a one-year-old agent with the same record.\n\n**Endorsements (0–200).** Every peer endorsement (quality / reliability / speed / domain expertise) is worth 10 points, capped at 200. This is the social signal — other agents and operators vouching for this one.\n\n**Disputes (unbounded penalty).** Each upheld dispute against the agent removes 30 points, with no floor below zero. A bad actor can score 1000 from the other categories and still bottom out at 0 from disputes alone.\n\n**Verification bonus (+100).** A one-time bump when an operator verifies the agent (DNS proof, KYC, or platform-specific check). It's worth roughly the same as 10 endorsements — meaningful, not decisive.\n\nThe score then clamps to [0, 1000] and maps to a tier. Recompute happens on every transaction, endorsement, dispute resolution, and verification — so the score is never more than one event behind reality.\n\n---\n\n## MCP Tools\n\n| Tool | Auth | What it does |\n|------|------|---------------|\n| `register_agent` | API key | Mints an agent_id + agent_token. NEW tier, score 0. |\n| `get_agent_profile` | public | Full profile + live trust score, tier, stats. |\n| `get_trust_score` | public | Score, tier, and per-category breakdown. |\n| `record_transaction` | API key | Logs a transaction (success or failure); recomputes both sides. |\n| `dispute_transaction` | API key | File a dispute. Reporter must be a counterparty. |\n| `resolve_dispute` | admin key | Resolve in favor of reporter / respondent / invalid. |\n| `endorse_agent` | API key | Endorse another agent (quality / reliability / speed / domain). |\n| `get_transaction_history` | public | Paginated transaction list, most recent first. |\n| `search_agents` | public | Filter by capability, min score, verified flag. |\n| `verify_agent` | admin key | Operator verification → +100 score bonus. |\n| `get_leaderboard` | public | Top-N agents, optionally filtered by capability. |\n| `report_agent` | API key | File an out-of-band abuse report (separate from a tx dispute). |\n\n---\n\n## Demo Data\n\nOn startup, five seed agents land in the DB at different tiers — `demo-platinum-001` (AlphaAgent), `demo-gold-001` (BetaAgent), `demo-silver-001` (GammaAgent), `demo-bronze-001` (DeltaAgent), `demo-new-001` (EpsilonAgent). Use them for quickstart demos.\n\n---\n\n## Quickstart Calls\n\n```bash\n# Public read — no key needed\ncurl -s http://localhost:8000/tools/get_leaderboard \\\n  -H 'content-type: application/json' \\\n  -d '{\"limit\": 5}' | jq .\n\n# Register a new agent\ncurl -s http://localhost:8000/tools/register_agent \\\n  -H 'content-type: application/json' \\\n  -H 'x-api-key: agenttrust-dev-key-001' \\\n  -d '{\"agent_id\":\"my-agent\",\"name\":\"My Agent\",\"capabilities\":[\"search\",\"rag\"]}' | jq .\n\n# Record a successful transaction\ncurl -s http://localhost:8000/tools/record_transaction \\\n  -H 'content-type: application/json' \\\n  -H 'x-api-key: agenttrust-dev-key-001' \\\n  -d '{\"from_agent\":\"my-agent\",\"to_agent\":\"demo-platinum-001\",\"amount_usd\":42.0,\"success\":true,\"description\":\"data lookup\"}' | jq .\n```\n\n---\n\n## JSON-RPC MCP Transport\n\n`POST /mcp` speaks the standard MCP JSON-RPC dialect:\n\n```json\n{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/list\"}\n{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/call\",\"params\":{\"name\":\"get_trust_score\",\"arguments\":{\"agent_id\":\"demo-gold-001\"}}}\n```\n\n`tools/call` results return as `{\"content\":[{\"type\":\"text\",\"text\":\"\u003cJSON\u003e\"}],\"isError\":\u003cbool\u003e}`.\n\n---\n\n## Tests\n\n```bash\npytest -v\n```\n\n34 tests covering: HTTP surface (16), trust-score edge cases (18). Specific edge cases included: zero-transaction agents, 100% dispute rate, max-endorsement cap, failure rates that erode score, score-bounded between 0 and 1000.\n\n---\n\n## Deploying to Railway\n\n```bash\n./deploy.sh\n```\n\nReads the project's `RAILWAY_TOKEN` from `~/Projects/agentic-builds/Build Prompts from OpenClaw/.deploy-secrets.env`, provisions the service via nixpacks, sets env vars, and prints the public URL.\n\n---\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbch1212%2Fagenttrust-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbch1212%2Fagenttrust-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbch1212%2Fagenttrust-mcp/lists"}