Skip to content

Commit f5ded1b

Browse files
committed
update new api
1 parent 8709ab5 commit f5ded1b

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

docs/agent-wordlift/integrations.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,40 @@ The WordLift CLI seamlessly integrates with modern development practices:
146146

147147
**API Integration:** Access the full WordLift Agent API capabilities through command-line interfaces.
148148

149+
#### Advanced CLI Configuration (Experimental)
150+
151+
For advanced users or programmatic setups, you can manually configure the CLI settings including header-based authorization.
152+
153+
:::warning
154+
Direct configuration modification is intended for advanced users. The API key must be manually edited in the configuration file as environment variables are not currently interpolated.
155+
:::
156+
157+
To edit the configuration, locate `settings.json` based on your installation:
158+
159+
```bash
160+
# If installed locally (git clone)
161+
vim .gemini/settings.json
162+
163+
# If installed globally via npm
164+
vim $(dirname $(which wordlift-cli))/../lib/node_modules/wordlift-cli/.gemini/settings.json
165+
```
166+
167+
A sample header-based authorization configuration looks like this:
168+
169+
```json
170+
{
171+
"Wordlift - via header auth": {
172+
"command": "npx",
173+
"args": [
174+
"mcp-remote",
175+
"https://mcp.wordlift.io/sse",
176+
"--header",
177+
"Authorization: Key YOUR_WORDLIFT_API_KEY_HERE"
178+
]
179+
}
180+
}
181+
```
182+
149183
Ready to supercharge your command-line SEO workflow? [Install WordLift CLI](https://www.npmjs.com/package/wordlift-cli) and bring Agent WordLift's power directly to your terminal!
150184

151185
---
@@ -193,6 +227,26 @@ Watch how Claude, integrated with WordLift via Model Context Protocol, analyzes
193227
}
194228
```
195229

230+
:::tip Advanced: Header-based Authorization
231+
For programmatic use or advanced configurations, you can provide the API key directly in the configuration using the `--header` flag:
232+
```json
233+
{
234+
"mcpServers": {
235+
"wordlift": {
236+
"command": "npx",
237+
"args": [
238+
"-y",
239+
"mcp-remote",
240+
"https://mcp.wordlift.io/sse",
241+
"--header",
242+
"Authorization: Key YOUR_WORDLIFT_API_KEY_HERE"
243+
]
244+
}
245+
}
246+
}
247+
```
248+
:::
249+
196250
**For Visual Studio:**
197251
1. Press CTRL/CMD+P and search for "MCP: Add Server"
198252
2. Select "Command (stdio)"

0 commit comments

Comments
 (0)