djd经纪人得分mcp
MCP服务器 DJD代理评分 -为Base上的人工智能代理钱包提供信誉评分的API。
 ](https://www.npmjs.com/package/djd-agent-score-mcp)
此服务器将DJD代理分数REST API公开为 模型上下文协议 工具,因此任何兼容MCP的代理(Claude、GPT、Gemini、LangChain等)都可以本地调用评分端点。
工具
| 工具 | 端点 | 成本 | 描述 |
|---|---|---|---|
score_basic | GET /v1/score/basic | 免费 | 基本分数、等级、信心 |
score_full | GET /v1/score/full | $0.10(x402) | 全尺寸细分 |
score_refresh | GET /v1/score/refresh | $0.25(x402) | 使用最新链数据重新评分 |
report_fraud | POST /v1/report | $0.02(x402) | 提交欺诈报告 |
check_blacklist | GET /v1/data/fraud/blacklist | 0.05美元(x402) | 检查欺诈报告 |
get_badge | GET /v1/badge/{wallet}.svg | 免费 | 可嵌入SVG徽章 |
get_leaderboard | GET /v1/leaderboard | 免费 | 得分最高的钱包 |
register_agent | POST /v1/agent/register | 免费 | 使用元数据注册钱包 |
health_check | GET /health | 免费 | 系统状态 |
安装
npm install -g djd-agent-score-mcp或者直接使用npx运行:
npx djd-agent-score-mcp配置
克劳德桌面版
添加 ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)或 %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"djd-agent-score": {
"command": "npx",
"args": ["-y", "djd-agent-score-mcp"]
}
}
}光标
添加 .cursor/mcp.json 在项目根目录中:
{
"mcpServers": {
"djd-agent-score": {
"command": "npx",
"args": ["-y", "djd-agent-score-mcp"]
}
}
}克劳德代码
添加到您的项目 .mcp.json:
{
"mcpServers": {
"djd-agent-score": {
"command": "npx",
"args": ["-y", "djd-agent-score-mcp"]
}
}
}通用MCP客户端(流式HTTP)
以HTTP模式启动服务器:
TRANSPORT=http PORT=3000 npx djd-agent-score-mcp然后将您的MCP客户端连接到 http://localhost:3000/mcp.
环境变量
| 变量 | 默认值 | 描述 |
|---|---|---|
DJD_BASE_URL | https://djd-agent-score.fly.dev | API基本URL(使用 http://localhost:3001 对于本地开发人员) |
DJD_TIMEOUT_MS | 10000 | 请求超时(毫秒) |
TRANSPORT | stdio | 运输方式: stdio 或 http |
PORT | 3000 | HTTP服务器端口(仅在以下情况下使用 TRANSPORT=http) |
发展
git clone
cd djd-agent-score-mcp
npm install
npm run build
npm start在开发过程中指向本地API:
DJD_BASE_URL=http://localhost:3001 npm startx402付款
一些端点需要x402小额支付。当代理调用付费工具时,API用HTTP 402和支付指令进行响应。您的代理框架必须:
- 检测402响应
- 完成x402付款(基础美元)
- 使用付款证明重试请求
MCP服务器在工具的错误响应中显示402细节,以便代理可以处理它。
许可证
麻省理工学院
