@socialneuron/mcp-server 1.7.4 → 1.7.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/CHANGELOG.md +30 -0
- package/README.md +6 -4
- package/dist/http.js +449 -193
- package/dist/index.js +447 -191
- package/package.json +17 -4
- package/tools.lock.json +88 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@socialneuron/mcp-server` will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.7.5] - 2026-04-22
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- **`upload_media` base64 path**: new optional `file_data` + `file_name` params let Claude Desktop, Claude Web, and other remote agents upload bytes directly without a filesystem path. Content-type is validated against an allowlist, base64 charset is checked, and decoded size is capped at 10MB before the Edge Function call. `file_name` is `basename()`-sanitized.
|
|
9
|
+
- **`schedule_post` auto-rehost**: any `media_url` / `media_urls` / `job_id` result URL that is not already R2-signed is automatically persisted into R2 via `upload-to-r2` before posting. Keeps scheduled posts alive past ephemeral-URL expiry (Replicate, OpenAI, DALL-E, kie.ai) and feeds byte-upload platforms (X, LinkedIn, YouTube, Bluesky). New optional `auto_rehost` parameter (default: true) opts out.
|
|
10
|
+
- **`create_carousel` meta-tool** (from v1.7.4): Brand-aware carousel generation that composes `generate_image` with brand color/tone constraints and auto-exports to R2. Catalog now at **73 tools**.
|
|
11
|
+
- **Brand runtime scoring**: `brandScoring.ts` + `colorAudit.ts` modules power multi-dimensional brand alignment checks used by the carousel meta-tool.
|
|
12
|
+
|
|
13
|
+
### Security
|
|
14
|
+
- **npm Trusted Publishing (OIDC)**: Release workflow publishes to npm via OIDC — no long-lived `NPM_TOKEN` secret. Package ships with SLSA provenance.
|
|
15
|
+
- **Production environment gate**: Release workflow requires manual approval of the `production` environment before publishing.
|
|
16
|
+
- **Perimeter hardening (Sprint 1)**: Repo-level `.npmrc` pins registry, disables funding/audit noise in CI, and enforces `save-exact`. `CODEOWNERS` locks security-sensitive paths (workflows, `.npmrc`, `package.json`, `src/auth/`) to `@socialneuron/sn-maintainers`.
|
|
17
|
+
- **Pre-push identity hook**: Blocks pushes from unexpected git identities; ships with a local allowlist.
|
|
18
|
+
- **Lockfile-lint + dependency cooldown**: CI validates `package-lock.json` integrity. Release enforces a 14-day cooldown on new dependency versions (temporarily warn-only for this release during OIDC validation — re-enforced in 1.7.6).
|
|
19
|
+
- **Sealed tools manifest (CVE-2025-6514 mitigation)**: `tools.lock.json` records a sha256 hash of every tool's `name`/`description`/`module`/`scope`. CI `lint:tools` blocks drift between source and manifest. Mitigates tool-poisoning attacks on MCP clients.
|
|
20
|
+
- **SSRF guard on caller URLs**: every URL passed to auto-rehost is validated by `quickSSRFCheck` — rejects localhost, RFC1918 private ranges, link-local, cloud metadata endpoints (AWS/GCP/Azure), embedded credentials, and non-HTTP(S) protocols.
|
|
21
|
+
- **Hono patched**: `hono` override bumped 4.12.12 → 4.12.14 to resolve GHSA-458j-xx4x-4375 (JSX attribute HTML injection, moderate).
|
|
22
|
+
- Covers **11 Dependabot alerts** pinned via npm `overrides` (security patches for transitive deps).
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
- `MCP_VERSION` bumped to `1.7.5`.
|
|
26
|
+
- Tool descriptions updated on `upload_media` and `schedule_post.media_url` to tell agents ephemeral URLs are safe to pass directly.
|
|
27
|
+
- CI runners upgraded: `actions/checkout@v6`, `actions/setup-node@v6`.
|
|
28
|
+
- Dependencies: `@supabase/supabase-js` 2.101 → 2.103, `posthog-node` 5.28 → 5.29.2, `hono` → 4.12.14, `@types/node` → 25.6, `typescript` → 6.0, `trufflehog` action → 3.94.2.
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
- Missing `sanitizeError` import on the presigned-PUT error branch of `upload_media`.
|
|
32
|
+
- Release workflow: removed stale `registry-url` directive that blocked OIDC Trusted Publishing.
|
|
33
|
+
- Release workflow: removed broken typecheck gate that blocked publish.
|
|
34
|
+
|
|
5
35
|
## [1.7.3] - 2026-04-04
|
|
6
36
|
|
|
7
37
|
### Security
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @socialneuron/mcp-server
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> 73 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)
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
| **CLI** | Terminal, CI/CD pipelines | [Guide](docs/cli-guide.md) |
|
|
15
15
|
| **SDK** | TypeScript/Node.js apps | Coming Q2 2026 |
|
|
16
16
|
|
|
17
|
-
All methods share the same
|
|
17
|
+
All methods share the same 73 tools, auth, scopes, and credit system. [Compare methods](docs/integration-methods.md).
|
|
18
18
|
|
|
19
19
|
## Quick Start
|
|
20
20
|
|
|
@@ -137,7 +137,9 @@ Ask Claude things like:
|
|
|
137
137
|
- "Check my analytics and suggest improvements"
|
|
138
138
|
- "Set up autopilot to post 3 times per week"
|
|
139
139
|
|
|
140
|
-
## Tool Categories (
|
|
140
|
+
## Tool Categories (73 tools)
|
|
141
|
+
|
|
142
|
+
> Full machine-readable listing in [`tools.lock.json`](tools.lock.json) (sealed manifest, verified in CI).
|
|
141
143
|
|
|
142
144
|
All tools are accessible via MCP, REST API (`POST /v1/tools/{name}`), and CLI.
|
|
143
145
|
|
|
@@ -261,7 +263,7 @@ socialneuron-mcp sn loop
|
|
|
261
263
|
socialneuron-mcp sn credits
|
|
262
264
|
|
|
263
265
|
# Agent-native CLI v2
|
|
264
|
-
socialneuron-mcp sn tools [--module ideation] [--scope mcp:write] # List/filter all
|
|
266
|
+
socialneuron-mcp sn tools [--module ideation] [--scope mcp:write] # List/filter all 73 tools
|
|
265
267
|
socialneuron-mcp sn info # Version, auth, credits, tool count
|
|
266
268
|
socialneuron-mcp sn plan list|view|approve # Content plan management
|
|
267
269
|
socialneuron-mcp sn preset list|show|save|delete # Platform presets (6 built-in)
|