关于 lighter-mcp
读取 Lighter 永续合约市场,并下达受保护的订单,包括 H100 算力价格市场。
配置
本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。
mcp.json · 通用配置
启动命令
npx -y lighter-mcp需要配置的环境变量
LIGHTER_NETWORKDeployment to read: mainnet, testnet, or robinhood. Defaults to mainnet.LIGHTER_ACCOUNT_INDEXSub-account the agent trades from. Read-only tools work without it.LIGHTER_API_KEY_INDEX密钥API key slot bound to the sub-account, 0 to 254.LIGHTER_API_KEY_PRIVATE_KEY密钥API key private key. Full write authority over the account it is bound to, so use a dedicated sub-account.LIGHTER_MAX_NOTIONAL_USDPer-order notional ceiling in USD. Required before any order can be signed.LIGHTER_CHAIN_IDLayer-2 chain id bound into every signature. Mainnet uses 304 and testnet 300, so this is only needed on a deployment that publishes none.LIGHTER_READ_ONLY_TOKEN密钥Read-only token for account observation without a signing key.本地服务需要在你的电脑上安装运行环境(如 Node.js 18+)。各客户端的配置文件位置不同,请参考客户端文档。
工具
9收录的工具列表 · 更新于 2 周前
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| limit | integer | 否 | 要返回的市场数量上限,范围为 1 到 100。 |
| query | string | 否 | 在 ticker 中进行不区分大小写的子字符串匹配,例如 "H100" 或 "SOL"。 |
详细介绍
维护者还没有提供详细介绍,可以先查看代码仓库中的 README。
评论
支持 Markdown
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。