@motorical/mcp 1.0.3 → 1.0.5
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 +6 -11
- package/package.json +11 -3
- package/src/server.js +1 -1
package/README.md
CHANGED
|
@@ -46,30 +46,25 @@ Add to MCP config (e.g. Cursor Settings → MCP):
|
|
|
46
46
|
{
|
|
47
47
|
"mcpServers": {
|
|
48
48
|
"motorical": {
|
|
49
|
-
"command": "
|
|
50
|
-
"args": ["/
|
|
49
|
+
"command": "npx",
|
|
50
|
+
"args": ["-y", "@motorical/mcp"],
|
|
51
51
|
"env": {
|
|
52
52
|
"MOTORICAL_MK_API_KEY": "mk_live_…",
|
|
53
53
|
"MOTORICAL_AK_API_KEY": "ak_live_…",
|
|
54
54
|
"MOTORICAL_MOTOR_BLOCK_ID": "your-block-uuid",
|
|
55
|
-
"MOTORICAL_DEFAULT_FROM": "noreply@yourdomain.com"
|
|
55
|
+
"MOTORICAL_DEFAULT_FROM": "noreply@yourdomain.com",
|
|
56
|
+
"MOTORICAL_JWT": "optional-dashboard-jwt-for-sandbox-tools"
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
61
|
```
|
|
61
62
|
|
|
62
|
-
|
|
63
|
+
From a clone of this repo:
|
|
63
64
|
|
|
64
65
|
```bash
|
|
65
66
|
cd packages/motorical-mcp && npm ci
|
|
66
|
-
# point args at
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
Or via npx once published:
|
|
70
|
-
|
|
71
|
-
```json
|
|
72
|
-
"args": ["-y", "@motorical/mcp"]
|
|
67
|
+
# point command/args at node + absolute path to src/index.js
|
|
73
68
|
```
|
|
74
69
|
|
|
75
70
|
## Develop / test
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@motorical/mcp",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "MCP server for Motorical transactional email API
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"description": "MCP server for Motorical transactional email API \u2014 dry-run/send, mint public tokens, list Motor Blocks, inspect delivery events",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"motorical-mcp": "./src/index.js"
|
|
@@ -40,5 +40,13 @@
|
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"homepage": "https://docs.motorical.com/ai-mcp"
|
|
43
|
+
"homepage": "https://docs.motorical.com/ai-mcp",
|
|
44
|
+
"bugs": {
|
|
45
|
+
"url": "https://github.com/motorical-smtp/motorical-packages/issues"
|
|
46
|
+
},
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "git+https://github.com/motorical-smtp/motorical-packages.git",
|
|
50
|
+
"directory": "packages/motorical-mcp"
|
|
51
|
+
}
|
|
44
52
|
}
|
package/src/server.js
CHANGED
|
@@ -2,7 +2,7 @@ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { MotoricalClient, loadConfig } from './client.js';
|
|
4
4
|
|
|
5
|
-
const PACKAGE_VERSION = '1.0.
|
|
5
|
+
const PACKAGE_VERSION = '1.0.5';
|
|
6
6
|
|
|
7
7
|
function jsonResult(data, { isError = false } = {}) {
|
|
8
8
|
return {
|