泰坦建筑商mcp
_ _ _ _ _ _ _
| |_(_) |_ __ _ _ __ | |__ _ _(_) | __| | ___ _ __
| __| | __/ _` | '_ \ ____| '_ \| | | | | |/ _` |/ _ \ '__|
| |_| | || (_| | | | |____| |_) | |_| | | | (_| | __/ |
\__|_|\__\__,_|_| |_| |_.__/ \__,_|_|_|\__,_|\___|_|
_ __ ___ ___ _ __
| '_ ` _ \ / __| '_ \
| | | | | | (__| |_) |
|_| |_| |_|\___| .__/
|_| 
Rust MCP服务器 泰坦建造者 --将以太坊区块构建器功能引入人工智能编码代理。
以太坊区块构建器的第一个MCP(模型上下文协议)服务器。使Claude Code和Cursor等AI代理能够直接与Titan Builder的MEV基础设施进行交互——发送捆绑包、调试故障、提交事务等。
亮点
- 增强的捆绑包跟踪 --基于AI的诊断分析
titan_getBundleStats— 见下文 - 5个MCP工具 映射到Titan Builder的完整API表面
- 单个二进制 --零运行时依赖,编译Rust
- 区域端点 --美国、欧盟、亚洲,延迟最小
建筑
快速开始
安装:
cargo install titan-builder-mcp配置 (克劳德代码 ~/.claude/settings.json):
{
"mcpServers": {
"titan-builder": {
"command": "titan-builder-mcp",
"env": {
"TITAN_RPC_URL": "https://us.rpc.titanbuilder.xyz"
}
}
}
}用途: 配置后,您的AI代理可以通过自然语言发送捆绑包、检查捆绑包状态、提交事务和调试故障。
增强的捆绑包跟踪
核心特征。 当你的包失败时,你不应该猜原因。
Titan Builder提供 捆绑包跟踪 通过 titan_getBundleStats --返回状态代码、建筑商付款数据和错误详细信息。我们的MCP服务器增加了 AI就绪诊断层 最上面:根本原因分析、可操作的修复建议和付款标志。
没有增强的捆绑包跟踪
原始API响应-您可以看到 *什么* 发生了,但没有 *为什么* 或 *该怎么办*:
{
"status": "SimulationFail",
"builderPayment": "0",
"builderPaymentWhenIncluded": "0",
"error": "BundleRevert. Reverting Hash: 0xa1b2c3d4e5f6...789"
}具有增强的捆绑包跟踪功能
相同的响应+结构化诊断分析:
## Raw Response
{
"status": "SimulationFail",
"builderPayment": "0",
"builderPaymentWhenIncluded": "0",
"error": "BundleRevert. Reverting Hash: 0xa1b2c3d4e5f6...789"
}
## Analysis
Status: SimulationFail
Root cause: Transaction 0xa1b2c3d4e5f6...789 reverted during top-of-block simulation.
Suggestions:
- Add 0xa1b2c3d4e5f6...789 to revertingTxHashes if this revert is acceptable
- Verify the transaction succeeds via estimateGas against current state
- Ensure builder payment (post-bundle balance - pre-bundle balance) is > 0它分析了什么
| 能力 | 描述 |
|---|---|
| 根本原因识别 | 将7种捆绑状态中的每一种都映射到人类可读的解释中 |
| 可采取行动的建议 | 解决问题的具体步骤——而不是通用建议 |
| 付款分析 | 标记时 builderPayment 为0(您的捆绑包不向建筑商支付任何费用) |
| 反向检测 | 从错误消息中提取还原交易哈希值,并建议将其添加到 revertingTxHashes |
这是纯粹的分析-没有额外的API调用。它完全基于来自的响应数据运行 titan_getBundleStats.
工具
| 工具 | Titan API | 说明 |
|---|---|---|
send_bundle | eth_sendBundle | 发送已签名事务的原子包 |
cancel_bundle | eth_cancelBundle | 通过替换UUID取消捆绑包 |
get_bundle_stats | titan_getBundleStats | 查询捆绑包状态 带诊断分析 |
send_raw_transaction | eth_sendRawTransaction | 通过私有内存池提交已签名的交易 |
send_blobs | eth_sendBlobs | 发送blob事务排列以实现最佳包含 |
捆绑状态参考
| 状态 | 含义 | 诊断 |
|---|---|---|
Received | 到达池的时间太晚 | 请提前提交,使用区域端点 |
Invalid | 格式错误的捆绑包 | 检查RLP、链ID、nonce、块号 |
SimulationFail | 还原或零建筑商付款 | 修复还原tx或增加优先费的问题 |
SimulationPass | 通过但为时已晚 | 在插槽中提前提交 |
ExcludedFromBlock | 贿赂不足(99%的案件) | 增加优先费 |
IncludedInBlock | 输给更有价值的区块 | 增加贿赂 |
Submitted | 成功--提交给中继 | 监控链上包含 |
配置
| 环境变量 | 描述 | 默认值 |
|---|---|---|
TITAN_RPC_URL | Titan Builder RPC端点 | https://rpc.titanbuilder.xyz |
TITAN_TIMEOUT_MS | HTTP请求超时(毫秒) | 10000 |
区域终点
| 区域 | URL |
|---|---|
| 全球(地理路由) | https://rpc.titanbuilder.xyz |
| 美国 | https://us.rpc.titanbuilder.xyz |
| 欧洲 | https://eu.rpc.titanbuilder.xyz |
| 亚洲 | https://ap.rpc.titanbuilder.xyz |
| 测试网(Hoodi) | https://rpc-hoodi.titanbuilder.xyz |
从源代码构建
git clone https://github.com/VPC-byte/titan-builder-mcp.git
cd titan-builder-mcp
cargo build --release相关
- 泰坦建造者技能 --Claude代码技能,用于MEV开发协助和捆绑调试
