io.github.jacobsd32-cpu/djd-agent-score

السجل الرسمي المالية والمدفوعات

Reputation scoring for AI agent wallets on Base. Trust scores, fraud checks, x402.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package djd-agent-score-mcp
Claude Code
claude mcp add djd-agent-score -e 'DJD_BASE_URL=<DJD_BASE_URL>' -e 'DJD_TIMEOUT_MS=<DJD_TIMEOUT_MS>' -- npx -y djd-agent-score-mcp@1.0.1
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "djd-agent-score": {
            "command": "npx",
            "args": [
                "-y",
                "djd-agent-score-mcp@1.0.1"
            ],
            "env": {
                "DJD_BASE_URL": "<DJD_BASE_URL>",
                "DJD_TIMEOUT_MS": "<DJD_TIMEOUT_MS>"
            }
        }
    }
}

متغيرات البيئة

  • DJD_BASE_URL Base URL for the DJD Agent Score API (defaults to production)
  • DJD_TIMEOUT_MS Request timeout in milliseconds (default: 10000)

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. djd-agent-score-mcp
  2. Tools
  3. Installation
  4. Configuration
  5. Environment Variables
  6. Development
  7. x402 Payment
  8. License

djd-agent-score-mcp

MCP server for DJD Agent Score — a reputation scoring API for AI agent wallets on Base.

This server exposes the DJD Agent Score REST API as Model Context Protocol tools, so any MCP-compatible agent (Claude, GPT, Gemini, LangChain, etc.) can call scoring endpoints natively.

Tools

ToolEndpointCostDescription
score_basicGET /v1/score/basicFreeBasic score, tier, confidence
score_fullGET /v1/score/full$0.10 (x402)Full dimension breakdown
score_refreshGET /v1/score/refresh$0.25 (x402)Re-score with latest chain data
report_fraudPOST /v1/report$0.02 (x402)Submit fraud report
check_blacklistGET /v1/data/fraud/blacklist$0.05 (x402)Check fraud reports
get_badgeGET /v1/badge/{wallet}.svgFreeEmbeddable SVG badge
get_leaderboardGET /v1/leaderboardFreeTop scored wallets
register_agentPOST /v1/agent/registerFreeRegister wallet with metadata
health_checkGET /healthFreeSystem status

Installation

npm install -g djd-agent-score-mcp

Or run directly with npx:

npx djd-agent-score-mcp

Configuration

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "djd-agent-score": {
      "command": "npx",
      "args": ["-y", "djd-agent-score-mcp"]
    }
  }
}
Cursor

Add to .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "djd-agent-score": {
      "command": "npx",
      "args": ["-y", "djd-agent-score-mcp"]
    }
  }
}
Claude Code

Add to your project's .mcp.json:

{
  "mcpServers": {
    "djd-agent-score": {
      "command": "npx",
      "args": ["-y", "djd-agent-score-mcp"]
    }
  }
}
Generic MCP Client (Streamable HTTP)

Start the server in HTTP mode:

TRANSPORT=http PORT=3000 npx djd-agent-score-mcp

Then connect your MCP client to http://localhost:3000/mcp.

Environment Variables

VariableDefaultDescription
DJD_BASE_URLhttps://djd-agent-score.fly.devAPI base URL (use http://localhost:3001 for local dev)
DJD_TIMEOUT_MS10000Request timeout in milliseconds
TRANSPORTstdioTransport mode: stdio or http
PORT3000HTTP server port (only used when TRANSPORT=http)

Development

git clone <repo-url>
cd djd-agent-score-mcp
npm install
npm run build
npm start

To point at a local API during development:

DJD_BASE_URL=http://localhost:3001 npm start

x402 Payment

Some endpoints require x402 micropayments. When an agent calls a paid tool, the API responds with HTTP 402 and payment instructions. Your agent framework must:

  1. Detect the 402 response
  2. Complete the x402 payment (USDC on Base)
  3. Retry the request with the payment proof

The MCP server surfaces the 402 details in the tool's error response so the agent can handle it.

License

MIT

الأسئلة الشائعة

ما هو io.github.jacobsd32-cpu/djd-agent-score؟

Reputation scoring for AI agent wallets on Base. Trust scores, fraud checks, x402.

كيف أثبّت io.github.jacobsd32-cpu/djd-agent-score؟

يعمل على جهازك. في Claude Code: claude mcp add djd-agent-score -e 'DJD_BASE_URL=<DJD_BASE_URL>' -e 'DJD_TIMEOUT_MS=<DJD_TIMEOUT_MS>' -- npx -y djd-agent-score-mcp@1.0.1. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج io.github.jacobsd32-cpu/djd-agent-score إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل io.github.jacobsd32-cpu/djd-agent-score مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون io.github.jacobsd32-cpu/djd-agent-score؟

ينشره jacobsd32-cpu. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.