← 返回 Skills 市场
jolestar

LI.FI MCP Skill

作者 jolestar · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
191
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install lifi-mcp-skill
功能描述
Use the LI.FI MCP server through UXC for cross-chain route discovery, bridge/DEX availability checks, token and chain lookup, gas/balance/allowance checks, q...
使用说明 (SKILL.md)

LI.FI MCP Skill

Use this skill to run LI.FI MCP operations through uxc.

Reuse the uxc skill for generic protocol discovery, auth binding, envelope parsing, and error handling.

Prerequisites

  • uxc is installed and available in PATH.
  • Network access to https://mcp.li.quest/mcp.
  • Optional: a LI.FI API key for higher rate limits.

Core Workflow

  1. Verify endpoint and protocol with help-first probing:
    • uxc https://mcp.li.quest/mcp -h
    • Confirm protocol is MCP (protocol == "mcp" in the envelope).
  2. Optional auth setup for higher rate limits:
    • uxc auth credential set lifi-mcp --auth-type bearer --secret-env LIFI_API_KEY
    • uxc auth binding add --id lifi-mcp --host mcp.li.quest --path-prefix /mcp --scheme https --credential lifi-mcp --priority 100
    • LI.FI accepts either Authorization: Bearer \x3Ckey> or X-LiFi-Api-Key; prefer bearer unless endpoint behavior changes.
  3. Use a fixed link command by default:
    • command -v lifi-mcp-cli
    • If missing, create it:
      • uxc link lifi-mcp-cli https://mcp.li.quest/mcp
    • lifi-mcp-cli -h
  4. Inspect operation schema before execution:
    • lifi-mcp-cli get-chains -h
    • lifi-mcp-cli get-token -h
    • lifi-mcp-cli get-quote -h
    • lifi-mcp-cli get-status -h
  5. Prefer discovery first, then route/quote, then execution-precheck queries.

Capability Map

  • Chain and token discovery:
    • get-chains
    • get-chain-by-id
    • get-chain-by-name
    • get-tokens
    • get-token
  • Route discovery and provider availability:
    • get-connections
    • get-tools
  • Quotes and route planning:
    • get-quote
    • get-routes
    • get-step-transaction
    • get-quote-with-calls
  • Wallet prechecks:
    • get-native-token-balance
    • get-token-balance
    • get-allowance
    • get-gas-prices
    • get-gas-suggestion
  • Monitoring and service checks:
    • get-status
    • test-api-key
    • health-check

Always inspect host help and operation help in the current endpoint version before relying on an operation name or argument shape.

Recommended Usage Pattern

  1. Discover chain IDs dynamically:
    • lifi-mcp-cli get-chains
    • lifi-mcp-cli get-chain-by-name name=base
  2. Resolve token addresses before quoting:
    • lifi-mcp-cli get-token chain=8453 token=USDC
  3. Check whether a route exists before asking for a quote:
    • lifi-mcp-cli get-connections fromChain=8453 toChain=42161
  4. Generate the quote:
    • lifi-mcp-cli get-quote fromChain=8453 toChain=42161 fromToken=USDC toToken=USDC fromAddress=\x3Cwallet> fromAmount=\x3Csmallest-unit-amount>
  5. Validate execution preconditions:
    • lifi-mcp-cli get-allowance ...
    • lifi-mcp-cli get-native-token-balance ...
  6. Use get-status only after the externally signed transaction has been broadcast.

Guardrails

  • Keep automation on JSON output envelope; do not rely on --text.
  • Parse stable fields first: ok, kind, protocol, data, error.
  • Use lifi-mcp-cli as the default command path.
  • lifi-mcp-cli \x3Coperation> ... is equivalent to uxc https://mcp.li.quest/mcp \x3Coperation> ... when the same auth binding is configured.
  • Use direct uxc "\x3Cendpoint>" ... only as a temporary fallback when link setup is unavailable.
  • Prefer key=value for simple arguments and positional JSON for nested objects.
  • This endpoint is read-only from the agent perspective:
    • it does not sign transactions
    • it does not broadcast transactions
    • it returns unsigned transactionRequest objects for external wallet execution
  • Do not present get-quote or get-step-transaction as executed trades; they are execution plans only.
  • Before suggesting an ERC20 route as ready to execute, check allowance if the route needs approval.
  • Prefer get-routes only when the user explicitly wants multiple alternatives; default to get-quote for the best route.
  • In live testing, chain lookup tools accepted names, but token/balance/allowance tools were more reliable with numeric chain IDs. Prefer numeric IDs after discovery.

Tested Real Scenario

The endpoint was verified through uxc host discovery and returned a live MCP tool list including:

  • get-allowance
  • get-chain-by-id
  • get-chain-by-name
  • get-chains
  • get-connections
  • get-gas-prices
  • get-gas-suggestion
  • get-quote
  • get-routes
  • get-status
  • get-token
  • get-tokens
  • get-tools
  • health-check

This confirms the skill target is a real hosted MCP surface accessible via UXC.

References

  • Invocation patterns:
    • references/usage-patterns.md
安全使用建议
This skill looks coherent and read-only: it uses the uxc helper to query the LI.FI MCP endpoint and explicitly avoids signing or broadcasting transactions. Before installing, ensure you: (1) trust the endpoint https://mcp.li.quest/mcp; (2) do not provide any private keys—only an optional API key may be used for rate limits; (3) have vetted the uxc binary (it will be invoked and used to create a small command alias lifi-mcp-cli); and (4) if you run the publisher's validate.sh locally, note it requires ripgrep (rg) and runs repository-path checks. If you need stronger guarantees, ask for the maintainer/source provenance or a minimal review of the uxc binary and its link behavior.
功能分析
Type: OpenClaw Skill Name: lifi-mcp-skill Version: 1.0.0 The lifi-mcp-skill is a legitimate tool for cross-chain route discovery and token metadata retrieval via the LI.FI MCP server (https://mcp.li.quest/mcp). The skill includes explicit security guardrails in SKILL.md, instructing the agent that it is a read-only interface that must not sign or broadcast transactions. The provided validation script (scripts/validate.sh) and usage documentation (references/usage-patterns.md) are consistent with the stated purpose and do not contain any evidence of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
Name/description match the actual instructions: all operations target https://mcp.li.quest/mcp via the uxc helper and the documented commands (get-quote, get-chains, get-token, get-status, etc.) are relevant to cross-chain discovery, quotes, and monitoring.
Instruction Scope
SKILL.md confines the agent to discovery and read-only queries. It explicitly warns the skill will not sign or broadcast transactions and advises precheck steps. No instructions tell the agent to read arbitrary local files or exfiltrate data; only an optional env var (LIFI_API_KEY) is suggested for auth.
Install Mechanism
This is an instruction-only skill with no install spec. That is low-risk: nothing is downloaded or written to disk by the skill package itself. It does require an external helper (uxc) to be present on PATH, which is documented.
Credentials
The skill does not require any environment variables but documents an optional LIFI_API_KEY for higher rate limits. This is proportionate to the stated purpose; confirm you only provide a non-sensitive API key (not private keys).
Persistence & Privilege
always is false and the skill does not request persistent system-wide changes or access to other skills' configs. The included validate.sh is a publisher-side CI helper, not runtime behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install lifi-mcp-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /lifi-mcp-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
lifi-mcp-skill v1.0.0 - Initial release: Enables discovery and monitoring of cross-chain swaps and bridges using the LI.FI MCP server via UXC. - Supports chain and token lookup, provider availability checks, quote generation, allowance and gas checks, and transfer status tracking. - Recommends using `lifi-mcp-cli` as a linked command for all operations. - Ensures clear guardrails: no transaction signing/broadcasting, output is for planning and monitoring only. - Includes robust usage guidance and best practices for read-only interactions.
元数据
Slug lifi-mcp-skill
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

LI.FI MCP Skill 是什么?

Use the LI.FI MCP server through UXC for cross-chain route discovery, bridge/DEX availability checks, token and chain lookup, gas/balance/allowance checks, q... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 191 次。

如何安装 LI.FI MCP Skill?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install lifi-mcp-skill」即可一键安装,无需额外配置。

LI.FI MCP Skill 是免费的吗?

是的,LI.FI MCP Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

LI.FI MCP Skill 支持哪些平台?

LI.FI MCP Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 LI.FI MCP Skill?

由 jolestar(@jolestar)开发并维护,当前版本 v1.0.0。

💬 留言讨论