panelica-mcp 0.2.0 → 0.2.2
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 +31 -0
- package/dist/index.js +2 -2
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
> service through Claude Desktop, Cursor, ChatGPT, or any other
|
|
6
6
|
> [Model Context Protocol](https://modelcontextprotocol.io) client.
|
|
7
7
|
|
|
8
|
+
[](https://www.npmjs.com/package/panelica-mcp)
|
|
8
9
|
[](tools/tools.json)
|
|
9
10
|
[](#permission-scopes)
|
|
10
11
|
[](https://github.com/Panelica/panelica-mcp/pkgs/container/panelica-mcp)
|
|
@@ -29,8 +30,10 @@ SSL, email, MySQL, FTP, security, backups, server resources, and more.
|
|
|
29
30
|
- [2. Generate an API key in the panel](#2-generate-an-api-key-in-the-panel)
|
|
30
31
|
- [3. Verify the credentials with curl](#3-verify-the-credentials-with-curl)
|
|
31
32
|
- [Wire it into your MCP client](#wire-it-into-your-mcp-client)
|
|
33
|
+
- [Claude Code (one command)](#claude-code-one-command)
|
|
32
34
|
- [Claude Desktop](#claude-desktop)
|
|
33
35
|
- [Cursor](#cursor)
|
|
36
|
+
- [OpenAI Codex CLI](#openai-codex-cli)
|
|
34
37
|
- [Continue.dev, Cline, Zed](#continuedev-cline-zed)
|
|
35
38
|
- [Generic stdio client](#generic-stdio-client)
|
|
36
39
|
- [Tool catalogue](#tool-catalogue)
|
|
@@ -247,6 +250,19 @@ You should get back JSON listing your API keys. Common 401 responses:
|
|
|
247
250
|
|
|
248
251
|
## Wire it into your MCP client
|
|
249
252
|
|
|
253
|
+
### Claude Code (one command)
|
|
254
|
+
|
|
255
|
+
```bash
|
|
256
|
+
claude mcp add panelica \
|
|
257
|
+
-e PANELICA_BASE_URL=https://your-panel:8443/api/external \
|
|
258
|
+
-e PANELICA_API_KEY=pk_... \
|
|
259
|
+
-e PANELICA_API_SECRET=sk_... \
|
|
260
|
+
-- npx -y panelica-mcp
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
That's it — ask Claude Code to "list my domains" or "create a database for
|
|
264
|
+
example.com" and it will drive the panel through the scoped API key.
|
|
265
|
+
|
|
250
266
|
### Claude Desktop
|
|
251
267
|
|
|
252
268
|
Edit your Claude Desktop config:
|
|
@@ -293,6 +309,21 @@ In **Settings → MCP → Add new server**:
|
|
|
293
309
|
}
|
|
294
310
|
```
|
|
295
311
|
|
|
312
|
+
### OpenAI Codex CLI
|
|
313
|
+
|
|
314
|
+
Add to `~/.codex/config.toml`:
|
|
315
|
+
|
|
316
|
+
```toml
|
|
317
|
+
[mcp_servers.panelica]
|
|
318
|
+
command = "npx"
|
|
319
|
+
args = ["-y", "panelica-mcp"]
|
|
320
|
+
|
|
321
|
+
[mcp_servers.panelica.env]
|
|
322
|
+
PANELICA_BASE_URL = "https://your-panel:8443/api/external"
|
|
323
|
+
PANELICA_API_KEY = "pk_..."
|
|
324
|
+
PANELICA_API_SECRET = "sk_..."
|
|
325
|
+
```
|
|
326
|
+
|
|
296
327
|
### Continue.dev, Cline, Zed
|
|
297
328
|
|
|
298
329
|
Any MCP-aware editor that accepts a stdio command works the same way — give it
|
package/dist/index.js
CHANGED
|
@@ -84,7 +84,7 @@ async function callPanelica(tool, args) {
|
|
|
84
84
|
"X-Timestamp": timestamp,
|
|
85
85
|
"X-Signature": signature,
|
|
86
86
|
"Accept": "application/json",
|
|
87
|
-
"User-Agent": "panelica-mcp/0.2.
|
|
87
|
+
"User-Agent": "panelica-mcp/0.2.2",
|
|
88
88
|
};
|
|
89
89
|
if (bodyString)
|
|
90
90
|
headers["Content-Type"] = "application/json";
|
|
@@ -112,7 +112,7 @@ async function callPanelica(tool, args) {
|
|
|
112
112
|
}
|
|
113
113
|
return text;
|
|
114
114
|
}
|
|
115
|
-
const server = new Server({ name: "panelica-mcp", version: "0.2.
|
|
115
|
+
const server = new Server({ name: "panelica-mcp", version: "0.2.2" }, { capabilities: { tools: {} } });
|
|
116
116
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
117
117
|
tools: tools.map(t => ({
|
|
118
118
|
name: t.name,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "panelica-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "MCP server exposing the Panelica hosting panel External API to AI assistants. Manage accounts, domains, databases, email, DNS, SSL, FTP, security, and server resources through natural language.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -50,5 +50,6 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/node": "^22.10.0",
|
|
52
52
|
"typescript": "^5.6.3"
|
|
53
|
-
}
|
|
53
|
+
},
|
|
54
|
+
"mcpName": "io.github.Panelica/panelica-mcp"
|
|
54
55
|
}
|