Skip to main content
Glama
Clearon Content Archive MCP

Clearon Content Archive MCP

by kwgoodwin

Clearon Content Archive MCP

用于仅追加内容记录、已验证发布历史、社交媒体后续跟进以及便于检索的元数据的 MCP 服务器。

它旨在保留来源信息和工作流状态,而自身不发布任何内容。

它能做什么

  • 按 slug 存储仅追加的内容事件。

  • 维护物化快照以支持快速读取。

  • 记录已验证的 WordPress 和社交媒体结果。

  • 在不重写早期历史的情况下跟踪来源修正。

  • 提供重叠搜索、清单和后续跟进报告。

  • 验证事件历史是否与存储的快照完全匹配。

Related MCP server: What Brandon Thinks Chat MCP

它不能做什么

  • 不向 WordPress 或社交平台发布内容。

  • 不将标记为 publish 的载荷视为已实际发布的证明。

  • 不做法律或编辑层面的真相判定。

  • 不允许工件路径超出配置的工作区。

环境要求

  • Node.js 20 或更高版本

  • 能够启动 stdio 服务器的本地 MCP 客户端

安装

cd tools/clearon-content-archive-mcp
npm install
npm test
npm run smoke

MCP 客户端配置

stdio 配置示例:

{
  "mcpServers": {
    "clearon-content-archive": {
      "command": "node",
      "args": ["/absolute/path/to/clearon-content-archive-mcp/server.mjs"],
      "env": {
        "CLEARON_CONTENT_ARCHIVE_WORKSPACE": "/absolute/path/to/workspace"
      }
    }
  }
}

使用 CLEARON_CONTENT_ARCHIVE_WORKSPACE 定义用于验证本地工件路径的根目录。使用 CLEARON_CONTENT_ARCHIVE_ROOT 覆盖归档存储位置。

存储

默认情况下,归档数据存储在仓库之外的用户数据目录中:

  • macOS:~/Library/Application Support/clearon-content-archive-mcp/content-archive

  • Linux:${XDG_DATA_HOME:-~/.local/share}/clearon-content-archive-mcp/content-archive

  • Windows:%APPDATA%\\clearon-content-archive-mcp\\content-archive

每条记录位于 records/<slug>/ 下,并存储:

  • events.jsonl

  • snapshot.json

验证与修复

verify_archive_record 是只读操作。它将重建的事件历史与存储的快照进行比较,并报告它们是否匹配。

自动修复仅用于需要在追加新事件之前从之前的部分写入中恢复的变更路径。

包审计 CLI 为:

npm run audit

它会明确报告验证失败,而不是静默跳过。

推荐工作流

  1. 注册本地草稿包。

  2. 追加已验证的发布或更新结果。

  3. 追加 LinkedIn 和 X 的结果,包括阻塞项或跳过项。

  4. 将来源修正记录为新事件。

  5. 在起草相关工作之前使用重叠和搜索工具。

  6. 在审计期间使用清单和不完整后续跟进输出。

  7. 在迁移、手动恢复或疑似损坏后运行验证。

工具

  • get_server_health

  • register_content_package

  • get_content_record

  • search_content_archive

  • find_content_record

  • update_content_artifacts

  • record_publication

  • record_social_result

  • record_source_correction

  • approve_voice_example

  • compare_payload_to_live_state

  • find_content_overlap

  • list_incomplete_follow_through

  • list_update_candidates

  • generate_content_inventory

  • verify_archive_record

URL 处理

存储的 URL 必须使用 http 或 https,且包含凭据的 URL 会被拒绝。

由于归档历史是仅追加的,请避免写入在查询字符串中包含令牌或其他机密的敏感 URL。

开发

npm test
npm run smoke
npm run syntax
npm run audit

Available Tools

16 tools
approve_voice_exampleB

Explicitly mark an exact archived excerpt as an approved Clearon voice example; never infers approval.

Inputs: slug (required), excerpt (required), expected_revision (required), note, +1 more.

compare_payload_to_live_stateC

Compare a workspace-contained WordPress payload with a caller-supplied verified live-state response.

Inputs: slug (required), live_state (required), payload_path.

find_content_overlapB

Rank potentially overlapping archived content using disclosed lexical overlap; requires editorial review.

Inputs: slug (required), limit.

find_content_recordB

Find exact archive records by content slug, WordPress post ID, or recorded publication/social URL.

Inputs: url, slug, post_id.

generate_content_inventoryA

Generate a current structured inventory of archive, publication, social, topic, correction, and voice-example counts.

Inputs: no named parameters.

get_content_recordA

Read a content snapshot and, by default, its complete append-only event history.

Inputs: slug (required), include_events.

get_server_healthB

Report archive health, storage root, and non-publishing safety boundaries.

Inputs: no named parameters.

list_incomplete_follow_throughA

List records missing verified WordPress publication, featured-image verification, or completed LinkedIn/X outcomes.

Inputs: no named parameters.

list_update_candidatesA

List mechanically stale publications, post-publication source corrections, and image-verification gaps; does not make editorial recommendations.

Inputs: older_than_days.

record_publicationB

Record a verified WordPress outcome. This tool never publishes and does not infer live state from a payload.

Inputs: slug (required), status (required), expected_revision (required), url, +10 more.

record_social_resultA

Record a LinkedIn or X outcome, including published URLs, schedules, queues, or blockers. This tool never posts.

Inputs: slug (required), status (required), platform (required), expected_revision (required), +7 more.

record_source_correctionA

Append a provenance correction without rewriting the earlier archive history.

Inputs: slug (required), field (required), reason (required), previous_value (required), +4 more.

register_content_packageB

Create an append-only Clearon content record with local artifacts and editorial retrieval metadata.

Inputs: slug (required), title (required), content_type (required), topics, +6 more.

search_content_archiveC

Search archived titles, summaries, openings, topics, jurisdictions, and terminology.

Inputs: query, topic, jurisdiction.

update_content_artifactsC

Append a metadata or local-artifact update using optimistic revision control.

Inputs: slug (required), expected_revision (required), note, title, +7 more.

verify_archive_recordA

Replay an append-only event log and confirm whether it matches the stored snapshot without repairing it.

Inputs: slug (required), include_rebuilt_snapshot.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 16 tools

    Disambiguation4/5

    Most tools target distinct resources and actions, such as searching, exact lookup, and registering content. The main ambiguity is between list_incomplete_follow_through and list_update_candidates, which both surface records needing verification or correction, but their descriptions largely clarify the intended focus.

    Naming Consistency5/5

    All tool names use a consistent lower_snake_case verb_noun pattern, such as get_content_record, record_publication, and approve_voice_example. Even the longer compound names like compare_payload_to_live_state and list_incomplete_follow_through follow the same predictable action-first convention.

    Tool Count4/5

    The server has 16 tools, which is slightly above the typical well-scoped range, but each tool appears to support a distinct archival lifecycle concern. The count is not excessive given the breadth of content, publication, social, correction, and voice-example workflows being covered.

    Completeness4/5

    The tool set covers the core content archive lifecycle: register, read, search, update, verify, and append publication/social/correction outcomes. Minor gaps exist, such as no explicit unpublish or approval-revocation tool, but the append-only design and existing verification tools make those acceptable omissions.

    Related MCP Connectors

    Related MCP Servers