# Required
Node.js >= 18.0.0
npm >= 9.0.0
# Optional for transactions
Substrate seed phrase or EVM private key
📥 安装
# Clone the repository
git clone https://github.com/tairon-ai/phala-mcp.git
cd phala-mcp/mcp-server
# Install dependencies
npm install
# Configure environment
cp .env.example .env
# Edit .env with your configuration
# Start the server
npm start
# Development mode
npm run dev
# MCP stdio server for Claude Desktop
npm run mcp
"What's the current block number on Phala?"
"Check my PHA balance on Phala Network"
"Check my PHA balance on Ethereum"
"Show my total PHA across all chains"
"Send 100 PHA to address 5Grw... on Phala"
"Send 50 PHA to 0x742d... on Ethereum"
"Get PHA token info on Ethereum"
"Convert this EVM address to Substrate format"
"Get chain statistics and network health"
🔒 TEE管理
"List online TEE workers"
"Verify attestation for worker 0xabc..."
"Show workers with Intel SGX support"
"Get confidence level for worker"
"Check TEE worker state and features"
📝 Phat合同
"Deploy a Phat Contract to cluster-1"
"Query the oracle contract at 0x0001"
"Execute getData method on contract"
"List all contracts in my cluster"
"Deploy contract with custom constructor"
🤖 AI代理
"Deploy a GPT-4 agent with custom prompt"
"Query my AI agent: 'What is the weather?'"
"Create an AI assistant in TEE"
"Check agent attestation status"
"Deploy Llama-2 model in secure enclave"
🐳 容器部署
"Deploy PostgreSQL in TEE with 4GB memory"
"Run Python script in secure container"
"Deploy nginx with GPU support"
"Check status of container abc123"
"Launch Jupyter notebook in TEE"
💎 抵押和集群
"Show available staking pools"
"Delegate 1000 PHA to pool-1"
"Create a new compute cluster"
"Check my delegations"
"Get cluster resource utilization"
🎲 VRF和Oracle
"Generate a verifiable random number between 1 and 100"
"Get the current price of PHA in USD"
"Fetch weather data for New York"
"Get gas prices on Ethereum"
"Fetch sports scores for NBA"
🔄 工作流程和自动化
"Create a workflow that triggers on new blocks"
"Set up automated DCA for PHA tokens"
"Break down the task: deploy and test a smart contract"
"Create hourly price feed oracle workflow"
"Set up portfolio rebalancing automation"
📊 高级功能
"Get real-time blockchain metrics"
"Fetch social media sentiment for PHA"
"Show my portfolio performance"
"Set up budget tracking"
"Deploy a security monitoring agent from template"