Skip to content

feat(clean-paste-ai): add Clean Paste AI invisible Unicode & Markdown cleaner plugin - #370

Open
cleanpasteai wants to merge 1 commit into
zai-org:mainfrom
cleanpasteai:feat/clean-paste-ai-plugin
Open

cleanpasteai wants to merge 1 commit into
zai-org:mainfrom
cleanpasteai:feat/clean-paste-ai-plugin

Conversation

@cleanpasteai

Copy link
Copy Markdown

Plugin type (required) / 插件类型(必填)

  • UI Plugin / 是 UI 插件 — provides MCP Apps interactive pages / 提供 MCP Apps 交互页面
  • Standard plugin / 普通插件(非 UI) — does not provide MCP Apps interactive pages / 不提供 MCP Apps 交互页面
  • Not applicable / 不适用 — repository-only changes; no plugin content changed / 仅仓库级改动,不涉及插件内容

Affected plugin name(s) / 涉及的插件名称:clean-paste-ai (Standard plugin — remote HTTP MCP server with 4 read-only text/Unicode/Markdown cleaning tools, no MCP Apps interactive page)

What / 改动内容

Adds the Clean Paste AI (clean-paste-ai, v1.0.0) community plugin under external_plugins/clean-paste-ai/, connecting ZCode to the free Clean Paste AI Remote Streamable HTTP MCP server (https://cleanpasteai.com/mcp, no API key required).

Problem solved / 解决的用户痛点

Developers and technical writers regularly copy text from AI chats, PDFs, Google Docs, or web pages that carries hidden Unicode characters (U+200B, U+202F, Unicode Tag characters, stray bidi controls), em-dashes, AI citation markers, or gray-shaded HTML. Clean Paste AI provides 4 free, instant, stateless tools:

  • scan_text_residue — inspect text against 450+ invisible Unicode rules and count em-dashes / smart quotes (read-only; reports objective character residue only).
  • clean_invisible_text — remove invisible Unicode characters and optionally normalize em-dashes & curly quotes while protecting composite Emoji (ZWJ/FE0F), RTL marks, CJK punctuation, and code blocks.
  • strip_markdown — AST-clean Markdown into plain text, shading-free Word/Google Docs HTML, or Excel/Sheets TSV while preserving code blocks, generics (Array<string>), and LaTeX math.
  • html_to_clean_markdown — convert pasted rich HTML into clean Markdown.

Dependencies, network access & side effects / 依赖与网络边界

  • Network: Sends only text/HTML explicitly submitted by the user to https://cleanpasteai.com/mcp for stateless in-memory processing (no server-side text persistence, no API key or auth required, 200,000-character limit per call).
  • Local system: Zero local binaries, zero hooks, zero shell scripts; never reads or writes local workspace files on its own.

Verification / 测试验证

  • python3 scripts/validate.py — passed (OK: 59 plugin(s) validated)
  • python3 -m unittest tests/test_icon_assets.py tests/test_catalog_classification.py tests/test_tree_safety.py tests/test_mcp_app_manifest.py — passed (30 tests OK)
  • git diff --check — passed
  • Live endpoint smoke test against https://cleanpasteai.com/mcp: GET /mcp, initialize, tools/list, and all 4 tools/call tools verified 200 OK.
  • Note: Full end-to-end GUI installation inside ZCode Desktop was not run locally (ZCode Desktop is not installed on this machine).

Self-check / 自查清单

  • Plugin name is unique kebab-case; new external plugin directory is external_plugins/<name>/; existing fixes retain ownership / 插件名唯一且 kebab-case,外部新增插件位于 external_plugins/<name>/,已有插件修复保留原归属
  • Usage category is set independently of publisher ownership / 用途分类 category 已填写,与维护归属分开
  • Plugin type and affected names are declared above / 已在上方声明插件类型与涉及的插件名称
  • version bumped in BOTH plugin.json and marketplace.json (artifacts are immutable) / plugin.json 与 marketplace.json 两处版本号已同步升级(制品不可变)
  • README.md (EN) and README_CN.md (中文) both updated and equivalent / 中英文 README 均已更新且语义一致
  • description_i18n has both en and zh-CN / description_i18n 包含 en 与 zh-CN
  • No secrets, machine-specific paths, or private dependencies / 不含密钥、机器专属路径或私有依赖
  • Model/API/network dependencies documented / 模型、API、网络依赖已写明
  • python3 scripts/validate.py and python3 scripts/build_dist.py pass locally / 本地校验与构建均通过

@panda920

Copy link
Copy Markdown
Collaborator

✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants