Previewglow

io.github.CloudCorpRecords由 GitHub 帳號 CloudCorpRecords 發布v0.1.0更新於 Nov 5, 2026

Link previews and OG images: scan pages, render templates, create short links, read click stats.

概覽

AI 產生的概覽

連接託管 Shareglow 服務的本機橋接工具,讓助理掃描連結預覽、算繪 Open Graph 圖片、建立短連結並查看點擊統計。

可以做什麼
  • 掃描公開網頁的 Open Graph 與 Twitter Card 中繼資料,檢視各平台預覽並取得修正建議
  • 列出工作區的 OG 圖片範本,並用範本算繪 1200x630 圖片,回傳永久圖片網址
  • 透過 AI 依網站品牌(標誌、配色、字型)設計新的 OG 圖片範本
  • 建立帶有自身預覽的短連結,可自訂 slug 並設定 A/B 變體
  • 依 id 讀取短連結的點擊分析,包含按日、國家、裝置、瀏覽器與來源的細分
  • 在頁面標籤或圖片變更後,強制社群平台重新抓取該頁面的預覽
適用情境
適合發布或維護網頁、需要排查連結預覽錯誤、產生社群分享圖片,或透過短連結測試哪種預覽文案點擊較多的情況。
執行需求
透過 npx(需 Node.js)或 Docker 映像在本機執行,並連網將請求轉送到託管的 Shareglow MCP 端點。選用環境變數 SHAREGLOW_API_KEY 提供自己的 Shareglow 金鑰,SHAREGLOW_MCP_URL 可覆寫上游端點。
安裝前請注意
工具呼叫會轉送給第三方託管服務,傳入的網址、頁面資料與範本參數會離開本機。設定 SHAREGLOW_API_KEY 時會以 Bearer 標頭送出金鑰。它會建立短連結並觸發頁面重新抓取,AI 範本設計會消耗方案的 AI 配額,部分功能僅限付費方案。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Previewglow,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

previewglow

previewglow is a small local bridge to the hosted Shareglow MCP server, which looks after link previews and Open Graph images. Point it at a public page and it reports the page's preview metadata, the per-platform previews, and any problems it finds, with suggestions for fixing them. It can render a 1200x630 OG image from one of the workspace's templates, design a fresh template from a site's own brand, mint short links that carry their own previews, report how those links are being clicked, and force the social platforms to re-fetch a page whose tags have just changed.

The bridge keeps no preview data of its own. It serves the upstream server's tool list locally, exactly as captured from the live endpoint, and forwards each tool call upstream, returning the result untouched. Everything here acts on the caller's own Shareglow workspace or on public pages the caller names; there is no sending, payment, or messaging tool in the surface.

Tools

  • scan_url — scan a public page and report its link-preview (Open Graph / Twitter Card) metadata, previews per platform, and issues with fix suggestions. Required: url.
  • generate_og_image — render a 1200x630 Open Graph image from a template. Required: templateId. Optional: params (text values such as title and subtitle) and exp (Unix seconds; makes the signed URL expire, paid plans). Returns the permanent image URL and whether it was already cached.
  • create_template_from_url — use AI to design a new OG image template from a website's brand (logo, colors, fonts). Required: url. Returns the chosen layoutId, the variables to pass, and the extracted brand kit.
  • list_templates — list the OG image templates the workspace can render (built-in and custom) with id, name, version and dimensions. Takes no arguments; call it before generate_og_image to pick a templateId.
  • create_short_link — create a short link with its own link preview. Required: destination. Optional: slug and up to three A/B variants. Returns id, shortUrl and variants.
  • get_link_stats — get click analytics for a short link: totals plus breakdowns by day, country, device, browser and referrer. Required: linkId. Optional: from / to dates (YYYY-MM-DD).
  • refresh_preview — force social platforms to re-fetch a page's link preview after its OG tags or image changed. Required: url.

Configuration

  • SHAREGLOW_MCP_URL (optional) — override the upstream endpoint. Defaults to https://mcp.getshareglow.com/mcp. (The override hook is this rebuild's own labelled reconstruction.)
  • SHAREGLOW_API_KEY (optional) — when set, every upstream request carries an Authorization: Bearer <key> header, for the caller's own Shareglow key (an sk_live_... key created in the caller's Shareglow dashboard). When it is not set, no key header is sent. (The header name and the Bearer template are pinned by the original's registry record; forwarding the key from this env var is a labelled reconstruction — the original surface was captured keyless.)

Forwarding mechanics

On the first tool call the client opens a streamable HTTP session with the upstream: a JSON-RPC initialize request (protocolVersion 2025-03-26, clientInfo name previewglow), then a notifications/initialized notification, then the tools/call request carrying the caller's arguments unchanged. When the upstream answers initialize with an Mcp-Session-Id header, that value rides on every later request of the session, which is reused for the life of the process. Replies may arrive as plain JSON or as server-sent events; both are read.

Successful upstream results pass through verbatim, including any isError flag the upstream sets. Failures — a JSON-RPC error, a non-2xx status, an unreadable response, or a request that cannot be completed — come back as an isError result whose text starts with previewglow error: (this rendering is this rebuild's own labelled reconstruction).

CLI

Each tool is also a subcommand taking one JSON argument string:

bash
npx @reneturcios/previewglow scan_url '{"url":"https://example.com/landing"}'npx @reneturcios/previewglow get_link_stats '{"linkId":"lnk_abc-123"}'npx @reneturcios/previewglow --version

Exit codes: 0 on success, 1 on an isError result, 2 on a usage error.

MCP server

bash
npx -y @reneturcios/previewglow mcp

MCP client config:

json
{  "mcpServers": {    "previewglow": {      "command": "npx",      "args": ["-y", "@reneturcios/previewglow", "mcp"]    }  }}

Docker

bash
docker run -i ghcr.io/cloudcorprecords/previewglowdocker run --rm ghcr.io/cloudcorprecords/previewglow --version

The container's default command is mcp, so the first form is a stdio MCP server; any other arguments reach the CLI normally.

Development

bash
npm installnpm run buildnpm testnpm run dev

The test suite runs entirely against a stubbed JSON-RPC upstream — no live network calls.

License

MIT — see LICENSE.

來源:README.md,提交 a20ef76

工具

7

scan_url

Scan a public web page and report its link-preview (Open Graph / Twitter Card) metadata, previews per platform, and issues with fix suggestions. Use it to answer 'why does my link preview look wrong?'.

輸入參數url必填

generate_og_image

Render a 1200x630 Open Graph image from a template id (see list_templates) and text params such as title and subtitle. Returns the permanent image URL to put in og:image, and whether it was already cached. Optional exp (Unix seconds, paid plans) makes the signed URL expire; leave it out for an og:image URL.

輸入參數expparamstemplateId必填

create_template_from_url

Use AI to design a new OG image template from a website's brand (logo, colors, fonts) taken from a URL. Returns the chosen layoutId (a built-in template id usable with generate_og_image), the variables to pass, and the extracted brand kit. Counts against the plan's AI quota.

輸入參數url必填

list_templates

List the OG image templates the workspace can render (built-in and custom) with id, name, version and dimensions. Call this before generate_og_image to pick a templateId.

無需輸入參數。

refresh_preview

Force social platforms to re-fetch a page's link preview after you changed its OG tags or image: bumps the og:image cache-buster, re-scrapes Facebook, and returns the LinkedIn Post Inspector link and the X cache note.

輸入參數url必填

版本歷史

1
  1. v0.1.0最新Nov 5, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分