@degenly/agent 0.2.0 → 0.2.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 +10 -8
- package/dist/cli.js +1 -1
- package/docs/clients.md +5 -5
- package/npm-shrinkwrap.json +2 -2
- package/package.json +10 -3
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ Degenly for AI agents: one package with an MCP server, a CLI and a `SKILL.md`.
|
|
|
4
4
|
Your AI app (Claude Code, Gemini CLI, Cursor, Claude Desktop) uses it to look up Solana tokens and trade them on Degenly.
|
|
5
5
|
Demo mode needs nothing; live mode uses a separate agent wallet whose key is created and kept on your computer.
|
|
6
6
|
|
|
7
|
+
Works with Claude Code, Cursor, Gemini CLI and Claude Desktop. Client setup: [docs/clients.md](docs/clients.md).
|
|
8
|
+
|
|
7
9
|
Live mode trades real SOL from the agent wallet after the 3 setup steps below; every live buy / sell asks for your confirmation first (on by default).
|
|
8
10
|
Spending limits apply to trades made through Degenly. An agent that can read files on this computer could read the agent wallet key and move funds outside Degenly. Fund the agent wallet with only what you can afford to lose.
|
|
9
11
|
|
|
@@ -12,19 +14,19 @@ Spending limits apply to trades made through Degenly. An agent that can read fil
|
|
|
12
14
|
10 demo SOL, live Degenly prices, no wallet, no key, no account, no browser step.
|
|
13
15
|
The demo record lives only on your computer in `~/.degenly/demo.json`; nothing about it is sent to Degenly.
|
|
14
16
|
|
|
15
|
-
One command, no wallet: `npx -y @degenly/agent@0.2.
|
|
17
|
+
One command, no wallet: `npx -y @degenly/agent@0.2.1 demo status --json`
|
|
16
18
|
|
|
17
19
|
## Live mode setup (3 steps)
|
|
18
20
|
|
|
19
|
-
1. `npx -y @degenly/agent@0.2.
|
|
21
|
+
1. `npx -y @degenly/agent@0.2.1 setup --owner <main wallet address>`: creates the agent wallet on this computer
|
|
20
22
|
(`~/.degenly/agent-wallet.json`) and prints its address and a pairing code (valid 10 minutes, once).
|
|
21
23
|
2. On degenly.app open `/bot`, sign in with your main wallet, choose "Pair agent" and paste the pairing code.
|
|
22
24
|
The site shows an API key once. Fund the agent wallet with SOL only with what you can afford to lose.
|
|
23
|
-
3. `npx -y @degenly/agent@0.2.
|
|
25
|
+
3. `npx -y @degenly/agent@0.2.1 login --key-file <path>`: stores the API key in `~/.degenly/credentials.json`
|
|
24
26
|
(or pipe the key on stdin to `login`; the key is never taken as a command argument).
|
|
25
27
|
|
|
26
|
-
Check it: `npx -y @degenly/agent@0.2.
|
|
27
|
-
`npx -y @degenly/agent@0.2.
|
|
28
|
+
Check it: `npx -y @degenly/agent@0.2.1 whoami`. A new pairing code for the same wallet:
|
|
29
|
+
`npx -y @degenly/agent@0.2.1 pair --owner <main wallet address>` (`setup` never overwrites an existing wallet).
|
|
28
30
|
|
|
29
31
|
## Withdraw (SOL back to your main wallet)
|
|
30
32
|
|
|
@@ -68,12 +70,12 @@ Anyone with the phrase can take the agent wallet's funds; never paste it into a
|
|
|
68
70
|
|
|
69
71
|
## Add Degenly to your AI app (one line per client)
|
|
70
72
|
|
|
71
|
-
- Claude Code: `claude mcp add degenly -- npx -y @degenly/agent@0.2.
|
|
72
|
-
- Gemini CLI: `gemini mcp add degenly npx -y @degenly/agent@0.2.
|
|
73
|
+
- Claude Code: `claude mcp add degenly -- npx -y @degenly/agent@0.2.1`
|
|
74
|
+
- Gemini CLI: `gemini mcp add degenly npx -y @degenly/agent@0.2.1`
|
|
73
75
|
- Cursor (`mcp.json`) / Claude Desktop (`claude_desktop_config.json`):
|
|
74
76
|
|
|
75
77
|
```json
|
|
76
|
-
{ "mcpServers": { "degenly": { "command": "npx", "args": ["-y", "@degenly/agent@0.2.
|
|
78
|
+
{ "mcpServers": { "degenly": { "command": "npx", "args": ["-y", "@degenly/agent@0.2.1"] } } }
|
|
77
79
|
```
|
|
78
80
|
|
|
79
81
|
ChatGPT does not support local MCP servers, so it cannot use this package. The Gemini web app: not verified.
|
package/dist/cli.js
CHANGED
|
@@ -30,7 +30,7 @@ import { DEMO_START_LAMPORTS, loadDemo, resetDemo, saveDemo } from "./demo/store
|
|
|
30
30
|
import { SYMBOL_MAX_CHARS, cleanText, isMint, showUntrusted, untrustedName, untrustedSymbol } from "./sanitize.js";
|
|
31
31
|
import { createLiveRead } from "./tools/live-read.js";
|
|
32
32
|
import { OWNER_PATH_TEXT, createLiveWithdraw, saveOwner, terminalConfirm } from "./tools/live-withdraw.js";
|
|
33
|
-
export const VERSION = "0.2.
|
|
33
|
+
export const VERSION = "0.2.1";
|
|
34
34
|
export const DEMO_NOTE = "Demo trade. No real funds moved.";
|
|
35
35
|
export const LIVE_NOTICE = "Demo mode: 10 demo SOL, live prices, record kept only on this computer (~/.degenly/demo.json). For live mode the human runs: degenly setup --owner <main wallet address>";
|
|
36
36
|
export const RECORD_PATH_TEXT = "~/.degenly/demo.json";
|
package/docs/clients.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Client setup
|
|
2
2
|
|
|
3
|
-
`@degenly/agent` is a local MCP stdio server. Every client below starts it with `npx -y @degenly/agent@0.2.
|
|
3
|
+
`@degenly/agent` is a local MCP stdio server. Every client below starts it with `npx -y @degenly/agent@0.2.1`.
|
|
4
4
|
Demo tools use demo SOL only; live tools use the agent wallet after the 3 setup steps in the README.
|
|
5
5
|
|
|
6
6
|
How the confirmation step works in this package: before a live buy / sell is sent, the server asks the human with
|
|
@@ -13,7 +13,7 @@ documentation or tested it with this package.
|
|
|
13
13
|
## Claude Code
|
|
14
14
|
|
|
15
15
|
```
|
|
16
|
-
claude mcp add degenly -- npx -y @degenly/agent@0.2.
|
|
16
|
+
claude mcp add degenly -- npx -y @degenly/agent@0.2.1
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Source: [Claude Code MCP](https://code.claude.com/docs/en/mcp).
|
|
@@ -28,7 +28,7 @@ Source: [Claude Code MCP](https://code.claude.com/docs/en/mcp).
|
|
|
28
28
|
## Gemini CLI
|
|
29
29
|
|
|
30
30
|
```
|
|
31
|
-
gemini mcp add degenly npx -y @degenly/agent@0.2.
|
|
31
|
+
gemini mcp add degenly npx -y @degenly/agent@0.2.1
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
Source: [gemini-cli mcp-server.md](https://github.com/google-gemini/gemini-cli/blob/main/docs/tools/mcp-server.md)
|
|
@@ -43,7 +43,7 @@ Source: [gemini-cli mcp-server.md](https://github.com/google-gemini/gemini-cli/b
|
|
|
43
43
|
Add to `mcp.json`:
|
|
44
44
|
|
|
45
45
|
```json
|
|
46
|
-
{ "mcpServers": { "degenly": { "command": "npx", "args": ["-y", "@degenly/agent@0.2.
|
|
46
|
+
{ "mcpServers": { "degenly": { "command": "npx", "args": ["-y", "@degenly/agent@0.2.1"] } } }
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
Source: [Cursor MCP](https://cursor.com/docs/context/mcp) (stdio servers; the page lists elicitation support).
|
|
@@ -56,7 +56,7 @@ Source: [Cursor MCP](https://cursor.com/docs/context/mcp) (stdio servers; the pa
|
|
|
56
56
|
Add to `claude_desktop_config.json`:
|
|
57
57
|
|
|
58
58
|
```json
|
|
59
|
-
{ "mcpServers": { "degenly": { "command": "npx", "args": ["-y", "@degenly/agent@0.2.
|
|
59
|
+
{ "mcpServers": { "degenly": { "command": "npx", "args": ["-y", "@degenly/agent@0.2.1"] } } }
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
Source: [MCP: connect local servers](https://modelcontextprotocol.io/docs/develop/connect-local-servers)
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@degenly/agent",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@degenly/agent",
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@modelcontextprotocol/sdk": "1.32.2"
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@degenly/agent",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"mcpName": "io.github.degenly/degenly-agent",
|
|
4
5
|
"description": "Degenly for AI agents: MCP server + CLI to look up and trade Solana tokens on Degenly. Demo mode needs no wallet; live mode uses a separate local agent wallet.",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"license": "MIT",
|
|
@@ -8,7 +9,7 @@
|
|
|
8
9
|
"type": "git",
|
|
9
10
|
"url": "git+https://github.com/degenly/degenly-agent.git"
|
|
10
11
|
},
|
|
11
|
-
"homepage": "https://degenly.app",
|
|
12
|
+
"homepage": "https://degenly.app/bot",
|
|
12
13
|
"bugs": {
|
|
13
14
|
"url": "https://github.com/degenly/degenly-agent/issues"
|
|
14
15
|
},
|
|
@@ -18,7 +19,13 @@
|
|
|
18
19
|
"solana",
|
|
19
20
|
"ai-agent",
|
|
20
21
|
"memecoin",
|
|
21
|
-
"cli"
|
|
22
|
+
"cli",
|
|
23
|
+
"mcp-server",
|
|
24
|
+
"model-context-protocol",
|
|
25
|
+
"claude-code",
|
|
26
|
+
"cursor",
|
|
27
|
+
"gemini-cli",
|
|
28
|
+
"trading"
|
|
22
29
|
],
|
|
23
30
|
"publishConfig": {
|
|
24
31
|
"access": "public"
|