Skip to main content
Glama
1736280642-Star

content-publish-engine-mcp

content-publish-engine

An experimental TypeScript engine for governed AI content production and multi-platform publishing in the Chinese content ecosystem.

Status: v0.1 experimental. The deterministic production, validation, persistence, and lifecycle primitives are usable. Real publishing requires an authorized local bridge or a custom transport and must be validated against each platform's current rules.

What it provides

  • A frozen production contract that combines evidence, product, content-type, channel, expression, and promotion rules.

  • Deterministic output checks for structure, traceable facts, prohibited terms, CTA integrity, URLs, and cross-channel similarity.

  • WeChat, Juejin, CSDN, and Zhihu adapter contracts with mock, disabled, and real modes.

  • Idempotent publish jobs, platform locks, persisted results, verification backoff, liveness states, and reliability metrics.

  • Qwen, DeepSeek, and Doubao through an OpenAI-compatible provider interface.

  • A standalone MCP server exposing publish preparation, execution, verification, and liveness tools.

Related MCP server: mcp-server-wechat-mp

Safety model

Real publishing is disabled by default. Without DIRECT_PUBLISH_ENABLED=true, adapters run in mock mode unless DIRECT_PUBLISH_MOCK=false explicitly disables publishing. The built-in bridge transport only accepts loopback hosts and requires a bearer token.

The project does not ship browser selectors, cookies, platform credentials, or mechanisms intended to bypass CAPTCHA or platform risk controls. Use only accounts, APIs, and automation methods you are authorized to operate.

Requirements

  • Node.js 20 or newer

  • npm 10 or newer recommended

Install and verify

npm ci
npm run check

npm run check runs TypeScript checks, JavaScript syntax checks, tests, a clean build, and import checks against the built package.

Package entry points

import { compileProductionContract } from "content-publish-engine/content-production";
import { getCalendarMonthBounds } from "content-publish-engine/free-production";
import { getPublishAdapter, setDefaultTransport } from "content-publish-engine/publish-engine";
import { createBrowserPublishJobStore } from "content-publish-engine/platforms";
import { callAiProvider } from "content-publish-engine/ai-provider";

The repository can be used directly after npm run build. Publishing to npm is optional; before doing so, add the final GitHub repository, bugs, and homepage metadata to package.json.

Mock publishing

import { getPublishAdapter } from "content-publish-engine/publish-engine";

const adapter = getPublishAdapter("juejin");
const auth = await adapter.checkAuth();
// Mock mode is the default and never writes to an external platform.

Real publishing

The default BridgeTransport calls an authorized local service:

DIRECT_PUBLISH_ENABLED=true
WECHATSYNC_BRIDGE_URL=http://127.0.0.1:9528
WECHATSYNC_BRIDGE_TOKEN=replace-with-a-local-secret

The bridge must implement POST /auth/check, POST /publish, and POST /publish/verify. A custom transport is usually the simplest integration path; see examples/custom-transport.mjs and docs/adapter-guide.md.

MCP server

From a source checkout:

npm run mcp:start

From a built or installed package:

content-publish-engine-mcp

The server persists jobs and publish results to .data/publish-jobs.json by default. Override it with PUBLISH_JOB_STORE_PATH.

Available tools:

  • platform_auth_probe

  • publish_content_preflight

  • publish_job_create

  • publish_job_run

  • publish_job_get

  • publish_job_verify

  • publish_liveness_check

  • publish_verification_due

publish_content_preflight does not score writing quality or impose default limits on length, promotional wording, technical depth, or external links. It checks only required payload fields and platform-specific rules backed by identified official sources. Every result includes an officialRuleCoverage status so callers can distinguish verified coverage from missing public documentation. See docs/official-platform-rules.md.

Content media protocol

content-media://media-asset-<uuid> references can be rewritten to HTTPS URLs through rewriteContentMediaSources. The resolver is provided by the host application; the package does not assume a specific media backend.

Configuration

Copy .env.example and supply only the providers and publishing mode you use. Never commit the resulting .env file. See docs/architecture.md for component boundaries and durability behavior.

Known limitations

  • Platform adapters define payload validation and lifecycle behavior; real platform actions and final policy enforcement still require a bridge or custom transport.

  • Official rule coverage is intentionally partial where a platform does not publish a stable, machine-verifiable publishing contract.

  • No live platform credentials are exercised in CI.

  • File-backed job persistence is intended for a single local process or low-volume deployment, not distributed workers.

  • Provider output quality and platform policy compliance remain the operator's responsibility.

Contributing and security

See CONTRIBUTING.md before opening a pull request. Report vulnerabilities according to SECURITY.md, not through a public issue.

License

MIT

Install Server
A
license - permissive license
B
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server that enables AI tools to automatically publish articles to WeChat Official Accounts, supporting Markdown-to-HTML conversion, image handling, and both preview and official publishing modes.
    2
    53
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    A local MCP service for safely preparing, validating, and executing multi-platform social media auto-publishing, with dry-run mode and real adapter for Douyin.
    6
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • Connect any AI agent to 11+ social platforms: schedule, publish & track posts via hosted MCP.

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

  • Social media MCP: publish, schedule & analyze posts on TikTok, Instagram, YouTube, LinkedIn & X

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/1736280642-Star/content-publish-engine'

If you have feedback or need assistance with the MCP directory API, please join our Discord server