@quidli/connect-mcp 0.5.9 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -371,7 +371,7 @@ mistake.
371
371
  | `connect_scores_by_account` | Scores for one linked account |
372
372
  | `connect_scores_by_username` | Scores by Connect username |
373
373
  | `connect_me` | API key owner profile, scores, and linked accounts — **API key only** |
374
- | `connect_drop` | Smart Send (batch token transfer) — **API key only** |
374
+ | `connect_drop` | Smart Send (EVM batch or Solana SOL/SPL) — **API key only** |
375
375
  | `connect_drop_balance` | Smart Send wallet balances on a chain — **API key only** |
376
376
 
377
377
 
package/dist/schemas.js CHANGED
@@ -83,25 +83,25 @@ export const scoresByUsernameInputSchema = {
83
83
  username: z.string().min(1),
84
84
  };
85
85
  export const dropBalanceInputSchema = {
86
- chainId: z.number().int().describe('EVM chain ID (Smart Send supported chains only)'),
86
+ chainId: z.number().int().describe('EVM chain ID or 1399811149 for Solana mainnet (Smart Send)'),
87
87
  };
88
88
  export const dropInputSchema = {
89
89
  idempotencyKey: z.string().uuid(),
90
- chainId: z.number().int().describe('EVM chain ID (Smart Send supported chains only)'),
90
+ chainId: z.number().int().describe('EVM chain ID or 1399811149 for Solana mainnet'),
91
91
  tokenContract: z
92
92
  .string()
93
93
  .nullable()
94
94
  .optional()
95
- .describe('ERC-20 contract address. Omit or null for the chain native token (ETH, POL, AVAX). Do not use the zero address.'),
95
+ .describe('EVM ERC-20 contract or Solana SPL mint. Omit or null for the native token (ETH/POL/AVAX, or SOL on 1399811149). Do not use the zero address.'),
96
96
  recipients: z
97
97
  .array(linkedAccountSchema)
98
98
  .min(1)
99
- .describe('Wallet or social recipients (all wallet or all social, no mix). Optional amountInWei per recipient uses the same smallest-unit rules as amountInWeiPerRecipient.'),
99
+ .describe('Wallet or social recipients (all wallet or all social, no mix). Optional amountInWei per recipient uses the same smallest-unit rules as amountInWeiPerRecipient. On Solana, wallet ids are base58 pubkeys; social lookup pays solWalletAddress.'),
100
100
  amountInWeiPerRecipient: z
101
101
  .string()
102
102
  .optional()
103
103
  .nullable()
104
- .describe('Uniform amount in smallest units (wei). Native ETH uses 18 decimals; ERC-20 uses token decimals from connect_drop_balance (USDC usually 6). Omit when setting amountInWei on each recipient.'),
104
+ .describe('Uniform amount in smallest units. Native ETH uses 18 decimals; SOL uses 9; ERC-20/SPL uses token decimals from connect_drop_balance (USDC usually 6). Omit when setting amountInWei on each recipient.'),
105
105
  ignoreFailedRecipients: z
106
106
  .boolean()
107
107
  .optional()
@@ -31,7 +31,7 @@ const SPENDS_FUNDS = {
31
31
  };
32
32
  export function registerTools(server, client) {
33
33
  server.tool('connect_get_price', 'Get public x402 list prices for lookup and scores (reference only; live paywall amounts are in 402 responses).', {}, READ_ONLY, async () => client.request({ method: 'GET', path: '/price', authenticated: false }));
34
- server.tool('connect_get_chains', 'List product chains with per-feature compatibility. lookup is true for EVM catalog chains and Solana; drop is true only for Smart Send EVM chains (use those chainIds for connect_drop / connect_drop_balance).', {}, READ_ONLY, async () => client.request({ method: 'GET', path: '/chains', authenticated: false }));
34
+ server.tool('connect_get_chains', 'List product chains with per-feature compatibility. lookup is true for EVM catalog chains and Solana; drop is true for Smart Send EVM chains and Solana (chainId 1399811149 for connect_drop / connect_drop_balance).', {}, READ_ONLY, async () => client.request({ method: 'GET', path: '/chains', authenticated: false }));
35
35
  server.tool('connect_lookup', 'Resolve social identities to EVM and Solana wallet addresses. Resolving a recipient who has no wallet provisions one for them, so this is read-only for the caller but not for the recipient. If status is processing, retry the same payload.', lookupInputSchema, READ_ONLY, async ({ recipients }) => client.request({
36
36
  method: 'POST',
37
37
  path: '/lookup',
@@ -59,7 +59,10 @@ export function registerTools(server, client) {
59
59
  method: 'GET',
60
60
  path: '/account/me',
61
61
  }));
62
- server.tool('connect_drop', 'Execute a Smart Send (batch native or ERC-20 transfer). Omit tokenContract or set it to null for the chain native token (ETH on 1/8453/10/42161/480, POL on 137, AVAX on 43114); pass the ERC-20 contract address otherwise — do not use the zero address. Amounts are smallest-unit integer strings; use connect_drop_balance decimals (native ETH = 18, USDC usually 6). Returns 201 when submitted or 202 when recipients still processing — retry with the same idempotencyKey.', dropInputSchema, SPENDS_FUNDS, async ({ ignoreFailedRecipients, ...body }) => client.request({
62
+ server.tool('connect_drop', 'Execute a Smart Send from the API key owner Connect embedded wallet. EVM: batch native or ERC-20 (need native gas plus the token). Solana (chainId 1399811149): SOL or SPL from the Solana embedded wallet. Lookup social recipients and pay solWalletAddress, never ethWalletAddress. Omit tokenContract or set it to null for the native token; pass an ERC-20 contract or SPL mint otherwise — do not use the zero address. Amounts are smallest-unit integer strings (ETH 18 decimals, SOL 9, USDC usually 6). Packs up to 20 SOL or 10 SPL recipients per transaction. ' +
63
+ 'Solana native (tokenContract null): no ATA. Sending to a new or empty wallet requires amount ≥ 890880 lamports (rent-exempt minimum for a system account); that SOL stays with the recipient. Below that the tx fails. Sender also pays a ~5000-lamport fee. ' +
64
+ 'Solana SPL: tokens sit in Associated Token Accounts (ATA), not on the wallet pubkey. Recipients need not already hold the token — the API prepends CreateIdempotent. The sender (not the recipient) pays ~2039280 lamports (~0.002039 SOL) rent per newly created dest ATA, plus tx fees, on top of the token amount (which can be as small as 1 unit). A 400 "Insufficient funds" on SPL is often missing SOL for ATA rent, not missing USDC. Token-2022 is not supported; USDC mint is EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v. ' +
65
+ 'Always call connect_drop_balance first. Returns 201 when submitted or 202 when recipients still processing — retry with the same idempotencyKey.', dropInputSchema, SPENDS_FUNDS, async ({ ignoreFailedRecipients, ...body }) => client.request({
63
66
  method: 'POST',
64
67
  path: '/drop',
65
68
  body,
@@ -68,7 +71,9 @@ export function registerTools(server, client) {
68
71
  ? { ignoreFailedRecipients: 'true' }
69
72
  : undefined,
70
73
  }));
71
- server.tool('connect_drop_balance', 'Get native and ERC-20 balances for the API key owner Smart Send embedded wallet on a chain. Use before connect_drop to verify gas and token funds.', dropBalanceInputSchema, READ_ONLY, async ({ chainId }) => client.request({
74
+ server.tool('connect_drop_balance', 'Get native and token balances for the API key owner Smart Send embedded wallet on a chain. Always call before connect_drop. Zero balances are omitted, so a missing token means balance 0. ' +
75
+ 'EVM: confirm native gas plus the ERC-20 being sent. ' +
76
+ 'Solana (chainId 1399811149): SOL in this response is spendable lamports on the wallet pubkey (rent locked in existing token accounts is not included). Native SOL drop to a new/empty recipient: amount itself must be ≥ 890880 lamports and sender SOL must cover amount + ~5000 lamports fee. SPL drop: token balance ≥ total amount, and SOL ≥ tx fee + ~2039280 lamports (~0.002039 SOL) per recipient that may need a new Associated Token Account — even when sending USDC. Insufficient SOL for ATA rent fails before the token transfer.', dropBalanceInputSchema, READ_ONLY, async ({ chainId }) => client.request({
72
77
  method: 'GET',
73
78
  path: '/drop/balance',
74
79
  requireApiKey: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quidli/connect-mcp",
3
- "version": "0.5.9",
3
+ "version": "0.6.0",
4
4
  "description": "MCP server for agent identity and reputation: resolve social handles to wallet addresses, score onchain reputation, and send USDC from any MCP client.",
5
5
  "keywords": [
6
6
  "mcp",