@priors/mcp 0.7.0 → 0.7.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 +12 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -166,7 +166,7 @@ Settings → Developer → Edit Config (`claude_desktop_config.json`), then rest
|
|
|
166
166
|
"mcpServers": {
|
|
167
167
|
"priors": {
|
|
168
168
|
"command": "npx",
|
|
169
|
-
"args": ["-y", "@priors/mcp@0.7.
|
|
169
|
+
"args": ["-y", "@priors/mcp@0.7.1"],
|
|
170
170
|
"env": {
|
|
171
171
|
"PRIORS_KEY": "0xYOUR_AGENT_WALLET_KEY",
|
|
172
172
|
"PRIORS_AGENT_ID": "1234"
|
|
@@ -188,7 +188,7 @@ A project `.mcp.json` that reads the key from your shell's environment, so the f
|
|
|
188
188
|
"mcpServers": {
|
|
189
189
|
"priors": {
|
|
190
190
|
"command": "npx",
|
|
191
|
-
"args": ["-y", "@priors/mcp@0.7.
|
|
191
|
+
"args": ["-y", "@priors/mcp@0.7.1"],
|
|
192
192
|
"env": {
|
|
193
193
|
"PRIORS_KEY": "${PRIORS_KEY}",
|
|
194
194
|
"PRIORS_AGENT_ID": "${PRIORS_AGENT_ID:-}"
|
|
@@ -198,8 +198,16 @@ A project `.mcp.json` that reads the key from your shell's environment, so the f
|
|
|
198
198
|
}
|
|
199
199
|
```
|
|
200
200
|
|
|
201
|
-
or, for your user only
|
|
202
|
-
|
|
201
|
+
or, for your user only, from a macOS or Linux terminal:
|
|
202
|
+
|
|
203
|
+
```sh
|
|
204
|
+
(read -rs PRIORS_KEY && umask 077 && mkdir -p ~/.config/priors && rm -f ~/.config/priors/agent.key && printf '%s\n' "$PRIORS_KEY" > ~/.config/priors/agent.key) && claude mcp add priors --scope user -- sh -c 'read -r PRIORS_KEY < "$1" && export PRIORS_KEY && exec npx -y @priors/mcp@0.7.1' priors-mcp ~/.config/priors/agent.key
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
It waits for the key without showing it (paste it, then Enter), saves it in a file only you can read, and gives Claude
|
|
208
|
+
Code that file's path; the server reads the key from it when Claude Code starts it. Do not pass the key itself to
|
|
209
|
+
`claude mcp add` (`-e PRIORS_KEY=…`, even as `"$PRIORS_KEY"`): a program's arguments can be read by every user of the
|
|
210
|
+
machine while it runs (`ps`).
|
|
203
211
|
|
|
204
212
|
## Try it
|
|
205
213
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@priors/mcp",
|
|
3
3
|
"mcpName": "io.github.priors-agents/priors",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "MCP server for Priors on Robinhood Chain: pay x402 URLs in USDG, read balances, credit lines and scores, borrow and repay, and buy, sell and redeem PT-USDG. Key from PRIORS_KEY only.",
|
|
7
7
|
"type": "module",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@modelcontextprotocol/sdk": "^1.30.1",
|
|
46
|
-
"@priors/x402": "0.6.
|
|
46
|
+
"@priors/x402": "0.6.1",
|
|
47
47
|
"ethers": "^6.13.4",
|
|
48
48
|
"undici": "6.29.0",
|
|
49
49
|
"viem": "^2.56.9",
|