@quidli/connect-mcp 0.5.7 → 0.5.8
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/dist/tools/register.js +28 -10
- package/package.json +1 -1
package/dist/tools/register.js
CHANGED
|
@@ -11,37 +11,55 @@ export const CONNECT_MCP_TOOL_NAMES = [
|
|
|
11
11
|
'connect_drop',
|
|
12
12
|
'connect_drop_balance',
|
|
13
13
|
];
|
|
14
|
+
/**
|
|
15
|
+
* Tool annotations. `readOnlyHint` is load-bearing, not decorative: clients
|
|
16
|
+
* auto-register Connect tools by it rather than by a hand-maintained allowlist,
|
|
17
|
+
* so an unannotated tool is not offered to a model at all. A tool that can move
|
|
18
|
+
* funds must never carry READ_ONLY.
|
|
19
|
+
*/
|
|
20
|
+
const READ_ONLY = {
|
|
21
|
+
readOnlyHint: true,
|
|
22
|
+
destructiveHint: false,
|
|
23
|
+
idempotentHint: true,
|
|
24
|
+
openWorldHint: true,
|
|
25
|
+
};
|
|
26
|
+
const SPENDS_FUNDS = {
|
|
27
|
+
readOnlyHint: false,
|
|
28
|
+
destructiveHint: true,
|
|
29
|
+
idempotentHint: true,
|
|
30
|
+
openWorldHint: true,
|
|
31
|
+
};
|
|
14
32
|
export function registerTools(server, client) {
|
|
15
|
-
server.tool('connect_get_price', 'Get public x402 list prices for lookup and scores (reference only; live paywall amounts are in 402 responses).', {}, async () => client.request({ method: 'GET', path: '/price', authenticated: false }));
|
|
16
|
-
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).', {}, async () => client.request({ method: 'GET', path: '/chains', authenticated: false }));
|
|
17
|
-
server.tool('connect_lookup', 'Resolve social identities to EVM and Solana wallet addresses. If status is processing, retry the same payload.', lookupInputSchema, async ({ recipients }) => client.request({
|
|
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 }));
|
|
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({
|
|
18
36
|
method: 'POST',
|
|
19
37
|
path: '/lookup',
|
|
20
38
|
body: { recipients },
|
|
21
39
|
}));
|
|
22
|
-
server.tool('connect_lookup_exposed', 'List platforms a recipient has exposed on Connect, with enriched profile, scores, and wallet addresses. Recipient may be a social account, an exposed wallet (EVM/Solana/smart wallet), or a Connect username. May require x402 payment when the profile owner charges for lookups.', lookupExposedInputSchema, async ({ recipient }) => client.request({
|
|
40
|
+
server.tool('connect_lookup_exposed', 'List platforms a recipient has exposed on Connect, with enriched profile, scores, and wallet addresses. Recipient may be a social account, an exposed wallet (EVM/Solana/smart wallet), or a Connect username. May require x402 payment when the profile owner charges for lookups.', lookupExposedInputSchema, READ_ONLY, async ({ recipient }) => client.request({
|
|
23
41
|
method: 'POST',
|
|
24
42
|
path: '/lookup/exposed',
|
|
25
43
|
body: { recipient },
|
|
26
44
|
}));
|
|
27
|
-
server.tool('connect_scores_batch', 'Batch scores for linked accounts or Connect usernames. Optional filter excludes users below minScore (quidli 0–100, neynar/lens 0–1, ethos 0–2800).', scoresBatchInputSchema, async ({ users, filter }) => client.request({
|
|
45
|
+
server.tool('connect_scores_batch', 'Batch scores for linked accounts or Connect usernames. Optional filter excludes users below minScore (quidli 0–100, neynar/lens 0–1, ethos 0–2800).', scoresBatchInputSchema, READ_ONLY, async ({ users, filter }) => client.request({
|
|
28
46
|
method: 'POST',
|
|
29
47
|
path: '/scores',
|
|
30
48
|
body: { users, ...(filter ? { filter } : {}) },
|
|
31
49
|
}));
|
|
32
|
-
server.tool('connect_scores_by_account', 'Scores for a linked social account or wallet.', scoresByAccountInputSchema, async ({ platform, identifier }) => client.request({
|
|
50
|
+
server.tool('connect_scores_by_account', 'Scores for a linked social account or wallet.', scoresByAccountInputSchema, READ_ONLY, async ({ platform, identifier }) => client.request({
|
|
33
51
|
method: 'GET',
|
|
34
52
|
path: `/scores/${encodeURIComponent(platform)}/${encodeURIComponent(identifier)}`,
|
|
35
53
|
}));
|
|
36
|
-
server.tool('connect_scores_by_username', 'Scores by Connect public username.', scoresByUsernameInputSchema, async ({ username }) => client.request({
|
|
54
|
+
server.tool('connect_scores_by_username', 'Scores by Connect public username.', scoresByUsernameInputSchema, READ_ONLY, async ({ username }) => client.request({
|
|
37
55
|
method: 'GET',
|
|
38
56
|
path: `/scores/u/${encodeURIComponent(username.trim())}`,
|
|
39
57
|
}));
|
|
40
|
-
server.tool('connect_me', 'Get the Connect profile, scores, and all linked accounts for the API key owner. Use to identify which user the key belongs to.', {}, async () => client.request({
|
|
58
|
+
server.tool('connect_me', 'Get the Connect profile, scores, and all linked accounts for the API key owner. Use to identify which user the key belongs to.', {}, READ_ONLY, async () => client.request({
|
|
41
59
|
method: 'GET',
|
|
42
60
|
path: '/account/me',
|
|
43
61
|
}));
|
|
44
|
-
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, async ({ ignoreFailedRecipients, ...body }) => client.request({
|
|
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({
|
|
45
63
|
method: 'POST',
|
|
46
64
|
path: '/drop',
|
|
47
65
|
body,
|
|
@@ -50,7 +68,7 @@ export function registerTools(server, client) {
|
|
|
50
68
|
? { ignoreFailedRecipients: 'true' }
|
|
51
69
|
: undefined,
|
|
52
70
|
}));
|
|
53
|
-
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, async ({ chainId }) => client.request({
|
|
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({
|
|
54
72
|
method: 'GET',
|
|
55
73
|
path: '/drop/balance',
|
|
56
74
|
requireApiKey: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quidli/connect-mcp",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.8",
|
|
4
4
|
"description": "Identity and reputation for multiplayer agents: resolve social handles to wallet addresses, check reputation from public history, and send tokens from any MCP client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|