The Sui Agent Kit was born from a passion to simplify DeFi development on the Sui blockchain and to empower builders like you for the Sui Overflow 2025 Hackathon!
We've created a Model Context Protocol (MCP) implementation that standardizes how AI agents interact with Sui DeFi protocols. Our toolkit provides ready-to-use MCP tools that allow any AI agent to perform complex DeFi operations on Sui with just one click. We've integrated Navi, SuiSpring, and Suilend protocols into a unified interface, but our goal is to expand this to all protocols in the Sui ecosystem. This eliminates the need for developers to learn multiple SDKs or write custom integration code for each protocol.
Our mission is to provide the foundational infrastructure that enables developers to rapidly prototype, build, and deploy sophisticated DeFi applications, automation scripts, and AI-powered agents on Sui, with a special focus on leveraging the deep liquidity and features of the Navi/Suilend Protocol.
https://www.youtube.com/watch?v=mPq3Kvj14hU or click in the image below
MCP is the bridge between AI and blockchain. It's a standardized communication protocol that allows AI agents to interact with external systems through simple "tool calls" - no complex coding required. In simple terms: Instead of AI agents needing to learn dozens of different APIs and SDKs, MCP provides one universal language. For DeFi, this means an AI can say "deposit 100 USDC" and MCP handles all the blockchain complexity behind the scenes.
The Sui Agent Kit Ecosystem consists of two specialized Node.js server applications built with TypeScript. Each acts as a bridge, translating simple MCP tool calls into direct interactions with specific DeFi protocols on the Sui network.
|
π Repository Link Specialized for:
Perfect for: Yield farmers, arbitrage bots, portfolio managers |
π Repository Link Specialized for:
Perfect for: Comprehensive DeFi agents, LST optimizers, wallet automation |
- π€ Automated Portfolio Rebalancer: Cross-protocol agents that monitor health factors and automatically manage positions across Navi and SuiLend
- πΎ Multi-Protocol Yield Farming: Agents that identify the highest yields across Navi, SuiLend, and various LST providers, automatically moving funds
- π Unified DeFi Dashboard: Web interfaces that aggregate data from both kits to provide comprehensive portfolio views
- π§ AI-Powered Financial Advisors: Advanced agents that analyze opportunities across the entire Sui DeFi ecosystem
- βοΈ Cross-Protocol Arbitrage: Sophisticated bots that exploit price differences between Navi and SuiLend markets
navi-mcp-server/
βββ src/
β βββ mcp_server/
β β βββ server.ts # MCP server implementation
β β βββ mappers.ts # Asset symbol/amount conversions
β βββ core_navi/
β β βββ navi_client.ts # Navi SDK integration
β βββ config.ts # Environment configuration
β βββ index.ts # Entry point
βββ dist/ # Compiled JavaScript
βββ .env # Environment variables
βββ package.json
π Portfolio Management:
navi_getAgentPortfolio: Retrieve current supply and borrow balancesnavi_getAgentHealthFactor: Check the agent's health factornavi_getAgentDynamicHealthFactor: Predict health factor after hypothetical changes
π Lending Pool Interactions:
navi_depositAsset: Deposit SUI, USDC, USDT, etc., as collateralnavi_withdrawAsset: Withdraw deposited assetsnavi_borrowAsset: Borrow assets against collateralnavi_repayDebt: Repay borrowed amounts
π± Token Swaps (via NAVI Aggregator):
navi_getSwapQuote: Get quotes for asset swapsnavi_executeSwap: Execute token swaps
π§ Liquid Staking (vSUI):
navi_stakeSuiForVSui: Stake SUI to receive vSUI (VoloSui)navi_unstakeVSuiForSui: Unstake vSUI to receive SUI back
π° Rewards Management:
navi_getAgentAvailableRewards: Check for unclaimed rewardsnavi_claimAllAgentRewards: Claim all available rewardsnavi_getAgentRewardsHistory: View history of claimed rewards
π Market Data:
navi_getPoolInfoBySymbol: Get details for specific asset poolsnavi_getAllPoolsInfo: Get details for all available asset poolsnavi_getReserveDetail: Get in-depth reserve information
-
Node.js and npm: Recent version required
-
Sui Wallet: Mnemonic or private key with SUI for gas fees
-
Clone Repository:
git clone https://github.com/ParaDevsAI/Sui-Agent-Kit-Navi/ cd Sui-Agent-Kit-Navi/navi-mcp-server -
Configure Environment:
# .env file SUI_RPC_URL=https://fullnode.mainnet.sui.io:443 NAVI_AGENT_MNEMONIC="your twelve or twenty-four word mnemonic phrase here" # OR NAVI_AGENT_PRIVATE_KEY="your_base64_encoded_private_key_bytes_here"
-
Build & Run:
npm install npm run build node dist/index.js
sui-agent-kit-suispring-suilend/
βββ src/
β βββ mcp/
β β βββ server.ts # MCP server orchestration
β β βββ internalSdkClientManager.ts # SDK client management
β β βββ zodSchemas/ # Input validation schemas
β β βββ toolHandlers/ # Protocol-specific handlers
β βββ protocols/
β β βββ suilend/ # SuiLend integration
β β βββ suispring/ # SuiSpring integration
β β βββ mystensui/ # Core Sui operations
β βββ common/ # Shared utilities
β βββ main.ts # Entry point
βββ dist/ # Compiled JavaScript
βββ .env # Environment variables
βββ package.json
β―οΈ MystenSui (Core Sui Functionality):
mystenSui_getSuiBalance: Fetch SUI balance for the agent walletmystenSui_getTokenMetadata: Retrieve detailed token metadatamystenSui_getUserTokenBalance: Get specific token balancesmystenSui_transferSui: Execute SUI transfersmystenSui_transferSuiToMany: Batch SUI transfersmystenSui_transferFungTokensToMany: Batch token transfersmystenSui_getUserRecentTxs: Fetch recent transaction history
π± SuiSpring (Liquid Staking):
springSui_discoverLstPools: Discover available LST poolsspringSui_getLstSuiExchangeRate: Get LST to SUI exchange ratesspringSui_getUserLstDetails: Fetch user LST position detailsspringSui_getSpringSuiPoolApys: Get APYs for LST poolsspringSui_stakeSuiForSpringSuiLst: Stake SUI for generic LSTsspringSui_stakeSuiForParaSui: Specifically stake for ParaSUIspringSui_redeemSpringSuiLstForSui: Redeem LSTs back to SUI
π¦ Suilend (Lending & Borrowing):
suilend_getSuilendMarketAssets: List supported assets and metricssuilend_ensureSuilendObligation: Create/check loan accountssuilend_getUserObligationInfo: Get obligation IDs for operationssuilend_depositToSuilend: Deposit assets as collateralsuilend_getObligationDetails: Comprehensive obligation reportssuilend_withdrawFromSuilend: Withdraw collateralsuilend_borrowFromSuilend: Borrow against collateralsuilend_repayToSuilend: Repay borrowed assetssuilend_getObligationHistory: Fetch transaction history
π οΈ Common Utilities:
common_formatTokenAmount: Convert raw amounts to readable stringscommon_parseTokenAmount: Convert readable strings to raw amountscommon_shortenAddress: Shorten addresses for displaycommon_getCoinTypeBySymbol: Get coin types from symbols
-
Node.js: Version 18.x or later recommended
-
Sui Wallet: Private key in Bech32 format (starting with
suiprivkey1...) -
Clone Repository:
git clone https://github.com/ParaDevsAI/Sui-Agent-Kit-SuiLend-SuiSpring cd Sui-Agent-Kit-SuiLend-SuiSpring -
Configure Environment:
# .env file SUI_MAINNET_PRIVATE_KEY="suiprivkey1yourlongprivatekeystringgoeshere..." # Optional: SUI_RPC_URL="https://fullnode.mainnet.sui.io:443"
-
Build & Run:
npm install npm run build npm start # OR for development: npm run dev
Both kits use the Model Context Protocol (MCP) for communication. Configure your MCP client with an mcp.json file:
{
"mcpServers": {
"navi-mcp-agent": {
"command": "node",
"args": [
"YOUR_ABSOLUTE_PATH_TO/Sui-Agent-Kit-Navi/navi-mcp-server/dist/index.js"
],
"cwd": "YOUR_ABSOLUTE_PATH_TO/Sui-Agent-Kit-Navi/navi-mcp-server",
"env": {
"SUI_RPC_URL": "https://fullnode.mainnet.sui.io:443",
"NAVI_AGENT_MNEMONIC": "your optional mnemonic override"
}
}
}
}{
"mcpServers": {
"sui-agent-kit": {
"command": "node",
"args": [
"YOUR_ABSOLUTE_PATH_TO/sui-agent-kit-suispring-suilend/dist/main.js"
],
"cwd": "YOUR_ABSOLUTE_PATH_TO/sui-agent-kit-suispring-suilend",
"env": {
"SUI_MAINNET_PRIVATE_KEY": "suiprivkey1..."
}
}
}
}Use the MCP Inspector CLI to test your setup:
# Check portfolio
npx @modelcontextprotocol/inspector --cli ts-node src/index.ts --method tools/call --tool-name navi_getAgentPortfolio
# Deposit 0.1 SUI
npx @modelcontextprotocol/inspector --cli ts-node src/index.ts --method tools/call --tool-name navi_depositAsset --tool-arg assetSymbol=SUI --tool-arg amount=0.1
# Get swap quote
npx @modelcontextprotocol/inspector --cli ts-node src/index.ts --method tools/call --tool-name navi_getSwapQuote --tool-arg fromAssetSymbol=SUI --tool-arg toAssetSymbol=USDC --tool-arg amountIn=1.0# Get SUI balance
mcp-inspector --server sui-agent-kit --method tools/call --tool-name mystenSui_getSuiBalance --tool-arg network=mainnet
# Stake SUI for ParaSUI
mcp-inspector --server sui-agent-kit --method tools/call --tool-name springSui_stakeSuiForParaSui --tool-arg amountSuiToStake=0.05 --tool-arg network=mainnet
# Get Suilend market info
mcp-inspector --server sui-agent-kit --method tools/call --tool-name suilend_getSuilendMarketAssets --tool-arg network=mainnetParaDevs AI - Building the future of DeFi automation on Sui
|
Project Manager and AI Developer
Backend Engineer
|
Blockchain Developer
Developer
|
Navi Protocol Kit:
- β Complete MCP server implementation
- β Full Navi SDK integration
- β All core lending/borrowing operations
- β NAVI Aggregator swap functionality
- β VoloSui liquid staking
- β Comprehensive portfolio management
- β Rewards system integration
SuiLend + SuiSpring Kit:
- β Robust MCP server with Zod validation
- β Complete SuiLend integration
- β Full SuiSpring LST support
- β Core Sui operations
- β Advanced SDK client management
- β Comprehensive testing framework
β οΈ Steamm DEX integration (planned but disabled for MVP)
Immediate Post-Hackathon:
- π Cross-Kit Integration: Enable agents to operate across both protocols simultaneously
- π Steamm DEX Integration: Complete robust DEX functionality in the SuiLend kit
- π§ͺ Enhanced Testing: Comprehensive unit and integration test coverage
- π Documentation Expansion: In-depth guides and tutorials
Long-term Vision:
- π€ AI Agent Showcases: Pre-built intelligent agents demonstrating advanced strategies
- π Enterprise Security: Multi-sig and permission-based execution frameworks
- π‘ Real-time Events: On-chain event streaming for reactive decision-making
- π Community Ecosystem: Plugin architecture for community-contributed protocol integrations
- π― Strategy Marketplace: Sharable and monetizable DeFi strategies
ParaDevs AI - Building the future of DeFi automation on Sui
Your contributions are not just welcomeβthey're essential for building the future of DeFi automation on Sui!
- Choose Your Kit: Pick the Navi kit or SuiLend+SuiSpring kit based on your interests
- Fork the Repository: Create your own fork of the relevant repository
- Create Feature Branches: Work on focused improvements
- Submit Pull Requests: Detailed PRs with clear descriptions
- Join the Discussion: Engage with the community through issues and discussions
Both kits in the Sui Agent Kit Ecosystem are released under the MIT License, encouraging open collaboration and innovation in the Sui DeFi space.
Support our work by using ParaSui liquid staking on SUI: springsui.com/SUI-ParaSui
Built with β€οΈ for the Sui Overflow 2025 Hackathon
Let's build the future of decentralized finance on Sui, together!
π Navi Kit Repository | π¦ SuiLend+SuiSpring Kit Repository
