使用说明
deBridge MCP
德布里奇 人工智能代理的MCP集成——跨链和同链交换、费用估算和跨主要区块链网络的交易执行。
托管的MCP端点位于 agents.debridge.com这个npm包是一个瘦代理客户端,用于需要本地stdio或HTTP进程的代理。
https://github.com/user-attachments/assets/8ebe88ff-db3c-455e-9efb-50389e4bf5bd
连接到deBridge MCP
推荐:直接连接(流式HTTP)
将您的代理直接连接到托管端点——无需安装,无需本地进程:
https://agents.debridge.com/mcp
这是一个 可流式传输的HTTP MCP终点。它暴露了工具(get_instructions, search_tokens, get_supported_chains, create_tx, transaction_same_chain_swap)通过MCP资源掌握工作流程技能,以及 llms.txt 概述。工具和技能在 汇报财务/汇报技能 存储库。
通用流式HTTP配置:
"debridge": {
"type": "streamable-http",
"url": "https://agents.debridge.com/mcp"
}
Claude Code (CLI & IDE plugins)
claude mcp add debridge --transport http https://agents.debridge.com/mcp
验证:
claude mcp list
Claude Web & Desktop Apps
使用URL添加为远程MCP服务器 https://agents.debridge.com/mcp.
Cursor
添加 .cursor/mcp.json 在您的项目或 ~/.cursor/mcp.json 全球地:
{
"mcpServers": {
"debridge": {
"url": "https://agents.debridge.com/mcp"
}
}
}
GitHub Copilot (VS Code Chat)
添加 .vscode/mcp.json 在您的工作空间中:
{
"mcpServers": {
"debridge": {
"type": "streamable-http",
"url": "https://agents.debridge.com/mcp"
}
}
}
Windsurf
添加 ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"debridge": {
"type": "streamable-http",
"url": "https://agents.debridge.com/mcp"
}
}
}
Cline
在VS Code中打开临床设置,转到MCP服务器,单击“编辑MCP设置”并添加:
{
"mcpServers": {
"debridge": {
"type": "streamable-http",
"url": "https://agents.debridge.com/mcp"
}
}
}
Continue
添加 ~/.continue/config.json:
{
"mcpServers": [
{
"name": "debridge",
"transport": "streamable-http",
"url": "https://agents.debridge.com/mcp"
}
]
}
Zed
添加到Zed设置(~/.config/zed/settings.json):
{
"context_servers": {
"debridge": {
"transport": "streamable-http",
"url": "https://agents.debridge.com/mcp"
}
}
}
OpenClaw (via mcp-adapter plugin)
安装 mcp适配器 插件:
openclaw plugins install mcp-adapter
添加 ~/.openclaw/openclaw.json:
{
"plugins": {
"entries": {
"mcp-adapter": {
"enabled": true,
"config": {
"servers": [
{
"name": "debridge",
"transport": "streamable-http",
"url": "https://agents.debridge.com/mcp"
}
]
}
}
}
}
}
替代方案:运行本地代理
一些代理框架只支持stdio传输,不能直接连接到远程HTTP端点。这个npm包弥合了这一差距——它运行一个本地MCP进程,透明地代理所有请求到 https://agents.debridge.com/mcp.
工具和资源没有在当地实施。它们在启动时从上游端点动态发现(stdio)或按请求转发(HTTP),因此对托管MCPd的任何更改都会自动反映出来,而无需更新包。
代理如何工作
-
标准模式 (默认):通过以下方式打开与上游MCPd的长期MCP客户端连接
StreamableHTTPClientTransport.创建本地Server和StdioServerTransport反映上游能力并向前发展tools/list,tools/call,resources/list,resources/read,以及resources/templates/list到上游。 -
HTTP模式 (
MCP_TRANSPORT=http):通过Express透明HTTP反向代理。将原始JSON-RPC请求和SSE响应流转发到上游MCPd,通过Mcp-Session-Id用于会话连续性的标头。
npx(标准输入输出)
npx -y @debridge-finance/debridge-mcp@latest
stdio配置:
"debridge": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@debridge-finance/debridge-mcp@latest"]
}
Claude Code (CLI & IDE plugins)
claude mcp add debridge npx -- -y @debridge-finance/debridge-mcp@latest
Cursor
使用光标深度链接:
或从以下位置安装 光标目录
或添加到 .cursor/mcp.json:
{
"mcpServers": {
"debridge": {
"command": "npx",
"args": ["-y", "@debridge-finance/debridge-mcp@latest"]
}
}
}
Docker(HTTP代理)
docker build -t debridge-mcp .
docker run -p 3000:3000 debridge-mcp
然后将您的代理连接到 http://localhost:3000/mcp 使用上面的Streamable HTTP配置。
环境变量
| 变量 | 默认值 | 描述 |
|---|---|---|
REMOTE_MCP_URL |
https://agents.debridge.com/mcp |
要代理的远程MCP端点 |
MCP_TRANSPORT |
stdio |
运输方式: stdio 或 http |
PORT |
3000 |
HTTP侦听端口(仅限HTTP模式) |
HOST |
0.0.0.0 |
HTTP侦听主机(仅限HTTP模式) |
发展
# Install dependencies
npm install
# Run in dev mode (stdio proxy)
npm run dev
# Run in dev mode (HTTP proxy)
npm run dev:http
# Test with MCP Inspector
npm run inspect
# Run tests
npm test
链接
许可证
麻省理工学院,版权所有2026德桥