这是一个借助 Jupiter 全新的 Ultra API,在 Solana 区块链上开展代币兑换操作的 MCP 服务器。它能有效利用 Ultra API 的强大功能,为用户提供高效、优质的代币兑换服务。
git clone https://github.com/your-repository.git
cd mcp-server
npm install
node index.js
若要使用本项目,需满足以下条件:
需创建一个 config.json 文件,并添加如下内容:
{
"api_key": "your_api_key",
"network": "mainnet-beta",
"rpc_endpoint": "https://api.mainnet-beta.solana.com"
}
order_id:要获取的订单 ID。{
"id": "string",
"price": number,
"amount": string,
"side": "buy" | "sell"
}
order_id:要执行的订单 ID。{
"status": "success" | "error",
"transaction_id": string,
"message": string
}
本项目采用 MIT 许可证。如需了解详细信息,请查阅 LICENSE 文件。