Cursor Setup
Create.cursor/mcp.json in your project root:
Claude Desktop Setup
Edit~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
%APPDATA%\Claude\claude_desktop_config.json.
Bootstrap Wallet First
If you do not already have a wallet key, run:DIM_WALLET_STORE_PATH into your config.
If you prefer bring-your-own-key, use DIM_WALLET_PRIVATE_KEY instead.
Usage
Once configured, ask your agent naturally:- “Log in to DIM and check my balance”
- “Search for user alice and send her a friend request”
- “Create a Rock-Paper-Scissors lobby for $5”
- “Check my referral earnings and claim if there are any pending”
- “Tip @bob $1 for a good game”
Funding Guidance
- For paid actions, keep USDC on Solana in the configured wallet.
- Run
dim_get_balanceafterdim_loginto verify funds. - If empty, send USDC on Solana to your wallet address, then retry.
- Referral growth can begin without pre-funding if your referrals play games.
Troubleshooting version errors
If Cursor/Claude shows426 Upgrade Required, SDK_UPGRADE_REQUIRED, or an “SDK version outdated” error, your DIM dependencies are below the API minimum.
- Upgrade dependencies:
npm install @dimcool/mcp@latest- If you also use SDK directly in the same project,
npm install @dimcool/sdk@latest
- Restart Cursor/Claude to reload the MCP server.
- Run
dim_loginagain and retry the failed action.