@lexq/cli 0.1.0 → 0.1.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 +58 -0
- package/dist/index.js +1016 -18
- package/dist/index.js.map +1 -1
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -148,6 +148,64 @@ pnpm lint # ESLint
|
|
|
148
148
|
bash tests/e2e.sh # E2E tests (requires API key)
|
|
149
149
|
```
|
|
150
150
|
|
|
151
|
+
## MCP Server Mode
|
|
152
|
+
|
|
153
|
+
Run LexQ CLI as an MCP (Model Context Protocol) server for seamless AI agent integration:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
lexq serve --mcp
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
This starts a stdio MCP server exposing 53 tools — the full LexQ API — to any MCP-compatible client.
|
|
160
|
+
|
|
161
|
+
### Claude Desktop
|
|
162
|
+
|
|
163
|
+
Add to `claude_desktop_config.json`:
|
|
164
|
+
|
|
165
|
+
```json
|
|
166
|
+
{
|
|
167
|
+
"mcpServers":{
|
|
168
|
+
"lexq":{
|
|
169
|
+
"command":"npx",
|
|
170
|
+
"args":[
|
|
171
|
+
"-y",
|
|
172
|
+
"@lexq/cli",
|
|
173
|
+
"serve",
|
|
174
|
+
"--mcp"
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### Claude.ai (Web)
|
|
182
|
+
|
|
183
|
+
Settings → MCP Servers → Add:
|
|
184
|
+
- Command: `npx`
|
|
185
|
+
- Args: `-y @lexq/cli serve --mcp`
|
|
186
|
+
|
|
187
|
+
### VS Code / Cursor
|
|
188
|
+
|
|
189
|
+
`.vscode/mcp.json`:
|
|
190
|
+
|
|
191
|
+
```json
|
|
192
|
+
{
|
|
193
|
+
"servers":{
|
|
194
|
+
"lexq":{
|
|
195
|
+
"command":"npx",
|
|
196
|
+
"args":[
|
|
197
|
+
"-y",
|
|
198
|
+
"@lexq/cli",
|
|
199
|
+
"serve",
|
|
200
|
+
"--mcp"
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
> **Prerequisite:** `lexq auth login` must have been run once to store an API key in `~/.lexq/config.json`.
|
|
208
|
+
|
|
151
209
|
## License
|
|
152
210
|
|
|
153
211
|
[Apache-2.0](LICENSE)
|