@ada-mcp/mcp-server 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 +23 -6
- package/dist/cli.cjs +0 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -6,17 +6,34 @@ ADA MCP server package that supports:
|
|
|
6
6
|
- Remote HTTP mode (`server`) with API key authentication
|
|
7
7
|
- MCP **Streamable HTTP** on `POST|GET|DELETE /mcp` (same port as legacy REST), with optional SSE per MCP spec (`@modelcontextprotocol/sdk` transport)
|
|
8
8
|
|
|
9
|
-
## Run with
|
|
9
|
+
## Run with pnpm(推荐,尤其 Windows)
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
|
|
12
|
+
pnpm dlx @ada-mcp/mcp-server
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
+
也可用 npm:
|
|
16
|
+
|
|
15
17
|
```bash
|
|
16
|
-
|
|
18
|
+
npx -y @ada-mcp/mcp-server
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Cursor MCP 配置(本地 stdio)
|
|
22
|
+
|
|
23
|
+
**推荐(pnpm):**
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"mcpServers": {
|
|
28
|
+
"ada-mcp": {
|
|
29
|
+
"command": "pnpm",
|
|
30
|
+
"args": ["dlx", "@ada-mcp/mcp-server"]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
17
34
|
```
|
|
18
35
|
|
|
19
|
-
|
|
36
|
+
Windows 若找不到 `pnpm`,可写完整路径,例如 `C:\\Users\\<你>\\AppData\\Roaming\\npm\\pnpm.cmd`,或改用 npx:
|
|
20
37
|
|
|
21
38
|
```json
|
|
22
39
|
{
|
|
@@ -46,7 +63,7 @@ $env:ADA_MCP_REMOTE_API_KEY="your_token"
|
|
|
46
63
|
Then run:
|
|
47
64
|
|
|
48
65
|
```bash
|
|
49
|
-
ada-mcp server --host=127.0.0.1 --port=8787 --allow-risky=true --risky-mode=whitelist --risky-commands=custom
|
|
66
|
+
pnpm dlx @ada-mcp/mcp-server server --host=127.0.0.1 --port=8787 --allow-risky=true --risky-mode=whitelist --risky-commands=custom
|
|
50
67
|
```
|
|
51
68
|
|
|
52
69
|
### Streamable HTTP (`/mcp`)
|
|
@@ -59,5 +76,5 @@ ada-mcp server --host=127.0.0.1 --port=8787 --allow-risky=true --risky-mode=whit
|
|
|
59
76
|
When listening on all interfaces (e.g. `--host=0.0.0.0`), set allowed Host headers to satisfy DNS rebinding checks:
|
|
60
77
|
|
|
61
78
|
```bash
|
|
62
|
-
ada-mcp server --host=0.0.0.0 --port=8787 --api-key=your_token --allowed-hosts=localhost,127.0.0.1
|
|
79
|
+
pnpm dlx @ada-mcp/mcp-server server --host=0.0.0.0 --port=8787 --api-key=your_token --allowed-hosts=localhost,127.0.0.1
|
|
63
80
|
```
|
package/dist/cli.cjs
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ada-mcp/mcp-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "ADA MCP server for web/mobile automation (stdio + remote HTTP)",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"main": "./dist/cli.cjs",
|
|
8
8
|
"bin": {
|
|
9
|
+
"mcp-server": "./dist/cli.cjs",
|
|
9
10
|
"ada-mcp": "./dist/cli.cjs"
|
|
10
11
|
},
|
|
11
12
|
"files": [
|