@agent402-dev/check-mcp 0.3.0 → 0.3.1
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 +4 -0
- package/dist/tools.js +1 -1
- package/llms-install.md +53 -0
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -26,6 +26,8 @@ Then ask your agent: **"Run token_check_summary on EPjFWdd5AufqSSqeM2qN1xzybapC8
|
|
|
26
26
|
The server also publishes one skill through the [Skills extension](https://modelcontextprotocol.io/extensions/skills/overview) (`io.modelcontextprotocol/skills`): `skill://token-facts/SKILL.md`, how to use the two tools in order and report facts with their evidence addresses, without judging the token. Hosts that support the extension can load it when needed; other clients see it as a plain resource.
|
|
27
27
|
|
|
28
28
|
## Connect
|
|
29
|
+
Step-by-step guide for agents that install servers themselves (for example Cline): [llms-install.md](https://github.com/agent402-dev/agent402-toolkit/blob/main/packages/check-mcp/llms-install.md).
|
|
30
|
+
|
|
29
31
|
Claude Code:
|
|
30
32
|
```bash
|
|
31
33
|
claude mcp add a402-check -e A402_CHECK_RPC_URL=<your mainnet RPC> -- npx -y @agent402-dev/check-mcp
|
|
@@ -34,6 +36,8 @@ Claude Desktop (`claude_desktop_config.json`):
|
|
|
34
36
|
```json
|
|
35
37
|
{ "mcpServers": { "a402-check": { "command": "npx", "args": ["-y", "@agent402-dev/check-mcp"], "env": { "A402_CHECK_RPC_URL": "<your mainnet RPC>" } } } }
|
|
36
38
|
```
|
|
39
|
+
Claude Code plugin (the server plus the `token-facts` skill, no RPC set, so `token_check_summary` works and `token_check` asks for an RPC): `claude plugin marketplace add agent402-dev/agent402-toolkit`, then `claude plugin install agent402-check@agent402`.
|
|
40
|
+
|
|
37
41
|
Items 5–8 use `getTokenLargestAccounts` and `getProgramAccounts`, which keyless public RPC endpoints often refuse; for these, use an RPC with an API key. Without `A402_CHECK_RPC_URL`, `token_check` explains how to set it and `token_check_summary` still works. The RPC address is never printed or sent to the hosted API.
|
|
38
42
|
|
|
39
43
|
| Variable | Meaning | Default |
|
package/dist/tools.js
CHANGED
|
@@ -49,7 +49,7 @@ export async function fullTool(d, mint) {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
export function createServer(d) {
|
|
52
|
-
const server = new McpServer({ name: 'a402-check', version: '0.3.
|
|
52
|
+
const server = new McpServer({ name: 'a402-check', version: '0.3.1' });
|
|
53
53
|
server.tool('token_check_summary', 'Free factual check of a Solana token mint (items 1-4) via the hosted A402 Check API: mint authority, freeze authority, metadata update authority (Token-2022 and Metaplex), and Token-2022 extensions with their authority addresses. No API key needed; limited to 20 calls per IP per day. Returns facts and evidence addresses only — no judgments, ratings, or investment advice. Errors: HTTP 404 when no mint exists at the address, 429 when the daily limit is reached (remainingToday). For holders, liquidity locks and early buys use token_check.', { mint: MINT.describe('Solana token mint address (base58).') }, async ({ mint }) => summaryTool(d, mint));
|
|
54
54
|
server.tool('token_check', 'Free full factual report on a Solana token mint (items 1-8), computed on this machine with your own Solana RPC (set A402_CHECK_RPC_URL): authorities, Token-2022 extensions, holder concentration (pools, locks, wallets separated), liquidity lock (Meteora DAMM v2, Raydium CPMM), operator locks (Streamflow), and buys right after trading opened. No payment. Returns facts and evidence addresses only — no judgments, ratings, or investment advice. Errors: rpc_not_configured (no A402_CHECK_RPC_URL; use token_check_summary), mint_not_found, not_a_mint, upstream_unavailable (RPC failed or blocked the calls).', { mint: MINT.describe('Solana token mint address (base58).') }, async ({ mint }) => fullTool(d, mint));
|
|
55
55
|
registerSkills(server); // Skills over MCP: the fact-checking workflow as a skill (hosts without the extension ignore it)
|
package/llms-install.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Installing @agent402-dev/check-mcp (for AI agents such as Cline)
|
|
2
|
+
|
|
3
|
+
check-mcp is a local MCP server (stdio) that returns facts with evidence addresses about a Solana token mint: authorities, Token-2022 extensions, holders, liquidity locks and buys right after trading opened. It does not judge or rate tokens and gives no investment advice. It never pays and needs no wallet.
|
|
4
|
+
|
|
5
|
+
> Factual information from public on-chain data. Not investment advice.
|
|
6
|
+
|
|
7
|
+
## Requirements
|
|
8
|
+
|
|
9
|
+
- Node.js 20 or newer (`node --version`).
|
|
10
|
+
- No API key and no wallet. A Solana mainnet RPC is only needed for the full report (`token_check`).
|
|
11
|
+
|
|
12
|
+
## 1. Add the server
|
|
13
|
+
|
|
14
|
+
Add this to the MCP settings (for Cline: `cline_mcp_settings.json`):
|
|
15
|
+
|
|
16
|
+
```json
|
|
17
|
+
{
|
|
18
|
+
"mcpServers": {
|
|
19
|
+
"a402-check": {
|
|
20
|
+
"command": "npx",
|
|
21
|
+
"args": ["-y", "@agent402-dev/check-mcp"]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## 2. Verify (no RPC needed)
|
|
28
|
+
|
|
29
|
+
Call `token_check_summary` with `{ "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" }` (the USDC mint). It answers from the hosted A402 Check API (20 calls per IP per day) with the mint, freeze and metadata authorities and the evidence accounts.
|
|
30
|
+
|
|
31
|
+
## 3. Full report (optional, needs the user's RPC)
|
|
32
|
+
|
|
33
|
+
Ask the user for their Solana mainnet RPC address; do not pick one yourself. Then add an `env` block:
|
|
34
|
+
|
|
35
|
+
```json
|
|
36
|
+
"env": {
|
|
37
|
+
"A402_CHECK_RPC_URL": "<mainnet RPC address from the user>"
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
`token_check` then computes items 1-8 on this machine. Items 5-8 use `getTokenLargestAccounts` and `getProgramAccounts`, which keyless public RPC endpoints often refuse. The RPC address is never printed or sent to the hosted API.
|
|
42
|
+
|
|
43
|
+
## Reporting results
|
|
44
|
+
|
|
45
|
+
Report the facts and their evidence addresses as returned. Do not turn them into a rating, a recommendation or a prediction. Token amounts are in the token's smallest unit unless the field says otherwise.
|
|
46
|
+
|
|
47
|
+
## Troubleshooting
|
|
48
|
+
|
|
49
|
+
- `rpc_not_configured`: `A402_CHECK_RPC_URL` is not set; `token_check_summary` still works.
|
|
50
|
+
- HTTP 429 from `token_check_summary`: the daily limit for this IP is reached (`remainingToday`).
|
|
51
|
+
- `upstream_unavailable`: the RPC failed or refused the calls; check the address and plan limits.
|
|
52
|
+
|
|
53
|
+
More: https://github.com/agent402-dev/agent402-toolkit/blob/main/packages/check-mcp/README.md
|
package/package.json
CHANGED
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
"description": "MCP server (stdio) returning factual on-chain information about Solana token mints, with evidence addresses. Free. No judgments or investment advice.",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"mcp",
|
|
6
|
+
"mcp-server",
|
|
6
7
|
"solana",
|
|
7
8
|
"token",
|
|
8
9
|
"token-2022",
|
|
9
|
-
"onchain"
|
|
10
|
+
"onchain",
|
|
11
|
+
"agent-skills",
|
|
12
|
+
"claude-code-plugin"
|
|
10
13
|
],
|
|
11
14
|
"mcpName": "io.github.agent402-dev/a402-check-mcp",
|
|
12
15
|
"bin": {
|
|
@@ -23,7 +26,7 @@
|
|
|
23
26
|
"@agent402-dev/check-engine": "^0.2.0",
|
|
24
27
|
"zod": "^4.6.7"
|
|
25
28
|
},
|
|
26
|
-
"version": "0.3.
|
|
29
|
+
"version": "0.3.1",
|
|
27
30
|
"author": "Agent402",
|
|
28
31
|
"license": "Apache-2.0",
|
|
29
32
|
"type": "module",
|
|
@@ -45,6 +48,7 @@
|
|
|
45
48
|
"files": [
|
|
46
49
|
"dist",
|
|
47
50
|
"README.md",
|
|
51
|
+
"llms-install.md",
|
|
48
52
|
"LICENSE",
|
|
49
53
|
"NOTICE"
|
|
50
54
|
]
|