@toleno/mcp 1.0.2 → 1.0.3
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 +2 -1
- package/package.json +1 -1
- package/tools/mining.js +9 -1
package/README.md
CHANGED
|
@@ -104,6 +104,7 @@ Add `.mcp.json` to your project root:
|
|
|
104
104
|
| `get_global_stats` | Total tokens mined, platform-wide user count | No |
|
|
105
105
|
| `get_profile` | Your balance, mining power, streak, level | Yes |
|
|
106
106
|
| `get_mining_status` | Active session, time remaining, tokens earned | Yes |
|
|
107
|
+
| `start_mining` | Start a new 24-hour mining session | Yes |
|
|
107
108
|
| `claim_mining` | Claim rewards after a completed session | Yes |
|
|
108
109
|
| `get_wallet_info` | Wallet address, withdrawable balance, limits | Yes |
|
|
109
110
|
| `get_referral_info` | Referral code, team size, active referrals | Yes |
|
|
@@ -153,7 +154,7 @@ Claude: Your referral stats:
|
|
|
153
154
|
Your key is stored locally in the Claude config file — never sent to Claude's servers. Revoke it anytime from the Toleno app.
|
|
154
155
|
|
|
155
156
|
**Q: Can Claude do anything harmful to my account?**
|
|
156
|
-
No. Claude can only read data
|
|
157
|
+
No. Claude can only read data, start mining sessions, and claim completed rewards. It cannot change your wallet address, withdraw tokens, or delete your account.
|
|
157
158
|
|
|
158
159
|
**Q: The tools don't appear in Claude Desktop.**
|
|
159
160
|
Fully quit and restart Claude Desktop after setup. Look for the 🔨 hammer icon in the chat toolbar.
|
package/package.json
CHANGED
package/tools/mining.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
const definitions = [
|
|
2
2
|
{
|
|
3
3
|
name: 'get_mining_status',
|
|
4
|
-
description: 'Get the current mining session status for the authenticated Toleno user. Returns whether a session is active or completed, start/end times, elapsed and remaining time in milliseconds, tokens mined so far, total tokens to be earned, and whether rewards are ready to claim.
|
|
4
|
+
description: 'Get the current mining session status for the authenticated Toleno user. Returns whether a session is active or completed, start/end times, elapsed and remaining time in milliseconds, tokens mined so far, total tokens to be earned, and whether rewards are ready to claim.',
|
|
5
|
+
inputSchema: { type: 'object', properties: {}, required: [] }
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
name: 'start_mining',
|
|
9
|
+
description: 'Start a new 24-hour mining session for the authenticated Toleno user. Can only be called when no active session exists. Returns the session details including start/end times and expected token earnings.',
|
|
5
10
|
inputSchema: { type: 'object', properties: {}, required: [] }
|
|
6
11
|
},
|
|
7
12
|
{
|
|
@@ -15,6 +20,9 @@ const handlers = {
|
|
|
15
20
|
get_mining_status: async (client, _args) => {
|
|
16
21
|
return await client.get('/mining/status');
|
|
17
22
|
},
|
|
23
|
+
start_mining: async (client, _args) => {
|
|
24
|
+
return await client.post('/mining/start', {});
|
|
25
|
+
},
|
|
18
26
|
claim_mining: async (client, _args) => {
|
|
19
27
|
return await client.post('/mining/claim', {});
|
|
20
28
|
},
|