Skip to content

Add MainStreet read-only reputation oracle plugin#76

Open
philpof102-svg wants to merge 1 commit into
base:masterfrom
philpof102-svg:add-mainstreet-plugin
Open

Add MainStreet read-only reputation oracle plugin#76
philpof102-svg wants to merge 1 commit into
base:masterfrom
philpof102-svg:add-mainstreet-plugin

Conversation

@philpof102-svg
Copy link
Copy Markdown

Summary

Adds MainStreet Trust Oracle as a Base MCP plugin. Follows the exact pattern of moonwell.md / morpho.md — markdown plugin file under skills/base-mcp/plugins/.

Key characteristics :

  • Read-only. No send_calls, no calldata prep. Every endpoint is a GET via web_request. Zero risk surface to Base MCP users.
  • Free tier covers preflight verdicts (1,000 calls/day per IP). No API key required.
  • Premium endpoints via x402 paywall — uses Base MCP's native initiate_x402_request + complete_x402_request flow. Prices : $0.25 audit, $1 bulk-audit, $2 pre-launch, $25 angel.
  • On-chain verifier at 0x7397adb9713934c36d22aa54b4dbbcd70263592b (Base mainnet, view-only, EIP-712 ecrecover).
  • ERC-8004 agentId 53953 for verifiable identity.
  • npm : @raskhaaa/mainstreet-oracle (stdio) + HTTP at https://avisradar.app/mcp.

Why this slot

The existing plugins (aerodrome, avantis, bankr, moonwell, morpho, uniswap, virtuals) all execute Base actions but none expose a 'is this counterparty trustworthy?' primitive. MainStreet fills that slot.

Natural pre-actions :

  • Before morpho.borrow on a fresh borrower → mainstreet_preflight(borrower) → catch fresh-operator flags
  • Before aerodrome.swap against a custom pool → catch rug-pull patterns
  • Before bankr.launch referencing a deployer → catch known-sniper hits
  • Before virtuals.ACP.complete → signed verdict for the evaluator slot

Testing

Tested via Claude Code + Cursor against the existing free endpoints:

  • GET /api/agent/preflight?address=0xAC3ca7c5d3cDD7702fd08F9C4C28dAA22296aDa9 → returns PROCEED + score
  • GET /api/agent/score?subject=0xAC3ca7...aDa9 → returns 0-100 score
  • GET /api/agent/leaderboard?limit=5 → returns top-5

x402 paid endpoints tested via @x402/axios in a separate harness.

— Phil (rakshasar)
npm · github · docs

Read-only reputation oracle for Base wallets and AI agents.

- No send_calls, no calldata: every endpoint is GET via web_request.
- Free tier (1k preflight/day per IP) + x402 paywall on premium reads.
- On-chain verifier at 0x7397adb9713934c36d22aa54b4dbbcd70263592b (Base, view-only).
- ERC-8004 agentId 53953.
- npm @raskhaaa/mainstreet-oracle + HTTP at https://avisradar.app/mcp.

Fills a primitive currently absent: is this Base counterparty trustworthy?
- natural pre-action before Morpho borrow, Aerodrome swap, Bankr launch,
Virtuals ACP trade, x402 payment routing.
@cb-heimdall
Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants