mcpField
M
Monad MCP Server

Monad MCP Server

本地服务
github.com/Veenoway金融数据076 周前更新

关于 Monad MCP Server

Monad MCP Server 为 Monad 测试网提供 DeFi 与区块链操作,适用于处理代币、NFT 和合约的客户端。工具涵盖合约部署与分析、兑换、质押及自主交易 Agent。

主要功能

  1. 01Monad 测试网水龙头
  2. 02Solidity 合约部署
  3. 03图像生成与 NFT 铸造
  4. 04代币兑换与转账
  5. 05合约和投资组合分析
  6. 06质押与 AI 交易 Agent

适用场景

  1. 01申请测试网 MON 代币
  2. 02部署或检查 Solidity 合约
  3. 03兑换代币或质押 MON
  4. 04生成图像并铸造为 NFT

MCP 相关

向 MCP 客户端提供 Monad 区块链及 DeFi 工具,包括水龙头、部署、兑换、分析和质押操作。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

暂未收录安装方式

我们还没有获取到这个服务的安装包或远程地址,请按项目 README 中的说明安装。

代码仓库

工具

还没有获取到工具列表

本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。

详细介绍

Monad MCP 服务

一个用于与 Monad 区块链交互的 MCP(模型上下文协议)服务,提供全面的 DeFi 工具套件和区块链功能。

功能

  • 🚰 Monad 水龙头 - 获取测试网 MON 代币
  • 📝 Solidity 合约部署
  • 🎨 图像生成与 NFT 铸造
  • 💱 代币兑换
  • 🤖 自主 AI 交易 Agent
  • 🔍 智能合约分析
  • 👥 NFT 持有者分析
  • 📊 投资组合分析
  • 🏆 竞争性 DeFi 挑战
  • 🔒 质押与取消质押
  • 💸 代币转账

前置条件

  • Node.js v18 或更高版本
  • npm 或 yarn
  • Monad 测试网私钥

安装

  1. 克隆仓库:
git clone https://github.com/veenoway/monad-mcp-server.git
cd monad-mcp-server
  1. 安装依赖:
npm install
# or
yarn install
  1. 配置环境变量:
cp .env.example .env
# Edit the .env file with your configurations

环境配置

在根目录中创建一个 .env 文件,并设置以下变量:

PINATA_JWT=PINATA_JWT
OPENAI_API_KEY=OPENIA_KEY
PRIVATE_KEY=YOUR_PRIVATE_KEY
NFT_FACTORY_ADDRESS=NFT_FACTORY_ADDRESS=

MCP 服务重要说明

  1. 路径配置问题

    • 确保 claude_desktop_config.json 中的所有路径都是绝对路径
    • 路径应指向 build 目录中编译后的 JavaScript 文件
    • 示例:/Users/your-username/monad-mcp-server/build/tool-name.js
  2. 常见问题

    • 如果路径中包含空格,MCP 服务可能无法启动
    • Node.js 版本兼容性问题(请使用 Node.js v18 或更高版本)
    • 配置文件权限问题
    • 环境变量未正确加载
  3. 故障排除步骤

    • 检查 claude_desktop_config.json 中的路径
    • 检查文件权限:chmod 644 claude_desktop_config.json
    • 确保 Node.js 位于 PATH 中
    • 确认所有环境变量均已正确设置
    • 检查 build 目录是否存在且包含编译后的文件
  4. 替代配置 如果 MCP 服务无法正常工作,可以直接运行工具:

    # Example for faucet
    node build/faucet.js '{"parameters":{"walletAddress":"0xYourAddress"}}'
    
    # Example for staking
    node build/staking.js '{"parameters":{"privateKey":"0xYourKey","amount":"0.2"}}'
    
  5. 开发模式 开发时可以使用:

    # Start the development server
    npm run dev
    
    # Or run tools directly with ts-node
    ts-node src/tools/faucet.ts '{"parameters":{"walletAddress":"0xYourAddress"}}'
    

MCP 服务配置

要配置 MCP 服务,需要创建或修改以下配置文件:

{
  "mcpServers": {
    "generate-image-mint-nft": {
      "command": "node",
      "args": ["/path/to/build/generate-image.js"]
    },
    "deploy-solidity": {
      "command": "node",
      "args": ["/path/to/build/deploy-solidity.js"]
    },
    "swap": {
      "command": "node",
      "args": ["/path/to/build/swap.js"]
    },
    "monad-faucet": {
      "command": "node",
      "args": ["/path/to/build/faucet.js"]
    },
    "analyse-smart-contract": {
      "command": "node",
      "args": ["/path/to/build/analyse-smart-contract.js"]
    },
    "user-portfolio": {
      "command": "node",
      "args": ["/path/to/build/portfolio.js"]
    },
    "nft-top-holders": {
      "command": "node",
      "args": ["/path/to/build/nft-holder.js"]
    },
    "monad-ai-trader": {
      "command": "node",
      "args": ["/path/to/build/ai-agent.js"]
    },
    "defi-challenges": {
      "command": "node",
      "args": ["/path/to/build/defi-challenge.js"]
    },
    "monad-staking": {
      "command": "node",
      "args": ["/path/to/build/staking.js"]
    },
    "send-token": {
      "command": "node",
      "args": ["/path/to/build/send-token.js"]
    }
  }
}

配置文件位置

配置文件应放置在以下位置:

  • macOS :~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows :%APPDATA%\Claude\claude_desktop_config.json
  • Linux :~/.config/Claude/claude_desktop_config.json

重要说明

  • 确保所有 JavaScript 文件路径正确
  • 每个工具都必须有自己的构建脚本
  • 路径可以是绝对路径,也可以是相对路径
  • node 命令必须可通过 PATH 访问
  • 使用前必须先编译脚本

启动服务

  1. 在开发模式下启动服务:
npm run dev
# or
yarn dev
  1. 生产环境:
npm run build
npm start
# or
yarn build
yarn start

提示词指南 - Monad 水龙头

输入格式

JSON 请求
{
  "tool": "monad-faucet",
  "parameters": {
    "walletAddress": "0xYourWalletAddress"
  }
}
自然语言提示词示例
I want MON tokens sent to my address: 0x1234567890123456789012345678901234567890
Send me 0.2 MON to: 0x1234567890123456789012345678901234567890
I need tokens for testing on Monad Testnet. My address: 0x1234567890123456789012345678901234567890

输出格式

{
  "content": [
    {
      "type": "text",
      "text": "✅ 0.2 MON successfully sent to 0xYourWalletAddress\nTransaction: 0xTransactionHash\nSent from: 0xFaucetAddress"
    }
  ]
}

提示词指南 - 部署 Solidity 合约

输入格式

JSON 请求
{
  "tool": "deploy-solidity",
  "parameters": {
    "privateKey": "0xYourPrivateKey",
    "sourceCode": "// Your Solidity contract code here",
    "constructorArgs": ["arg1", "arg2"]
  }
}
自然语言提示词示例
Deploy a NFT smart contract
Smart contract should include:
WL phase which lasts 24 hours and switches to public, 1000 total supply, WL price: 0.3 MON, public price 10 MON.
to Monad testnet with my private key: <your_private_key>
Deploy this ERC20 token contract with initial supply of 1000000 tokens. My private key: 0x1234567890123456789012345678901234567890

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract MyToken is ERC20 {
    constructor(uint256 initialSupply) ERC20("MyToken", "MTK") {
        _mint(msg.sender, initialSupply);
    }
}

输出格式

{
  "content": [
    {
      "type": "text",
      "text": "Contract deployed and verified successfully!

Contract address: 0xContractAddress
Transaction hash: 0xTransactionHash
Block: 123456
Gas used: 123456

Your contract is deployed and verified on Monad testnet.
You can view your verified contract here: https://testnet.monadexplorer.com/address/0xContractAddress

Deployment arguments used:
- Argument 1: 1000000"
    }
  ]
}

重要说明

  • 私钥必须有效,且有足够的 MON 余额(至少 0.01 MON)
  • 源代码必须是有效的 Solidity 代码
  • 构造函数参数为可选项,但必须与合约的构造函数参数匹配
  • 如果可行,合约将自动验证
  • 支持的合约类型:ERC20、Storage、SimpleStorage 和基础合约

提示词指南 - 生成图像并铸造 NFT

部署一个简单的 NFT 智能合约

将合约地址和部署者私钥添加到 .env 文件中。

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract VeenoXNFTFactory is ERC721URIStorage, Ownable {
    uint256 public tokenCounter;

    constructor() ERC721("VeenoX NFT", "VXNFT") Ownable(msg.sender) {
        tokenCounter = 0;
    }

    function mint(string memory tokenURI, address to) external onlyOwner returns (uint256) {
        uint256 newTokenId = tokenCounter;
        _safeMint(to, newTokenId);
        _setTokenURI(newTokenId, tokenURI);
        tokenCounter += 1;
        return newTokenId;
    }
}

输入格式

JSON 请求
{
  "tool": "image-nft-generation",
  "parameters": {
    "prompt": "Description of the image to generate",
    "userAddress": "0xYourWalletAddress"
  }
}
自然语言提示词示例
Generate an image of a futuristic city with flying cars and mint it as an NFT to my address: 0x1234567890123456789012345678901234567890
Create a digital art piece of a cyberpunk cat and send it to my wallet: 0x1234567890123456789012345678901234567890
I want an NFT of a magical forest with glowing mushrooms. My address is: 0x1234567890123456789012345678901234567890

输出格式

成功
{
  "content": [
    {
      "type": "text",
      "text": "✅ Image generated and minted as NFT for **0xYourWalletAddress**!

- **Prompt**: \"Your image description\"
- **IPFS Image**: [View image](https://gateway.pinata.cloud/ipfs/YourImageHash)
- **Token URI**: ipfs://YourMetadataHash
- **Transaction**: [View on Monad Explorer](https://testnet.monadexplorer.com/tx/YourTransactionHash)"
    }
  ]
}

重要说明

  • 提示词长度限制为 1000 个字符
  • 图像以 1024x1024 分辨率生成
  • 生成的图像会自动上传到 IPFS
  • NFT 在 Monad Testnet 上铸造
  • 每张图像都独一无二,并使用 DALL-E 2 生成
  • NFT 包含带有生成日期和提示词信息的元数据

提示词指南 - 代币兑换

输入格式

JSON 请求
{
  "tool": "swap",
  "parameters": {
    "privateKey": "0xYourPrivateKey",
    "routerType": "uniswap", // or "sushiswap"
    "tokenInAddress": "0xTokenInAddress", // Optional for native MON swaps
    "tokenOutAddress": "0xTokenOutAddress",
    "amountIn": "1.0", // Amount in full units
    "slippagePercentage": 0.5, // Optional, default 0.5%
    "deadline": 1234567890, // Optional, Unix timestamp
    "useNativeMON": false, // Optional, default false
    "checkLiquidityOnly": false // Optional, default false
  }
}
自然语言提示词示例
Swap 0.1 WMON (0x760AfE86e5de5fa0Ee542fc7B7B713e1c5425701) to TCHOG (0xCaF9244A9D4A79c3229cb354a1919961fa0122B4) My private key: 0x1234567890123456789012345678901234567890
Exchange 10 TCHOG tokens for WMON on Uniswap with 1% slippage. My private key: 0x1234567890123456789012345678901234567890
Check liquidity for swapping 0.5 WMON to TCHOG on Uniswap. My private key: 0x1234567890123456789012345678901234567890

输出格式

成功
{
  "content": [
    {
      "type": "text",
      "text": "Token swap successful!

From: 1.0 MON
To: 100.0 TCHOG (estimated)

Transaction: 0xTransactionHash
Block: 123456
DEX used: uniswap
Swap path: MON -> Token(0x1234...5678)

You can view your transaction here:
https://testnet.monadexplorer.com/tx/0xTransactionHash"
    }
  ]
}
流动性检查
{
  "content": [
    {
      "type": "text",
      "text": "Liquidity check for pools on uniswap:

Direct pool MON -> TCHOG: Exists
Liquidity: 1000 MON <-> 100000 TCHOG
Pool address: 0xPoolAddress

Recommended path: Direct

Popular tokens available on uniswap:
1. TCHOG (0xTokenAddress)
2. WMON (0xTokenAddress)

If you want to create liquidity, you'll need to add tokens to the pools via the DEX interface."
    }
  ]
}

重要说明

  • 支持 Uniswap 和 SushiSwap
  • 可在任意 ERC20 代币或原生 MON 之间兑换
  • 自动查找路径(直接兑换或经由 MON)
  • 支持配置滑点百分比的滑点保护
  • 可选择在兑换前检查流动性
  • 支持代币对代币和代币对 MON 兑换

提示词指南 - AI 交易 Agent

输入格式

JSON 请求
{
  "tool": "monad-ai-trader",
  "parameters": {
    "privateKey": "0xYourPrivateKey",
    "initialInvestment": 0.1, // Optional, default 0.1 MON
    "riskLevel": "moderate", // Optional, "conservative" | "moderate" | "aggressive"
    "learningRate": 0.1, // Optional, default 0.1
    "maxSlippage": 1.5, // Optional, default 1.5%
    "action": "create" // "create" | "start" | "stop" | "status" | "improve"
  }
}
自然语言提示词示例
Create an AI trading agent with 0.5 MON initial investment and moderate risk. My private key: 0x1234567890123456789012345678901234567890
Start my AI trading agent with aggressive risk profile. My private key: 0x1234567890123456789012345678901234567890
Check the status of my AI trading agent. My private key: 0x1234567890123456789012345678901234567890
Improve my AI trading agent's strategy. My private key: 0x1234567890123456789012345678901234567890

输出格式

Agent 创建
{
  "content": [
    {
      "type": "text",
      "text": "🤖 AUTONOMOUS AI TRADING AGENT CREATED

ID: ai-trader-123456
Address: 0xAgentAddress
Balance: 0.5 MON
Status: active
Risk Level: MODERATE

✅ AI Agent created successfully
Initial capital: 0.5 MON
✅ Initial purchase: 0.25 WMON → TCHOG
Hash: 0xTransactionHash

To start the agent: monad-ai-trader-autonomous --action=start --privateKey=0x123..."
    }
  ]
}
交易操作
{
  "content": [
    {
      "type": "text",
      "text": "🤖 AUTONOMOUS AI TRADING AGENT STARTED

ID: ai-trader-123456
Address: 0xAgentAddress
Balance: 0.45 MON
Status: active
Risk Level: MODERATE

✅ Transaction executed: BUY 10 TCHOG
Confidence: 75.50%
Hash: 0xTransactionHash"
    }
  ]
}
状态检查
{
  "content": [
    {
      "type": "text",
      "text": "🤖 AUTONOMOUS AI TRADING AGENT STATUS

ID: ai-trader-123456
Address: 0xAgentAddress
Balance: 0.45 MON
Status: active
Risk Level: MODERATE

📊 AI AGENT STATUS
Total transactions: 5
Learning rate: 0.1
Exploration rate: 0.200
Last improvement: 2024-03-20T12:00:00Z

STRATEGY PARAMETERS:
- Position size: 25.00%
- Entry threshold: 0.60
- Stop loss: 10.00%
- Take profit: 15.00%"
    }
  ]
}
错误
{
  "content": [
    {
      "type": "text",
      "text": "❌ Error executing autonomous AI agent: [Detailed error message]

Suggestions:
1. Verify that your private key is correct
2. Ensure you have sufficient MON for the initial investment
3. Verify that the agent exists if you're using an action other than 'create'
4. If the agent is already active, use 'status' to check its state"
    }
  ]
}

重要说明

  • AI Agent 会在 Monad Testnet 上自动交易 WMON 和 TCHOG
  • 使用技术分析和机器学习进行决策
  • 支持三种风险等级:保守、适中、激进
  • 根据过往表现自动改进
  • 在网络上执行真实交易
  • 每笔交易前都会检查流动性
  • 包含亏损保护机制(止损)
  • 可在 Monad Explorer 上验证交易

提示词指南 - 智能合约分析

输入格式

JSON 请求
{
  "tool": "analyze-smart-contract",
  "parameters": {
    "contractAddress": "0xContractAddress",
    "startBlock": 1000000, // Optional
    "privateKey": "0xYourPrivateKey", // Optional, required for simulation
    "simulateLoad": false, // Optional, default false
    "traceFunctions": true, // Optional, default true
    "visualizeActivity": true, // Optional, default true
    "gasAnalysis": true, // Optional, default true
    "securityScan": true, // Optional, default true
    "monitorDuration": 10 // Optional, monitoring duration in blocks
  }
}
自然语言提示词示例
Analyze the contract at address 0x1234567890123456789012345678901234567890
Simulate high load on contract 0x1234567890123456789012345678901234567890 with my private key 0xabcdef1234567890
Check the security of contract 0x1234567890123456789012345678901234567890
Analyze gas usage of contract 0x1234567890123456789012345678901234567890

输出格式

完整分析
{
  "content": [
    {
      "type": "text",
      "text": "## Smart Contract Analysis Report

**Contract Address**: 0xContractAddress
**Code Size**: 12345 bytes
**Balance**: 1.5 MON
**Transaction Count**: 1000
**Detected Standards**: ERC20, OpenZeppelin

### Contract Functions
1. `transfer(address,uint256)`
2. `approve(address,uint256)`
3. `balanceOf(address)`

### Activity Analysis
**Total Transactions**: 1000
**Unique Callers**: 50
**Average Gas Used**: 45000

**Temporal Distribution**:
- Last 24h: 100 transactions
- Last Week: 500 transactions
- Last Month: 1000 transactions

### Gas Analysis
**Total Gas Used**: 45000000
**Average Gas per Call**: 45000
**Estimated Cost**: 0.045 MON
**Gas Efficiency**: Good

### Security Analysis
**Security Score**: 85/100
**Risk Level**: Low

**Security Recommendations**:
1. Implement reentrancy protection
2. Use SafeMath for arithmetic operations
3. Add appropriate access controls"
    }
  ]
}
负载模拟
{
  "content": [
    {
      "type": "text",
      "text": "## Load Simulation Results

**Sent Transactions**: 100
**Success Rate**: 95%
**Average Gas Used**: 45000

**Performance Metrics**:
- Transactions per Second: 10.5
- Average Confirmation Time: 2.5 seconds
- Average Gas Price: 1.2 gwei"
    }
  ]
}
错误
{
  "content": [
    {
      "type": "text",
      "text": "❌ Error analyzing contract: [Detailed error message]

Suggestions:
1. Verify that the contract address is correct
2. Ensure the contract exists on Monad Testnet
3. Verify your private key is correct if performing simulation
4. If the contract is a proxy, ensure you're using the implementation address"
    }
  ]
}

重要说明

  • 分析包括对 ERC20、ERC721 和 ERC1155 标准的验证
  • 负载模拟需要有效的私钥
  • 安全分析可检测常见漏洞
  • 实时监控最多限于 100 个区块
  • 活动可视化数据基于过去 24 小时生成
  • Gas 分析包含优化建议
  • 结果基于 Monad Testnet 数据

提示词指南 - NFT 持有者

输入格式

JSON 请求
{
  "tool": "nft-top-holders",
  "parameters": {
    "contractAddress": "0xContractAddress",
    "tokenId": "123", // Optional
    "standard": "ERC721", // "ERC721" | "ERC1155"
    "limit": 100 // Optional, default 100
  }
}
自然语言提示词示例
Find holders of the NFT at address 0x1234567890123456789012345678901234567890
List holders of token ID 123 from ERC721 contract 0x1234567890123456789012345678901234567890
Who owns token ID 456 from ERC1155 contract 0x1234567890123456789012345678901234567890
Show me the top 50 holders of NFT 0x1234567890123456789012345678901234567890

输出格式

持有者列表
{
  "content": [
    {
      "type": "text",
      "text": "NFT Holders for Monad Collection (MON) at address 0xContractAddress:

1. 0xHolder1: 5 token(s) - IDs: [1, 2, 3, 4, 5]
2. 0xHolder2: 3 token(s) - IDs: [6, 7, 8]
3. 0xHolder3: 1 token(s) - IDs: [9]"
    }
  ],
  "contractAddress": "0xContractAddress",
  "standard": "ERC721",
  "name": "Monad Collection",
  "symbol": "MON",
  "tokenId": "all",
  "holderCount": 3,
  "holders": [
    {
      "address": "0xHolder1",
      "tokens": [1, 2, 3, 4, 5],
      "tokenCount": 5
    },
    {
      "address": "0xHolder2",
      "tokens": [6, 7, 8],
      "tokenCount": 3
    },
    {
      "address": "0xHolder3",
      "tokens": [9],
      "tokenCount": 1
    }
  ]
}
错误
{
  "content": [
    {
      "type": "text",
      "text": "❌ Error retrieving NFT holders: [Detailed error message]

Suggestions:
1. Verify that the contract address is correct
2. Ensure the contract implements the specified NFT standard
3. For ERC1155 contracts, you must specify a tokenId
4. Verify that the contract exists on Monad Testnet"
    }
  ]
}

重要说明

  • 支持 ERC721 和 ERC1155 标准
  • 对于 ERC1155,需要指定 tokenId
  • 结果按代币数量降序排列
  • 默认限制为 100 位持有者
  • 代币按 ID 升序列出
  • 如果可用,则显示集合名称和符号
  • 结果包含持有者总数
  • 数据基于合约转账事件
  • 实时验证余额以确保准确性

提示词指南 - 投资组合分析

输入格式

JSON 请求
{
  "tool": "portfolio",
  "parameters": {
    "address": "0xWalletAddress",
    "includeErc20": true, // Optional, default true
    "includeNfts": true, // Optional, default true
    "includeLiquidityPositions": true, // Optional, default true
    "includeTransactionHistory": true, // Optional, default true
    "transactionLimit": 10, // Optional, default 10
    "erc20TokensLimit": 50, // Optional, default 50
    "nftsLimit": 20 // Optional, default 20
  }
}
自然语言提示词示例
Analyze the portfolio of address 0x1234567890123456789012345678901234567890
Show me the last 20 transactions of 0x1234567890123456789012345678901234567890
What are the NFTs and ERC20 tokens of 0x1234567890123456789012345678901234567890
Show liquidity positions of 0x1234567890123456789012345678901234567890

输出格式

完整分析
{
  "content": [
    {
      "type": "text",
      "text": "Portfolio analysis for address 0xWalletAddress"
    },
    {
      "type": "text",
      "text": {
        "nativeBalance": "1.5 MON",
        "erc20Tokens": [
          {
            "address": "0xToken1",
            "name": "Token One",
            "symbol": "TKN1",
            "balance": "100.0"
          },
          {
            "address": "0xToken2",
            "name": "Token Two",
            "symbol": "TKN2",
            "balance": "50.0"
          }
        ],
        "nfts": {
          "erc721": [
            {
              "contractAddress": "0xNFT1",
              "collectionName": "Monad Collection",
              "symbol": "MON",
              "tokenId": "1",
              "tokenURI": "ipfs://..."
            }
          ],
          "erc1155": [
            {
              "contractAddress": "0xNFT2",
              "tokenId": "2",
              "balance": "5",
              "uri": "ipfs://..."
            }
          ]
        },
        "liquidityPositions": [
          {
            "pairAddress": "0xPair1",
            "token0": {
              "address": "0xToken1",
              "symbol": "TKN1",
              "amount": "10.0"
            },
            "token1": {
              "address": "0xToken2",
              "symbol": "TKN2",
              "amount": "20.0"
            },
            "lpBalance": "15.0",
            "shareOfPool": "0.5%"
          }
        ],
        "transactions": [
          {
            "hash": "0xTx1",
            "from": "0xWalletAddress",
            "to": "0xRecipient",
            "value": "0.1 MON",
            "timestamp": "2024-03-20T12:00:00Z",
            "status": "Success",
            "gasUsed": "21000"
          }
        ]
      }
    }
  ]
}
错误
{
  "content": [
    {
      "type": "text",
      "text": "❌ Error analyzing portfolio: [Detailed error message]

Suggestions:
1. Verify that the wallet address is correct
2. Ensure the address exists on Monad Testnet
3. Verify that the limit parameters are valid
4. If the error persists, try analyzing specific portfolio sections"
    }
  ]
}

重要说明

  • 分析包含原生 MON 余额
  • 支持 ERC20 代币、ERC721 和 ERC1155 NFT
  • 检测 DEX 上的流动性头寸
  • 包含近期交易历史
  • 可为每种资产类型配置限制
  • 结果包含代币元数据(名称、符号、URI)
  • 流动性头寸包含池份额
  • 交易包含状态和 Gas 用量
  • 数据基于链上事件
  • 实时验证余额

提示词指南 - Monad DeFi 挑战

概述

Monad DeFi 挑战是一个竞技平台,用户可在 Monad 测试网上参与各种 DeFi 活动,与其他用户比较表现并赢取奖励。

挑战类型

1. 收益耕作
  • 专注于通过各种耕作策略最大化收益
  • 支持不同风险等级(低、中、高)
  • 可自动重新平衡投资组合
2. 交易
  • 具有竞争性的交易挑战
  • 支持不同的交易策略
  • 绩效跟踪和排行榜
3. 流动性挖矿
  • 为不同的资金池提供流动性
  • 根据表现获得奖励
  • 风险管理工具
4. 质押
  • 网络质押挑战
  • 参与治理
  • 协议质押选项

功能

风险管理
  • 三种风险等级:低、中、高
  • 自动风险评估
  • 投资组合多元化建议
绩效跟踪
  • 实时绩效监控
  • 历史绩效分析
  • 与其他参与者的比较分析
奖励系统
  • 每日、每周和每月挑战
  • 奖励池分配
  • 根据时长设定的入场费结构
技术功能
  • Gas 优化
  • 交易速度监控
  • 智能合约安全分析

API 集成

JSON 请求格式
{
  "tool": "defi-challenges",
  "parameters": {
    "privateKey": "0xYourPrivateKey",
    "challengeType": "yield-farming",
    "duration": "weekly",
    "publicUsername": "optional_username",
    "initialInvestment": "1.0",
    "riskLevel": "medium",
    "joinPool": true,
    "teamName": "optional_team_name",
    "specificStrategies": ["strategy1", "strategy2"],
    "autoRebalance": true,
    "notificationsEnabled": true
  }
}
响应格式
{
  "content": [
    {
      "type": "text",
      "text": "Challenge details and results"
    }
  ],
  "challengeSummary": {
    "challengeId": "unique_id",
    "participant": {
      "username": "user_name",
      "wallet": "wallet_address",
      "team": "team_name"
    },
    "challenge": {
      "type": "challenge_type",
      "duration": "challenge_duration",
      "riskLevel": "risk_level",
      "startedAt": "timestamp",
      "endsAt": "timestamp",
      "initialInvestment": "amount",
      "joinedRewardsPool": true,
      "entryFee": "fee_amount",
      "autoRebalancing": true
    },
    "strategy": {
      "selectedStrategies": ["strategy1", "strategy2"],
      "initialAllocation": [
        {
          "asset": "asset_name",
          "percentage": 50,
          "amount": "amount"
        }
      ],
      "projectedAPY": "percentage",
      "projectedROI": "percentage"
    },
    "ranking": {
      "currentParticipants": 100,
      "yourEstimatedRank": 25,
      "topPerformers": [
        {
          "rank": 1,
          "username": "top_user",
          "performance": 15.5,
          "strategy": "winning_strategy"
        }
      ]
    },
    "rewards": {
      "totalPoolSize": "pool_size",
      "estimatedRewards": "reward_amount",
      "rewardsBreakdown": [
        {
          "position": "1st Place",
          "amount": "reward_amount",
          "chance": "percentage"
        }
      ]
    }
  }
}

提示词指南 - Monad 质押

输入格式

JSON 请求
{
  "tool": "monad-staking",
  "parameters": {
    "privateKey": "0xYourPrivateKey",
    "amount": "0.2"
  }
}
自然语言提示词示例
I want to stake 0.2 MON on Monad Testnet with my private key: 0x1234567890123456789012345678901234567890
Stake 0.5 MON on Monad Testnet. My private key: 0x1234567890123456789012345678901234567890

输出格式

{
  "content": [
    {
      "type": "text",
      "text": "✅ 0.2 MON successfully staked from 0xYourWalletAddress\nTransaction: 0xTransactionHash\nBalance after: 0.2 aprMON"
    }
  ]
}

重要说明

  • 私钥必须有效,且有足够的 MON 余额
  • 金额必须以 MON 指定(而非以 wei 指定)
  • 质押会将你的 MON 转换为 aprMON(流动性质押代币)
  • 测试网上的当前兑换率为 1:1
  • 质押的代币会随时间产生奖励

提示词指南 - Monad 解除质押

输入格式

JSON 请求
{
  "tool": "monad-unstaking",
  "parameters": {
    "privateKey": "0xYourPrivateKey",
    "amount": "0.2"
  }
}
自然语言提示词示例
I want to unstake 0.2 aprMON on Monad Testnet with my private key: 0x1234567890123456789012345678901234567890
Unstake 0.5 aprMON on Monad Testnet. My private key: 0x1234567890123456789012345678901234567890

输出格式

{
  "content": [
    {
      "type": "text",
      "text": "✅ 0.2 aprMON successfully unstaked from 0xYourWalletAddress\nTransaction: 0xTransactionHash\nBalance after: 0.2 MON"
    }
  ]
}

重要说明

  • 私钥必须有效,且有足够的 aprMON 余额
  • 金额必须以 aprMON 指定(而非以 wei 指定)
  • 解除质押会将你的 aprMON 转换为 MON
  • 测试网上的当前兑换率为 1:1
  • 解除质押前有 7 天的冷却期
  • 解除质押时会自动领取累积的奖励

提示词指南 - 代币转账

输入格式

JSON 请求
{
  "tool": "send-token",
  "parameters": {
    "privateKey": "0xYourPrivateKey",
    "toAddress": "0xRecipientAddress",
    "amount": "0.2",
    "tokenAddress": "0xTokenAddress" // Optional, defaults to native MON
  }
}
自然语言提示词示例
Send 0.2 MON to address 0x1234567890123456789012345678901234567890. My private key: 0xabcdef1234567890
Transfer 0.5 TCHOG tokens to 0x1234567890123456789012345678901234567890. My private key: 0xabcdef1234567890
I want to send 1.0 MON to 0x1234567890123456789012345678901234567890. My private key: 0xabcdef1234567890

输出格式

{
  "content": [
    {
      "type": "text",
      "text": "✅ 0.2 MON successfully sent to 0xRecipientAddress\nTransaction: 0xTransactionHash\nGas used: 21000"
    }
  ]
}

重要说明

  • 私钥必须有效,且有足够的余额
  • 金额必须以完整单位指定(而非以 wei 指定)
  • 转移原生 MON 时,可省略 tokenAddress
  • 转移 ERC20 代币时,必须指定 tokenAddress
  • Gas 限额会自动计算
  • 如果接收方地址无效,交易将失败
  • 支持原生 MON 和 ERC20 代币转账
  • 可在 Monad Explorer 上查看交易

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。