@magnetlab/mcp 0.1.0 → 0.1.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 +8 -8
- package/dist/client.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @magnetlab/mcp
|
|
2
2
|
|
|
3
|
-
MCP server for [MagnetLab](https://magnetlab.
|
|
3
|
+
MCP server for [MagnetLab](https://magnetlab.app) -- control your lead magnets, funnels, content pipeline, and analytics from Claude Code or Claude Desktop.
|
|
4
4
|
|
|
5
5
|
## Quick Setup
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ Add to your project's `.mcp.json`:
|
|
|
13
13
|
"mcpServers": {
|
|
14
14
|
"magnetlab": {
|
|
15
15
|
"command": "npx",
|
|
16
|
-
"args": ["-y", "@magnetlab/mcp", "serve"],
|
|
16
|
+
"args": ["-y", "--package", "@magnetlab/mcp", "magnetlab-mcp", "serve"],
|
|
17
17
|
"env": {
|
|
18
18
|
"MAGNETLAB_API_KEY": "ml_live_your_key_here"
|
|
19
19
|
}
|
|
@@ -31,7 +31,7 @@ Add to your `claude_desktop_config.json`:
|
|
|
31
31
|
"mcpServers": {
|
|
32
32
|
"magnetlab": {
|
|
33
33
|
"command": "npx",
|
|
34
|
-
"args": ["-y", "@magnetlab/mcp", "serve"],
|
|
34
|
+
"args": ["-y", "--package", "@magnetlab/mcp", "magnetlab-mcp", "serve"],
|
|
35
35
|
"env": {
|
|
36
36
|
"MAGNETLAB_API_KEY": "ml_live_your_key_here"
|
|
37
37
|
}
|
|
@@ -42,7 +42,7 @@ Add to your `claude_desktop_config.json`:
|
|
|
42
42
|
|
|
43
43
|
## Getting Your API Key
|
|
44
44
|
|
|
45
|
-
1. Log in to [MagnetLab](https://magnetlab.
|
|
45
|
+
1. Log in to [MagnetLab](https://magnetlab.app)
|
|
46
46
|
2. Go to **Settings > API Keys**
|
|
47
47
|
3. Click **Create API Key**
|
|
48
48
|
4. Copy the key (starts with `ml_live_`)
|
|
@@ -69,7 +69,7 @@ Add to your `claude_desktop_config.json`:
|
|
|
69
69
|
| Variable | Required | Description |
|
|
70
70
|
|----------|----------|-------------|
|
|
71
71
|
| `MAGNETLAB_API_KEY` | Yes | Your MagnetLab API key (starts with `ml_live_`) |
|
|
72
|
-
| `MAGNETLAB_BASE_URL` | No | Override the API base URL (default: `https://magnetlab.
|
|
72
|
+
| `MAGNETLAB_BASE_URL` | No | Override the API base URL (default: `https://magnetlab.app`) |
|
|
73
73
|
|
|
74
74
|
## CLI Usage
|
|
75
75
|
|
|
@@ -77,13 +77,13 @@ Start the MCP server (stdio transport):
|
|
|
77
77
|
|
|
78
78
|
```bash
|
|
79
79
|
# Using environment variable
|
|
80
|
-
MAGNETLAB_API_KEY=ml_live_xxx npx @magnetlab/mcp serve
|
|
80
|
+
MAGNETLAB_API_KEY=ml_live_xxx npx --package @magnetlab/mcp magnetlab-mcp serve
|
|
81
81
|
|
|
82
82
|
# Using --api-key flag
|
|
83
|
-
npx @magnetlab/mcp serve --api-key ml_live_xxx
|
|
83
|
+
npx --package @magnetlab/mcp magnetlab-mcp serve --api-key ml_live_xxx
|
|
84
84
|
|
|
85
85
|
# With custom base URL
|
|
86
|
-
npx @magnetlab/mcp serve --base-url http://localhost:3000
|
|
86
|
+
npx --package @magnetlab/mcp magnetlab-mcp serve --base-url http://localhost:3000
|
|
87
87
|
```
|
|
88
88
|
|
|
89
89
|
## Example Prompts
|
package/dist/client.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magnetlab/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "MCP server for MagnetLab - control your lead magnets, funnels, content pipeline, and analytics from Claude Code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"url": "https://github.com/modernagencysales/magnetlab",
|
|
37
37
|
"directory": "packages/mcp"
|
|
38
38
|
},
|
|
39
|
-
"homepage": "https://magnetlab.
|
|
39
|
+
"homepage": "https://magnetlab.app",
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
42
42
|
"commander": "^12.0.0",
|