Skip to content

Commit 746bf8a

Browse files
authored
1click cursor install (#5)
1 parent 2913b2f commit 746bf8a

File tree

1 file changed

+67
-10
lines changed

1 file changed

+67
-10
lines changed

README.md

Lines changed: 67 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,69 @@ A Python MCP (Model Context Protocol) server for the [Jupiter Ultra API](https:/
1010
- **Comprehensive Testing**: Safe testing with mock and real trade execution
1111
- **Type-Safe**: Full type annotations for Python
1212

13-
## ⚡ Quick Start (MCP Configuration)
13+
## 📋 Prerequisites
1414

1515
You need:
16-
- [uv](https://docs.astral.sh/uv/getting-started/installation/) -> Python dependency manager
17-
- [npx](https://docs.npmjs.com/cli/v10/commands/npx) (comes with Node.js) -> Used to run Node packages without installing them globally (temporarily used since cursor doesn't support )
16+
- [uv](https://docs.astral.sh/uv/getting-started/installation/) → Python dependency manager
17+
- [npx](https://docs.npmjs.com/cli/v10/commands/npx) (comes with Node.js) → Used to run envmcp for secure .env file loading
18+
19+
Once uv is installed, restart your shell before proceeding.
20+
21+
## 🚀 1-Click Install for Cursor
22+
23+
### Option 1: Using .env File (Recommended - More Secure)
24+
25+
<a href="cursor://anysphere.cursor-deeplink/mcp/install?name=jupiter-ultra-mcp-env&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyJlbnZtY3AiLCItLWVudi1maWxlIiwifi8uZW52IiwidXZ4IiwiLS1mcm9tIiwiZ2l0K2h0dHBzOi8vZ2l0aHViLmNvbS9hcmFhNDcvanVwaXRlci11bHRyYS1tY3AiLCJqdXBpdGVyLXVsdHJhLW1jcCJdfQ==">
26+
<img src="https://img.shields.io/badge/Install%20with%20.env%20File-00AAFF?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDJDNi40NzcgMiAyIDYuNDc3IDIgMTJDMiAxNy41MjMgNi40NzcgMjIgMTIgMjJDMTcuNTIzIDIyIDIyIDE3LjUyMyAyMiAxMkMyMiA2LjQ3NyAxNy41MjMgMiAxMiAyWiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTEwLjUgN0wxNC41IDE3SDE0TDEwIDE3VjEyTDkuNSA3SDEwLjVaIiBmaWxsPSIjMDBBQUZGIi8+Cjwvc3ZnPg==" alt="Install Jupiter Ultra MCP with .env file">
27+
</a>
28+
29+
**Click the button above to install.** After installation, you'll need to update the env file path:
30+
31+
1. **Create your `.env` file** at your preferred location (e.g., `~/.env`):
32+
```bash
33+
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
34+
PRIVATE_KEY=your_base58_encoded_private_key_here
35+
SOLANA_NETWORK=mainnet-beta
36+
REQUEST_TIMEOUT=30
37+
```
38+
39+
2. **Update the path in Cursor**:
40+
- Go to **Tools & Integrations** section in Cursor
41+
- Click on **MCP Tools**
42+
- Find **jupiter-ultra-mcp-env**
43+
- Hover near the on/off switch and click the **pencil icon** ✏️
44+
- Replace `~/.env` with your actual env file path (e.g., `/Users/yourname/.env`)
45+
- Click **Save**
1846

19-
Once uv is installed, restart your shell and add this to your MCP client configuration:
47+
Or copy this link:
48+
```
49+
cursor://anysphere.cursor-deeplink/mcp/install?name=jupiter-ultra-mcp-env&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyJlbnZtY3AiLCItLWVudi1maWxlIiwifi8uZW52IiwidXZ4IiwiLS1mcm9tIiwiZ2l0K2h0dHBzOi8vZ2l0aHViLmNvbS9hcmFhNDcvanVwaXRlci11bHRyYS1tY3AiLCJqdXBpdGVyLXVsdHJhLW1jcCJdfQ==
50+
```
51+
52+
### Option 2: With Cursor Input Prompts (Less Secure)
53+
54+
If you prefer to configure directly through Cursor prompts:
55+
56+
<a href="cursor://anysphere.cursor-deeplink/mcp/install?name=jupiter-ultra-mcp&config=eyJjb21tYW5kIjoidXZ4IiwiYXJncyI6WyItLWZyb20iLCJnaXQraHR0cHM6Ly9naXRodWIuY29tL2FyYWE0Ny9qdXBpdGVyLXVsdHJhLW1jcCIsImp1cGl0ZXItdWx0cmEtbWNwIl0sImVudiI6eyJQUklWQVRFX0tFWSI6IlJFUExBQ0VfVEhJUyIsIlNPTEFOQV9SUENfVVJMIjoiaHR0cHM6Ly9hcGkubWFpbm5ldC1iZXRhLnNvbGFuYS5jb20iLCJTT0xBTkFfTkVUV09SSyI6Im1haW5uZXQtYmV0YSIsIlJFUVVFU1RfVElNRU9VVCI6IjMwIn19">
57+
<img src="https://img.shields.io/badge/Install%20in%20Cursor-00AAFF?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDJDNi40NzcgMiAyIDYuNDc3IDIgMTJDMiAxNy41MjMgNi40NzcgMjIgMTIgMjJDMTcuNTIzIDIyIDIyIDE3LjUyMyAyMiAxMkMyMiA2LjQ3NyAxNy41MjMgMiAxMiAyWiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTEwLjUgN0wxNC41IDE3SDE0TDEwIDE3VjEyTDkuNSA3SDEwLjVaIiBmaWxsPSIjMDBBQUZGIi8+Cjwvc3ZnPg==" alt="Install Jupiter Ultra MCP in Cursor">
58+
</a>
59+
60+
**Click the button above to install.** You'll be prompted to replace `REPLACE_THIS` with your actual private key.
61+
62+
Or copy this link:
63+
```
64+
cursor://anysphere.cursor-deeplink/mcp/install?name=jupiter-ultra-mcp&config=eyJjb21tYW5kIjoidXZ4IiwiYXJncyI6WyItLWZyb20iLCJnaXQraHR0cHM6Ly9naXRodWIuY29tL2FyYWE0Ny9qdXBpdGVyLXVsdHJhLW1jcCIsImp1cGl0ZXItdWx0cmEtbWNwIl0sImVudiI6eyJQUklWQVRFX0tFWSI6IlJFUExBQ0VfVEhJUyIsIlNPTEFOQV9SUENfVVJMIjoiaHR0cHM6Ly9hcGkubWFpbm5ldC1iZXRhLnNvbGFuYS5jb20iLCJTT0xBTkFfTkVUV09SSyI6Im1haW5uZXQtYmV0YSIsIlJFUVVFU1RfVElNRU9VVCI6IjMwIn19
65+
```
66+
67+
**Pre-configured values:**
68+
- `SOLANA_RPC_URL`: https://api.mainnet-beta.solana.com
69+
- `SOLANA_NETWORK`: mainnet-beta
70+
- `REQUEST_TIMEOUT`: 30 seconds
71+
- `PRIVATE_KEY`: You'll need to replace `REPLACE_THIS` with your base58 encoded private key
72+
73+
## ⚡ Quick Start (MCP Configuration)
74+
75+
Add this to your MCP client configuration:
2076

2177
Cursor
2278
```json
@@ -52,20 +108,21 @@ If you prefer to load environment variables from a `.env` file to avoid storing
52108
"args": [
53109
"envmcp",
54110
"--env-file",
55-
".env",
111+
"${ENV_FILE_PATH}",
56112
"uvx",
57113
"--from",
58114
"git+https://github.com/araa47/jupiter-ultra-mcp",
59-
"jupiter-ultra-mcp",
60-
"$SOLANA_RPC_URL",
61-
"$PRIVATE_KEY"
62-
]
115+
"jupiter-ultra-mcp"
116+
],
117+
"env": {
118+
"ENV_FILE_PATH": ".env"
119+
}
63120
}
64121
}
65122
}
66123
```
67124

68-
This approach uses `envmcp` to securely load your PRIVATE_KEY from a `.env` file without exposing it in configuration files.
125+
This approach uses `envmcp` to securely load your PRIVATE_KEY from a `.env` file without exposing it in configuration files. Replace `ENV_FILE_PATH` with the absolute path to your `.env` file (e.g., `/Users/yourname/.env` or `/home/user/.env`).
69126

70127
### Environment Variables Required:
71128
- `PRIVATE_KEY`: Your base58 encoded Solana private key (from Phantom wallet export)

0 commit comments

Comments
 (0)