Skip to content

Commit 7b1f4c7

Browse files
authored
Merge pull request #129 from levante-hub/develop
Release v1.5.0-beta.1
2 parents 8d87f72 + 7a22eb9 commit 7b1f4c7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+5330
-3028
lines changed

.claude/settings.local.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
"time"
3434
],
3535
"enableAllProjectMcpServers": true
36-
}
36+
}

.env.example

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ ANTHROPIC_API_KEY=sk-ant-your-anthropic-api-key-here
1111
GOOGLE_GENERATIVE_AI_API_KEY=your-google-ai-api-key-here
1212

1313
# Development settings
14-
NODE_ENV=development
14+
NODE_ENV=development
15+
16+
# Levante Services Host (optional, defaults to https://services.levanteapp.com)
17+
# Override for local development:
18+
# LEVANTE_SERVICES_HOST=http://localhost:5180

docs/DEEP_LINKING.md

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ levante://mcp/add?name=<server-name>&transport=<server-transport>&<config-params
3737
**Examples**:
3838

3939
```bash
40-
# Add stdio MCP server (single package argument)
40+
# Add stdio MCP server (no environment variables)
4141
levante://mcp/add?name=Memory%20Server&transport=stdio&command=npx&args=@modelcontextprotocol/server-memory
4242

43-
# Add stdio MCP server (multiple arguments)
44-
levante://mcp/add?name=Custom%20Server&transport=stdio&command=node&args=server.js,--port,3000
43+
# Add stdio MCP server with environment variables (requires user input)
44+
levante://mcp/add?name=GitHub%20Server&transport=stdio&command=npx&args=-y,@modelcontextprotocol/server-github&env=%7B%22GITHUB_PERSONAL_ACCESS_TOKEN%22%3A%22%24%7BGITHUB_PERSONAL_ACCESS_TOKEN%7D%22%7D
4545

46-
# Add HTTP MCP server
47-
levante://mcp/add?name=Custom%20Server&transport=http&url=http://localhost:3000
46+
# Add HTTP MCP server with Bearer token placeholder
47+
levante://mcp/add?name=Custom%20API&transport=http&url=https://api.example.com&headers=%7B%22Authorization%22%3A%22Bearer%20%24%7BAPI_TOKEN%7D%22%7D
4848

49-
# Add SSE MCP server with headers
50-
levante://mcp/add?name=Secure%20Server&transport=sse&url=https://api.example.com&headers=%7B%22Authorization%22%3A%22Bearer%20token%22%7D
49+
# Add SSE MCP server with multiple env variables
50+
levante://mcp/add?name=Database%20Server&transport=sse&url=https://db.example.com&env=%7B%22DB_HOST%22%3A%22%24%7BDB_HOST%7D%22%2C%22DB_PASSWORD%22%3A%22%24%7BDB_PASSWORD%7D%22%7D
5151
```
5252

5353
**Behavior**:
@@ -74,6 +74,38 @@ levante://mcp/add?name=Secure%20Server&transport=sse&url=https://api.example.com
7474
- 🔴 Unknown Source: Unverified sources
7575
- **Test Mode**: Option to add servers as disabled for safe testing
7676

77+
**Environment Variable Placeholders:**
78+
79+
Deep links support placeholder syntax for environment variables that need user input:
80+
81+
1. **Placeholder Format**: `${VARIABLE_NAME}`
82+
- Variable names must be uppercase with underscores
83+
- Examples: `${API_KEY}`, `${GITHUB_TOKEN}`, `${DATABASE_URL}`
84+
85+
2. **Detection**: Levante automatically detects placeholders and prompts for values
86+
- If placeholders are found, an input dialog appears before installation
87+
- User must provide values for all required placeholders
88+
89+
3. **Field Type Detection**:
90+
- Variables with `PASSWORD`, `SECRET`, `TOKEN`, or `KEY` in the name → password field (hidden input)
91+
- Other variables → text field (visible input)
92+
93+
4. **Example with env parameter**:
94+
```json
95+
{
96+
"API_KEY": "${API_KEY}",
97+
"DATABASE_URL": "${DATABASE_URL}",
98+
"SECRET_TOKEN": "${SECRET_TOKEN}"
99+
}
100+
```
101+
102+
When URL-encoded:
103+
```
104+
env=%7B%22API_KEY%22%3A%22%24%7BAPI_KEY%7D%22%2C%22DATABASE_URL%22%3A%22%24%7BDATABASE_URL%7D%22%7D
105+
```
106+
107+
5. **Replacement**: Placeholders are replaced with user-provided values before saving the configuration
108+
77109
---
78110

79111
### 2. Create New Chat with Auto-Send

0 commit comments

Comments
 (0)