@socialneuron/mcp-server 1.5.2 → 1.6.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/CHANGELOG.md +39 -0
- package/README.md +62 -13
- package/dist/http.js +1015 -13
- package/dist/index.js +11 -18
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,45 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@socialneuron/mcp-server` will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.6.1] - 2026-03-22
|
|
6
|
+
|
|
7
|
+
### Security
|
|
8
|
+
- **Explicit body size limit**: `express.json({ limit: '50kb' })` prevents DoS via oversized payloads.
|
|
9
|
+
- **Error message sanitization**: MCP POST catch block now uses `sanitizeError()` — no more internal paths or table names in error responses.
|
|
10
|
+
- **PII removal**: Removed `email` from API key validation chain (7 files). Key validation no longer exposes user email addresses.
|
|
11
|
+
- **Generation rate limiting**: Added explicit `generation` category at 20 req/min (previously fell back to `read` at 60/min).
|
|
12
|
+
- **npm provenance**: Added `--provenance` flag and `id-token: write` permission to release workflow for supply chain verification.
|
|
13
|
+
- **Security comment**: Documented that Edge Functions must not trust `x-internal-worker-call` header without Bearer token verification.
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
- **hono prototype pollution**: Updated transitive dependency to fix GHSA-v8w9-8mx6-g223.
|
|
17
|
+
- `npm audit` now reports 0 vulnerabilities.
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
- 18 examples (8 REST curl, 5 TypeScript SDK, 4 CLI, 1 MCP prompts).
|
|
21
|
+
- TypeScript SDK package (`packages/sdk/`) with 9 resource classes.
|
|
22
|
+
- CLI tab completion and content generation commands.
|
|
23
|
+
- SDK documentation and release workflow.
|
|
24
|
+
|
|
25
|
+
## [1.6.0] - 2026-03-21
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
- **REST API layer**: Universal tool proxy at `POST /v1/tools/:name` — call any of the 52 MCP tools via standard HTTP REST. No MCP client required.
|
|
29
|
+
- **OpenAPI 3.1 spec**: Auto-generated from TOOL_CATALOG at `/openapi.json` — always in sync with tools.
|
|
30
|
+
- **15 convenience endpoints**: Resource-oriented routes for common operations (`/v1/credits`, `/v1/content/generate`, `/v1/posts`, etc.).
|
|
31
|
+
- **Express HTTP transport**: New `dist/http.js` entry point for running as a standalone REST API server.
|
|
32
|
+
- **MCP Registry metadata**: `server.json` with mcpName, endpoints, env, and auth configuration for registry discovery.
|
|
33
|
+
- **Cursor Directory manifest**: Plugin manifest for Cursor IDE integration.
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
- **TS2345**: Cast Express route param to string for strict TypeScript compatibility.
|
|
37
|
+
- **npm publish 404**: Removed `--provenance` flag from release workflow (incompatible with scoped packages on granular tokens).
|
|
38
|
+
|
|
39
|
+
### Changed
|
|
40
|
+
- Dual transport support: MCP (stdio) and HTTP (Express) from a single codebase.
|
|
41
|
+
- SECURITY.md updated with v1.6.x in supported versions.
|
|
42
|
+
- `docs/auth.md` domain reference corrected (`www.socialneuron.com` → `socialneuron.com`).
|
|
43
|
+
|
|
5
44
|
## [1.5.2] - 2026-03-20
|
|
6
45
|
|
|
7
46
|
### Added
|
package/README.md
CHANGED
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
# @socialneuron/mcp-server
|
|
2
2
|
|
|
3
|
-
> 52
|
|
3
|
+
> 52 tools for AI-powered social media management. MCP, REST API, CLI — create content, schedule posts, track analytics, and optimize performance.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@socialneuron/mcp-server)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
7
|
|
|
8
|
+
## Integration Methods
|
|
9
|
+
|
|
10
|
+
| Method | Best For | Docs |
|
|
11
|
+
|--------|----------|------|
|
|
12
|
+
| **MCP** | AI agents (Claude, Cursor, VS Code) | [Setup](#quick-start) |
|
|
13
|
+
| **REST API** | Any HTTP client, webhooks, Zapier | [Guide](docs/rest-api.md) |
|
|
14
|
+
| **CLI** | Terminal, CI/CD pipelines | [Guide](docs/cli-guide.md) |
|
|
15
|
+
| **SDK** | TypeScript/Node.js apps | Coming Q2 2026 |
|
|
16
|
+
|
|
17
|
+
All methods share the same 52 tools, auth, scopes, and credit system. [Compare methods](docs/integration-methods.md).
|
|
18
|
+
|
|
8
19
|
## Quick Start
|
|
9
20
|
|
|
10
|
-
###
|
|
21
|
+
### MCP (AI Agents)
|
|
22
|
+
|
|
23
|
+
#### 1. Authenticate
|
|
11
24
|
|
|
12
25
|
```bash
|
|
13
26
|
npx -y @socialneuron/mcp-server login --device
|
|
@@ -15,7 +28,7 @@ npx -y @socialneuron/mcp-server login --device
|
|
|
15
28
|
|
|
16
29
|
This opens your browser to authorize access. Requires a paid Social Neuron plan (Starter or above). See [pricing](https://socialneuron.com/pricing).
|
|
17
30
|
|
|
18
|
-
|
|
31
|
+
#### 2. Add to Claude Code
|
|
19
32
|
|
|
20
33
|
```bash
|
|
21
34
|
claude mcp add socialneuron -- npx -y @socialneuron/mcp-server
|
|
@@ -76,10 +89,42 @@ Add to `.cursor/mcp.json` in your workspace:
|
|
|
76
89
|
```
|
|
77
90
|
</details>
|
|
78
91
|
|
|
79
|
-
|
|
92
|
+
#### 3. Start using
|
|
80
93
|
|
|
81
94
|
Ask Claude: "What content should I post this week?" or "Schedule my latest video to YouTube and TikTok"
|
|
82
95
|
|
|
96
|
+
### REST API (Any Language)
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
# Check credits
|
|
100
|
+
curl -H "Authorization: Bearer snk_live_..." \
|
|
101
|
+
https://mcp.socialneuron.com/v1/credits
|
|
102
|
+
|
|
103
|
+
# Generate content
|
|
104
|
+
curl -X POST -H "Authorization: Bearer snk_live_..." \
|
|
105
|
+
-H "Content-Type: application/json" \
|
|
106
|
+
-d '{"topic": "AI trends", "platforms": ["linkedin"]}' \
|
|
107
|
+
https://mcp.socialneuron.com/v1/content/generate
|
|
108
|
+
|
|
109
|
+
# Execute any tool via proxy
|
|
110
|
+
curl -X POST -H "Authorization: Bearer snk_live_..." \
|
|
111
|
+
-H "Content-Type: application/json" \
|
|
112
|
+
-d '{"response_format": "json"}' \
|
|
113
|
+
https://mcp.socialneuron.com/v1/tools/get_brand_profile
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
See [REST API docs](docs/rest-api.md) | [OpenAPI spec](https://mcp.socialneuron.com/v1/openapi.json) | [Examples](examples/rest/)
|
|
117
|
+
|
|
118
|
+
### CLI (Terminal & CI/CD)
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
npx @socialneuron/mcp-server sn system credits --json
|
|
122
|
+
npx @socialneuron/mcp-server sn analytics loop --json
|
|
123
|
+
npx @socialneuron/mcp-server sn discovery tools --module content
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
See [CLI guide](docs/cli-guide.md) | [Examples](examples/cli/)
|
|
127
|
+
|
|
83
128
|
## What You Can Do
|
|
84
129
|
|
|
85
130
|
Ask Claude things like:
|
|
@@ -94,7 +139,7 @@ Ask Claude things like:
|
|
|
94
139
|
|
|
95
140
|
## Tool Categories (52 tools)
|
|
96
141
|
|
|
97
|
-
|
|
142
|
+
All tools are accessible via MCP, REST API (`POST /v1/tools/{name}`), and CLI.
|
|
98
143
|
|
|
99
144
|
### Content Lifecycle
|
|
100
145
|
|
|
@@ -273,23 +318,27 @@ No personal content, API keys, or request payloads are ever collected. Your user
|
|
|
273
318
|
|
|
274
319
|
## Examples
|
|
275
320
|
|
|
276
|
-
See the [examples
|
|
321
|
+
See the [`examples/`](examples/) directory:
|
|
277
322
|
|
|
278
|
-
-
|
|
279
|
-
-
|
|
323
|
+
- [REST API examples](examples/rest/) — curl scripts for every endpoint
|
|
324
|
+
- [CLI examples](examples/cli/) — automation workflows
|
|
325
|
+
- [MCP prompts](examples/mcp/claude-prompts.md) — natural language examples
|
|
326
|
+
- [External examples repo](https://github.com/socialneuron/examples) — prompt-driven workflow templates
|
|
280
327
|
- Performance review and optimization loops
|
|
281
328
|
- Brand-aligned content generation
|
|
282
329
|
- Comment engagement automation
|
|
283
330
|
|
|
284
331
|
## Links
|
|
285
332
|
|
|
286
|
-
- [
|
|
287
|
-
- [
|
|
333
|
+
- [For Developers](https://socialneuron.com/for-developers) — Integration methods, tools, pricing
|
|
334
|
+
- [REST API Docs](docs/rest-api.md) — Endpoint reference
|
|
335
|
+
- [CLI Guide](docs/cli-guide.md) — Terminal commands
|
|
336
|
+
- [Integration Methods](docs/integration-methods.md) — Compare MCP vs REST vs CLI
|
|
337
|
+
- [OpenAPI Spec](https://mcp.socialneuron.com/v1/openapi.json) — Machine-readable API spec
|
|
338
|
+
- [Developer Settings](https://socialneuron.com/settings/developer) — Generate API keys
|
|
288
339
|
- [Documentation](https://socialneuron.com/docs)
|
|
289
|
-
- [Examples](https://github.com/socialneuron/examples)
|
|
290
|
-
- [Agent Protocol](https://socialneuron.com/system-prompt.txt)
|
|
291
|
-
- [Developer Settings](https://socialneuron.com/settings/developer)
|
|
292
340
|
- [Pricing](https://socialneuron.com/pricing)
|
|
341
|
+
- [Agent Protocol](https://socialneuron.com/system-prompt.txt)
|
|
293
342
|
|
|
294
343
|
## License
|
|
295
344
|
|