@socialneuron/mcp-server 1.5.1 → 1.6.0
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 +7 -0
- package/README.md +62 -13
- package/dist/http.js +1081 -53
- package/dist/index.js +88 -53
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@socialneuron/mcp-server` will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.5.2] - 2026-03-20
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- **Error recovery hints**: All 47 error paths now include actionable recovery guidance — agents know what to call next when something fails (e.g., "Call get_credit_balance to check remaining credits" or "Verify platform OAuth with list_connected_accounts").
|
|
9
|
+
- Central `formatToolError()` helper with 9 error categories: rate limits, credits, OAuth, generation, not-found, access, SSRF, scheduling, and plan validation.
|
|
10
|
+
- 18 new tests for error recovery formatting.
|
|
11
|
+
|
|
5
12
|
## [1.5.1] - 2026-03-20
|
|
6
13
|
|
|
7
14
|
### 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
|
|