@@ -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 )
4141levante://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