Ophis 扩展
本教程介绍如何把 Ophis 添加为 goose 扩展,让 goose 把自然语言兑换请求变成可在支持的链上执行的订单。
快速安装
- goose Desktop
- goose CLI
使用 goose configure 添加 Remote Extension (Streamable HTTP) 类型的扩展,并填写:
端点 URL
https://mcp.ophis.fi/mcp
Ophis 是什么?
Ophis 是一个基于意图的 DEX 聚合器,带有自然语言层,以及面向 AI 智能体的无密钥 MCP 服务器。它非托管、免 gas、有 MEV 保护,并把兑换盈余返还给交易者。Ophis 是 CoW Protocol 的一个分叉。它在 Optimism 和 Unichain 上部署了自己的结算合约,并在其他支持的链上通过 CoW Protocol 路由:Ethereum、Base、Arbitrum、Polygon、BNB Chain、Gnosis、Avalanche、Linea、Plasma 和 Ink。
MCP 服务器无密钥,不需要 API 密钥或环境变量。它提供十四个工具:parse_intent、resolve_token、list_chains、get_quote、expected_surplus、build_order、validate_order、submit_order、lookup_tier、get_integrator_earnings、get_balances、get_portfolio、get_gas 和 get_token_chart。交易由用户自己的钱包签名,因此服务器从不持有密钥或资金。
配置
- goose Desktop
- goose CLI
- Launch the installer
- Click
Yesto confirm the installation - Click the button in the top-left to open the sidebar
- Navigate to the chat
- Run the
configurecommand:
goose configure
- Choose to add a
Remote Extension (Streamable HTTP).
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◆ What type of extension would you like to add?
│ ○ Built-in Extension
│ ○ Command-line Extension
│ ● Remote Extension (Streamable HTTP) (Connect to a remote extension via MCP Streamable HTTP)
└
- Give your extension a name.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Remote Extension (Streamable HTTP)
│
◆ What would you like to call this extension?
│ Ophis
└
- Enter the Streamable HTTP endpoint URI.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Remote Extension (Streamable HTTP)
│
◇ What would you like to call this extension?
│ Ophis
│
◆ What is the Streamable HTTP endpoint URI?
│ https://mcp.ophis.fi/mcp
└
- Enter the number of seconds goose should wait for actions to complete before timing out. Default is
300seconds.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Remote Extension (Streamable HTTP)
│
◇ What would you like to call this extension?
│ Ophis
│
◇ What is the Streamable HTTP endpoint URI?
│ https://mcp.ophis.fi/mcp
│
◆ Please set the timeout for this tool (in secs):
│ 300
└
- Enter a description for this extension.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Remote Extension (Streamable HTTP)
│
◇ What would you like to call this extension?
│ Ophis
│
◇ What is the Streamable HTTP endpoint URI?
│ https://mcp.ophis.fi/mcp
│
◇ Please set the timeout for this tool (in secs):
│ 300
│
◆ Enter a description for this extension:
│ Natural-language intent DEX aggregator with a keyless MCP server for AI agents
└
- Choose
Nowhen asked to add custom headers.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Remote Extension (Streamable HTTP)
│
◇ What would you like to call this extension?
│ Ophis
│
◇ What is the Streamable HTTP endpoint URI?
│ https://mcp.ophis.fi/mcp
│
◇ Please set the timeout for this tool (in secs):
│ 300
│
◇ Enter a description for this extension:
│ Natural-language intent DEX aggregator with a keyless MCP server for AI agents
│
◆ Would you like to add custom headers?
│ No
│
└ Added Ophis extension
使用示例
配置好 Ophis 之后,可以用自然语言描述一笔兑换,并让 goose 准备订单。例如:
解析意图
解析这个兑换意图:「在 Base 上把 100 USDC 换成 ETH」。
获取报价
获取在 Arbitrum 上把 0.5 WETH 换成 USDC 的报价。
列出支持的链
Ophis 支持哪些链?
服务器会返回报价和未签名订单。实际交易由你自己的钱包签名,密钥和资金不会交给扩展。
资源
- 网站:ophis.fi
- 应用:swap.ophis.fi
- 文档:docs.ophis.fi
- 面向具备 shell 能力的智能体的技能:ophis.fi/.well-known/agent-skills
- 源码:github.com/ophis-fi/ophis