@toleno/mcp 1.0.0 → 1.0.2
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 +1 -1
- package/package.json +2 -2
- package/tools/mining.js +5 -5
package/README.md
CHANGED
|
@@ -104,7 +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
|
-
| `
|
|
107
|
+
| `claim_mining` | Claim rewards after a completed session | Yes |
|
|
108
108
|
| `get_wallet_info` | Wallet address, withdrawable balance, limits | Yes |
|
|
109
109
|
| `get_referral_info` | Referral code, team size, active referrals | Yes |
|
|
110
110
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toleno/mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Toleno Network MCP Server — Manage your Toleno account with Claude AI.",
|
|
5
|
-
"mcpName": "io.github.tolenonetwork/
|
|
5
|
+
"mcpName": "io.github.tolenonetwork/toleno-mcp",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"toleno-mcp": "./index.js"
|
package/tools/mining.js
CHANGED
|
@@ -1,12 +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. Note: Starting a mining session is only available from the Toleno mobile app.',
|
|
5
5
|
inputSchema: { type: 'object', properties: {}, required: [] }
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
|
-
name: '
|
|
9
|
-
description: '
|
|
8
|
+
name: 'claim_mining',
|
|
9
|
+
description: 'Claim mining rewards after a completed 24-hour session. Can only be called when a session has ended and rewards are ready to collect. Returns the amount of tokens claimed and the new balance.',
|
|
10
10
|
inputSchema: { type: 'object', properties: {}, required: [] }
|
|
11
11
|
},
|
|
12
12
|
];
|
|
@@ -15,8 +15,8 @@ const handlers = {
|
|
|
15
15
|
get_mining_status: async (client, _args) => {
|
|
16
16
|
return await client.get('/mining/status');
|
|
17
17
|
},
|
|
18
|
-
|
|
19
|
-
return await client.post('/mining/
|
|
18
|
+
claim_mining: async (client, _args) => {
|
|
19
|
+
return await client.post('/mining/claim', {});
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
22
|
|