@timmeck/marketing-brain 0.5.1 → 0.5.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 +47 -27
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@timmeck/marketing-brain)
|
|
4
4
|
[](https://www.npmjs.com/package/@timmeck/marketing-brain)
|
|
5
5
|
[](LICENSE)
|
|
6
|
-
[](https://github.com/timmeck/brain-ecosystem)
|
|
7
7
|
|
|
8
8
|
**Self-Learning Marketing Intelligence System for Claude Code**
|
|
9
9
|
|
|
@@ -76,10 +76,16 @@ Without Marketing Brain, your marketing knowledge lives in your head. With it:
|
|
|
76
76
|
### Installation
|
|
77
77
|
|
|
78
78
|
```bash
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
npm install -g @timmeck/marketing-brain
|
|
80
|
+
marketing setup
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
That's it. One command configures MCP and starts the daemon.
|
|
84
|
+
|
|
85
|
+
Or install globally and configure manually:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
npm install -g @timmeck/marketing-brain
|
|
83
89
|
```
|
|
84
90
|
|
|
85
91
|
### Setup with Claude Code
|
|
@@ -90,14 +96,27 @@ Add to `~/.claude/settings.json`:
|
|
|
90
96
|
{
|
|
91
97
|
"mcpServers": {
|
|
92
98
|
"marketing-brain": {
|
|
93
|
-
"command": "
|
|
94
|
-
"args": ["
|
|
95
|
-
"cwd": "C:/path/to/marketing-brain"
|
|
99
|
+
"command": "marketing",
|
|
100
|
+
"args": ["mcp-server"]
|
|
96
101
|
}
|
|
97
102
|
}
|
|
98
103
|
}
|
|
99
104
|
```
|
|
100
105
|
|
|
106
|
+
### Setup with Cursor / Windsurf / Cline / Continue
|
|
107
|
+
|
|
108
|
+
Marketing Brain supports MCP over HTTP with SSE transport:
|
|
109
|
+
|
|
110
|
+
```json
|
|
111
|
+
{
|
|
112
|
+
"marketing-brain": {
|
|
113
|
+
"url": "http://localhost:7782/sse"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Make sure the daemon is running (`marketing start`).
|
|
119
|
+
|
|
101
120
|
### Start the Daemon
|
|
102
121
|
|
|
103
122
|
```bash
|
|
@@ -110,6 +129,7 @@ marketing doctor # verify everything works (5/5 green)
|
|
|
110
129
|
|
|
111
130
|
### Daemon Management
|
|
112
131
|
```
|
|
132
|
+
marketing setup One-command setup: MCP + daemon
|
|
113
133
|
marketing start Start the daemon
|
|
114
134
|
marketing stop Stop the daemon
|
|
115
135
|
marketing status Show stats (posts, campaigns, synapses, insights)
|
|
@@ -255,18 +275,18 @@ Features:
|
|
|
255
275
|
## Architecture
|
|
256
276
|
|
|
257
277
|
```
|
|
258
|
-
+------------------+ +------------------+ +------------------+
|
|
259
|
-
| Claude Code | | Browser/CI/CD | | Dashboard |
|
|
260
|
-
| (MCP stdio) | | (REST API) | | (SSE live) |
|
|
261
|
-
+--------+---------+ +--------+---------+ +--------+---------+
|
|
262
|
-
| | |
|
|
263
|
-
v v v
|
|
264
|
-
+--------+---------+ +--------+---------+ +--------+---------+
|
|
265
|
-
| MCP Server | | REST API | | Dashboard Server |
|
|
266
|
-
| (stdio) | | (port 7781) | | (port 7783) |
|
|
267
|
-
+--------+---------+ +--------+---------+ +--------+---------+
|
|
278
|
+
+------------------+ +------------------+ +------------------+ +------------------+
|
|
279
|
+
| Claude Code | | Cursor/Windsurf | | Browser/CI/CD | | Dashboard |
|
|
280
|
+
| (MCP stdio) | | (MCP HTTP/SSE) | | (REST API) | | (SSE live) |
|
|
281
|
+
+--------+---------+ +--------+---------+ +--------+---------+ +--------+---------+
|
|
282
|
+
| | | |
|
|
283
|
+
v v v v
|
|
284
|
+
+--------+---------+ +--------+---------+ +--------+---------+ +--------+---------+
|
|
285
|
+
| MCP Server | | MCP HTTP/SSE | | REST API | | Dashboard Server |
|
|
286
|
+
| (stdio) | | (port 7782) | | (port 7781) | | (port 7783) |
|
|
287
|
+
+--------+---------+ +--------+---------+ +--------+---------+ +--------+---------+
|
|
268
288
|
| | |
|
|
269
|
-
|
|
289
|
+
+----------+-------------+----------+-------------+----------+
|
|
270
290
|
|
|
|
271
291
|
v
|
|
272
292
|
+----------+-----------+
|
|
@@ -357,24 +377,24 @@ marketing config delete learning.intervalMs
|
|
|
357
377
|
|
|
358
378
|
- **TypeScript** — Full type safety, ES2022, ESM modules
|
|
359
379
|
- **better-sqlite3** — Embedded SQLite with WAL mode
|
|
360
|
-
- **MCP SDK** — Model Context Protocol integration (stdio
|
|
380
|
+
- **MCP SDK** — Model Context Protocol integration (stdio + HTTP/SSE transports)
|
|
361
381
|
- **Commander** — CLI framework
|
|
362
382
|
- **Chalk** — Colored terminal output
|
|
363
383
|
- **Winston** — Structured logging
|
|
364
384
|
|
|
365
385
|
## Brain Ecosystem
|
|
366
386
|
|
|
367
|
-
Marketing Brain is part of the **Brain Ecosystem** — a
|
|
387
|
+
Marketing Brain is part of the **[Brain Ecosystem](https://github.com/timmeck/brain-ecosystem)** — a monorepo of MCP servers that give Claude Code persistent, self-learning memory.
|
|
368
388
|
|
|
369
389
|
| Brain | Purpose | Ports |
|
|
370
390
|
|-------|---------|-------|
|
|
371
|
-
| [Brain](https://github.com/timmeck/brain) v2.2.
|
|
372
|
-
| [Trading Brain](https://github.com/timmeck/trading-brain) v1.3.
|
|
373
|
-
| **Marketing Brain** v0.5.
|
|
374
|
-
| [Brain Core](https://github.com/timmeck/brain-core) v1.6.
|
|
391
|
+
| [Brain](https://github.com/timmeck/brain-ecosystem/tree/main/packages/brain) v2.2.1 | Error memory, code intelligence & persistent context | 7777 / 7778 |
|
|
392
|
+
| [Trading Brain](https://github.com/timmeck/brain-ecosystem/tree/main/packages/trading-brain) v1.3.2 | Adaptive trading intelligence with memory & sessions | 7779 / 7780 |
|
|
393
|
+
| **Marketing Brain** v0.5.2 | Content strategy & engagement with memory & sessions | **7781** / 7782 / 7783 |
|
|
394
|
+
| [Brain Core](https://github.com/timmeck/brain-ecosystem/tree/main/packages/brain-core) v1.6.1 | Shared infrastructure (IPC, MCP, REST, CLI, math, synapses, memory) | — |
|
|
375
395
|
| [Brain Hub](https://timmeck.github.io/brain-hub/) | Ecosystem landing page | — |
|
|
376
396
|
|
|
377
|
-
|
|
397
|
+
All packages live in the [brain-ecosystem](https://github.com/timmeck/brain-ecosystem) monorepo with npm workspaces. [Brain Core](https://www.npmjs.com/package/@timmeck/brain-core) provides shared infrastructure (IPC, MCP, REST API, CLI, math, synapse algorithms) used by all brains, eliminating ~2,800 lines of duplicated code.
|
|
378
398
|
|
|
379
399
|
### Cross-Brain Communication
|
|
380
400
|
|
|
@@ -388,7 +408,7 @@ The interactive HTML dashboard (`marketing dashboard`) includes an Ecosystem Pee
|
|
|
388
408
|
|
|
389
409
|
If Marketing Brain helps you, consider giving it a star — it helps others discover the project and keeps development going.
|
|
390
410
|
|
|
391
|
-
[](https://github.com/timmeck/brain-ecosystem)
|
|
392
412
|
[](https://github.com/sponsors/timmeck)
|
|
393
413
|
|
|
394
414
|
## License
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@timmeck/marketing-brain",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Self-learning marketing intelligence system with Hebbian synapse network",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "tsc",
|
|
12
12
|
"dev": "tsx src/index.ts",
|
|
13
|
-
"test": "vitest",
|
|
13
|
+
"test": "vitest run",
|
|
14
14
|
"lint": "eslint src/",
|
|
15
15
|
"lint:fix": "eslint src/ --fix",
|
|
16
16
|
"test:coverage": "vitest --coverage"
|
|
@@ -35,11 +35,12 @@
|
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"repository": {
|
|
37
37
|
"type": "git",
|
|
38
|
-
"url": "https://github.com/timmeck/
|
|
38
|
+
"url": "https://github.com/timmeck/brain-ecosystem",
|
|
39
|
+
"directory": "packages/marketing-brain"
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {
|
|
41
42
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
42
|
-
"@timmeck/brain-core": "
|
|
43
|
+
"@timmeck/brain-core": "*",
|
|
43
44
|
"better-sqlite3": "^11.7.0",
|
|
44
45
|
"chalk": "^5.6.2",
|
|
45
46
|
"commander": "^13.0.0",
|