[MCP Server]: Add PancakeSwap DeFi Tools Integration#234
Open
StepBroPlease wants to merge 6 commits intoEmberAGI:mainfrom
Open
[MCP Server]: Add PancakeSwap DeFi Tools Integration#234StepBroPlease wants to merge 6 commits intoEmberAGI:mainfrom
StepBroPlease wants to merge 6 commits intoEmberAGI:mainfrom
Conversation
- Add PancakeSwap MCP server with trading capabilities - Include test agent for quickstart template - Update package dependencies for web client
- Merge latest changes from upstream main branch - Resolve pnpm-lock.yaml conflicts by regenerating - Preserve PancakeSwap MCP server contribution - Include new features: chart generation, plugin system, CoinGecko MCP server
- Resolve dependency conflicts from upstream merge - Update lock file with latest dependency versions - Ensure all packages are properly resolved
- Add privateKey parameter to all transaction tools (execute_swap, add_liquidity, remove_liquidity, add_alp_liquidity, remove_alp_liquidity) - Fix BigInt serialization errors for get_farm_info, get_syrup_pool_info, and get_ifo_info - Implement missing farming tools (stake_lp_tokens, unstake_lp_tokens, claim_rewards) - Implement missing syrup pool tools (stake_cake, unstake_cake) - Implement missing IFO tools (participate_in_ifo) - Add proper error handling for Arbitrum-specific features - Update TypeScript types to use strings for JSON-compatible fields - Add comprehensive test parameters and examples
- Remove standalone MCP server implementation - Add pancakeswap-swap-plugin for token swapping - Add pancakeswap-liquidity-plugin for liquidity operations - Register plugins in main registry - Fix TypeScript compilation errors - Follow Ember Plugin System architecture patterns
…system - Removed PancakeSwap agent entry from chatAgents array - Removed PancakeSwap MCP server URL configuration - Added comment explaining integration through plugin system - PancakeSwap functionality is now available through the Ember plugin system integrated in typescript/onchain-actions-plugins/registry/
Author
|
hello, any feedback about the pr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a comprehensive PancakeSwap MCP server integration to Vibekit, providing full DeFi functionality on Arbitrum. This is the first contribution of PancakeSwap tools to the Vibekit ecosystem.
Related Issue(s): #233
🔧 MCP Server Implementation: PancakeSwap DeFi Tools
A complete MCP server providing 22 PancakeSwap DeFi tools for Arbitrum, enabling AI agents to perform comprehensive DeFi operations including:
✅ Features Implemented:
Trading & Swapping (6 tools)
get_token_info- Token metadata and informationget_price_quote- Swap price calculations with price impactget_token_price- Current token prices in USDexecute_swap- Execute token swaps with slippage protectionget_common_tokens- Popular token addresses for Arbitrumcheck_token_allowance- Token approval status checkingLiquidity Management (4 tools)
get_pair_address- Find trading pair addressesget_pair_info- Pair reserves and informationadd_liquidity- Add liquidity to poolsremove_liquidity- Remove liquidity from poolsYield Farming (4 tools)
get_farm_info- Farm pool information and rewardsstake_lp_tokens- Stake LP tokens in farming poolsunstake_lp_tokens- Unstake LP tokens from farming poolsclaim_rewards- Claim farming rewardsStaking (4 tools)
get_syrup_pool_info- Syrup pool informationstake_cake- Stake CAKE tokensunstake_cake- Unstake CAKE tokensget_chain_info- Chain configuration and addressesAdvanced Features (4 tools)
get_ifo_info- Initial Farm Offering informationparticipate_in_ifo- Participate in IFOsadd_alp_liquidity- ALP pool liquidity managementremove_alp_liquidity- ALP pool liquidity removal🏗️ Technical Implementation:
MCP Protocol Compliance:
Smart Contract Integration:
Arbitrum-Specific Features:
🧪 Testing & Quality:
Comprehensive Testing:
Test Results:
Type of Change:
🧪 Testing
Tests Performed:
Test Results:
Checklists
Code Quality
anytypes introducedDocumentation
Agent/MCP Specific
📋 Sample Tool Usage:
Trading Agent Example:
{ "name": "execute_swap", "arguments": { "tokenIn": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831", "tokenOut": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1", "amountIn": "1000000", "to": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", "privateKey": "0x1234567890123456789012345678901234567890123456789012345678901234", "chain": "arbitrum" } }Farming Agent Example:
{ "name": "get_farm_info", "arguments": { "pid": 1, "chain": "arbitrum" } }🎯 Impact:
This PR introduces complete PancakeSwap DeFi functionality to Vibekit, enabling AI agents to:
Result: Transforms Vibekit into a comprehensive DeFi agent platform with full PancakeSwap integration!
Additional Context:
Key Addresses (Arbitrum):
0xE592427A0AEce92De3Edee1F18E0157C058615640x82aF49447D8a07e3bd95BD0d56f35241523fBab10xaf88d065e77c8cC2239327C5EDb3A432268e5831Server Configuration:
Files Changed:
typescript/lib/mcp-tools/pancakeswap-mcp-server/src/client.tstypescript/lib/mcp-tools/pancakeswap-mcp-server/src/mcp.tstypescript/lib/mcp-tools/pancakeswap-mcp-server/src/types.tstypescript/lib/mcp-tools/pancakeswap-mcp-server/package.jsontypescript/lib/mcp-tools/pancakeswap-mcp-server/README.mdThis is a production-ready PancakeSwap MCP server that follows all Vibekit architecture patterns and MCP protocol standards! 🚀