Tellermcp MCP:自动化 Teller DeFi 借贷 - Openclaw Skills

作者:互联网

2026-03-30

AI教程

什么是 Tellermcp MCP 技能?

Tellermcp MCP 技能在 AI 智能体与 Teller 去中心化借代协议之间提供了强大的桥梁。通过部署此服务器,开发人员可以公开一套金融工具,允许智能体分析借代池、识别 delta 中性套利机会,并为链上操作生成交易构建器。对于任何使用 Openclaw Skills 构建需要实时访问 Teller 借代市场和带宽管理功能的自动化 DeFi 智能体的人来说,此技能至关重要。

该软件包包括一个现成的 TypeScript 服务器,利用模型上下文协议 (MCP) 提供结构化数据和可操作工具。无论您是在构建投资组合管理器还是套利机器人,此技能都提供了必要的后端基础设施,使 Teller 协议数据可供机器读取和执行。

下载入口:https://github.com/openclaw/skills/tree/main/skills/rbcp18/teller-mcp-borrow

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install teller-mcp-borrow

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 /skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 teller-mcp-borrow。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

Tellermcp MCP 技能 应用场景

  • 自动化发现跨 Teller 借代池的 delta 中性套利机会。
  • 构建 AI 驱动的财务顾问,可以查询借代条款和活跃的浅包带宽。
  • 简化通过 AI 智能体生成用于借款和还款的链上交易数据。
  • 将实时 DeFi 借代数据集成到更大的 Openclaw Skills 自动化工作流中。
Tellermcp MCP 技能 工作原理
  1. 该技能通过 stdio 传输启动一个专用的 MCP 服务器,使其工具集可供任何兼容的主机使用。
  2. 服务器使用类型化的 TypeScript 客户端与 Teller 的 REST API 通信,以获取 delta 中性数据和借代条款。
  3. 智能体调用特定工具(如 get-delta-neutral-opportunities 或 build-borrow-transactions)来接收结构化的 JSON 响应。
  4. Openclaw Skills 解释这些响应,以进行进一步分析或通过浅包提供商执行区块链交易。
  5. 生命周期包括内置的类型检查和构建步骤,以确保 API 和智能体之间的数据一致性。

Tellermcp MCP 技能 配置指南

要开始使用 Tellermcp MCP 技能,请导航到服务器目录并安装必要的依赖项:

cd scripts/tellermcp-server
npm install

(可选)如果您使用自定义 API 端点,请配置环境变量:

  • TELLER_API_BASE_URL(默认为 https://delta-neutral-api.teller.org
  • TELLER_API_TIMEOUT_MS(默认为 15000

构建并启动服务器:

npm run build
npm start

要将其与您的智能体环境集成,请将服务器配置添加到您的 Openclaw Skills 传输层(例如 mcporter)。

Tellermcp MCP 技能 数据架构与分类体系

该技能通过一组六个核心工具组织其数据,每个工具都返回文本摘要和结构化 JSON 负载:

工具 功能 主要数据输出
get-delta-neutral-opportunities 套利扫描 套利对列表和预期收益
get-borrow-pools 市场发现 可用 Teller 借代池的元数据
get-borrow-terms 带宽分析 详细的利率、抵押率和期限
build-borrow-transactions 交易生成 用于开设带宽的编码交易数据
get-wallet-loans 投资组合追踪 活跃带宽状态和还款计划
build-repay-transactions 交易生成 用于结清带宽的编码交易数据
name: tellermcp-mcp
description: Expose the Teller delta-neutral + lending Model Context Protocol server. Use this when you need to install, run, or update the Tellermcp MCP backend so agents can fetch opportunities, borrow terms, and on-chain tx builders for Teller.

Tellermcp MCP Skill

Overview

This skill bundles a ready-to-run MCP server (scripts/tellermcp-server/) that surfaces Teller delta-neutral arbitrage data, borrow pool discovery, loan terms, borrow transaction builders, and repayment helpers. Load this skill whenever you must:

  • Deploy or modify the Tellermcp MCP server
  • Re-run npm install, build, or tests for the server
  • Register Tellermcp with mcporter/OpenClaw so agents can hit the Teller APIs via MCP tools

Quick Start

  1. cd scripts/tellermcp-server
  2. npm install
  3. (Optional) Configure env vars:
    • TELLER_API_BASE_URL (defaults to https://delta-neutral-api.teller.org)
    • TELLER_API_TIMEOUT_MS (defaults to 15000 ms)
  4. npm run build → TypeScript type-check.
  5. npm start → launches tellermcp MCP server over stdio.

Repo Layout (scripts/tellermcp-server/)

  • package.json / package-lock.json – Node 20+ project metadata
  • tsconfig.json – ES2022/ESNext build targets
  • src/client.ts – Typed Teller REST client (fetch wrapper + filters)
  • src/types.ts – TypeScript interfaces for all Teller responses
  • src/index.ts – MCP server wiring (McpServer + StdioServerTransport) registering tools:
    1. get-delta-neutral-opportunities
    2. get-borrow-pools
    3. get-borrow-terms
    4. build-borrow-transactions
    5. get-wallet-loans
    6. build-repay-transactions

Each tool returns: short text summary + structuredContent.payload containing the raw JSON for downstream automation.

Runbook

Installing dependencies

cd scripts/tellermcp-server
npm install

The project intentionally omits node_modules/ & dist/; npm install and npm run build regenerate them.

Local testing

  • npm run build → TypeScript compile.
  • npm start → STDIO MCP server. Use gh pr checks or npm test (placeholder) if additional tests are added later.

Registering with mcporter / OpenClaw

Add an entry to your mcporter (or agent transport) config:

{
  "name": "tellermcp",
  "command": "npm",
  "args": ["start"],
  "cwd": "/absolute/path/to/scripts/tellermcp-server"
}

Once mcporter restarts, Codex agents can invoke the six Teller tools directly.

Deploying updates

  1. Edit TypeScript files inside src/.
  2. npm run build locally.
  3. Commit + push via GitHub skill (if syncing to teller-protocol/teller-mcp).
  4. Restart the mcporter process pointing at this repo to pick up changes.

References

  • references/delta-neutral-api.md – condensed Teller API cheat sheet (endpoints, params, caching behavior). Load when you need exact REST contract details.

Packaging This Skill

When ready to ship a .skill bundle:

python3 /usr/local/lib/node_modules/openclaw/skills/skill-creator/scripts/package_skill.py /data/workspace/skills/tellermcp-mcp

The packager validates SKILL.md + resources and emits tellermcp-mcp.skill (zip) for distribution.