Study Design Diagram Studio WebMCP

io.github.Black-Swan-Causal-Labs由 GitHub 帳號 Black-Swan-Causal-Labs 發布v1.0.0更新於 Oct 24, 2026

Read and edit a live study design canvas through its predefined WebMCP tools.

發布方自己的服務:Diagram

已驗證Streamable HTTP可網頁執行效率與工作流資料與分析

概覽

AI 產生的概覽

讓助理讀取、編輯、驗證並匯出 Study Design Diagram Studio 瀏覽器應用程式中目前開啟的流行病學研究設計圖。

可以做什麼
  • 讀取目前的研究規格與其修訂版本號
  • 新增、修改、刪除與重新排序時間軸視窗和設計元素
  • 更新研究層級的中繼資料、匯入完整規格或清空畫布
  • 執行完整性檢查並檢視待審項目,以及在不觸發下載的情況下匯出 SVG 示意圖
適用情境
當你在該工作室中繪製或審閱流行病學研究設計圖,並希望助理進行結構化修改、檢查完整性或取出示意圖,同時你繼續在同一畫布上工作時適用。
執行需求
需要支援自訂授權標頭的遠端 Streamable HTTP MCP 用戶端。在工作室中啟用臨時連線,並把 Authorization 標頭設為複製到的完整值。工作室分頁必須保持開啟,金鑰兩小時後過期。未實作 OAuth 探索。
安裝前請注意
持有臨時金鑰的任何人在連線期間都能呼叫該畫布的工具,應視為機密並在用完後中斷連線。配對會把研究工具的參數與結果經 Cloudflare 中繼傳送給所連接的代理提供者。編輯會改動共用畫布與復原歷程,且工作區僅在工作階段內有效,離開前請儲存 JSON。完整性檢查並不代表方法學有效性。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Study Design Diagram Studio WebMCP,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.Black-Swan-Causal-Labs%2Fsdds-webmcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "study-design-diagram-studio-webmcp": {
      "type": "http",
      "url": "https://sdds-webmcp-bridge.jdiazdecaro.workers.dev/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

Study Design Diagram Studio

A browser workspace by Black Swan Causal Labs for creating, reviewing, and exporting epidemiologic study design diagrams.

Live app: https://sdds.blackswancausallabs.com

Features

  • Model washout, inclusion, exclusion, covariate assessment, and follow-up windows relative to an index event.
  • Edit window dates by dragging timeline edges or entering values, with keyboard controls and Undo.
  • Record study details, assessment rules, source notes, footnotes, and abbreviations.
  • Save and import structured JSON; export SVG, PDF, and editable PowerPoint diagrams.
  • Review a completeness checklist and work with a compatible browser agent through 10 WebMCP tools.

The workspace is session-only. Use Save JSON to preserve edits before leaving. The preloaded example was transcribed from a reference figure and has not been verified against its manuscript. Completeness checks establish information presence, not methodological validity or source accuracy. The app does not extract information from PDFs.

Connect an AI agent

The app exposes ten predefined tools for reading, editing, validating, and exporting the current study design. Human and agent edits share the same canvas and Undo history. There are two ways to connect:

ConnectionRequirementsSetup
Native WebMCPA WebMCP-capable browser and agentOpen the studio and let the agent discover the page's tools
Remote MCP bridgeA Streamable HTTP MCP client that supports custom authorization headersEnable a temporary connection in the studio and configure the client with its URL and key

For a remote MCP client:

  1. Open Study Design Diagram Studio, select Connect MCP, then Enable connection.
  2. Add https://sdds-webmcp-bridge.jdiazdecaro.workers.dev/mcp to your client. Set its Authorization header to the complete copied value, including Bearer , or use Copy MCP config if the client accepts that format.
  3. Keep the tab open. Ask the agent to read the current study specification before editing; mutations require its latest revision.
  4. Select Disconnect to revoke access. Closing or reloading the page also ends the session. Keys expire after two hours; reconnect for a new key.

The remote bridge is published in the official MCP Registry as io.github.Black-Swan-Causal-Labs/sdds-webmcp. Its metadata is in server.json; see the bridge README for detailed connection, session, development, and deployment instructions.

A website URL alone does not enable arbitrary agents to use WebMCP. Native access needs browser and agent support; remote access needs pairing and custom-header support. The bridge currently does not implement OAuth discovery.

Pairing is optional and sends study tool arguments and results through the Cloudflare relay to the connected agent provider. Anyone with the temporary key can invoke that canvas's tools while connected. Loading the page does not create a relay session, and native WebMCP works without this relay; the browser agent's own data handling still applies.

Local development

Requires Node.js 22.13 or later and npm. Node.js 24 was used for the initial deployment.

sh
npm cinpm run dev

Create and preview a production build:

sh
npm run buildnpm run preview

The app uses React, TypeScript, Vite, Tailwind CSS, Zod, jsPDF, and PptxGenJS. The studio is a static application. Its optional remote MCP bridge runs separately on Cloudflare Workers and Durable Objects; ordinary manual editing and native WebMCP do not require a paired relay session.

Cloudflare deployment

The existing Cloudflare Pages project is sdds, with production branch main and build output dist.

SettingValue
Custom domainsdds.blackswancausallabs.com
Pages hostnamesdds-1wj.pages.dev
Wrangler configurationwrangler.json
DNS recordCNAME sdds → sdds-1wj.pages.dev

From a checkout with access to the Cloudflare account:

sh
npm cinpx wrangler loginnpm run buildnpx wrangler pages deploy dist --project-name sdds --branch main

Wrangler opens authentication in your default browser. The Pages project and custom domain are already configured; normal redeployments do not require recreating them. For a new environment, create a separate Pages project and add its custom domain through Cloudflare's Pages dashboard.

Deployment is currently manual through Wrangler. Pushing to this GitHub repository does not automatically deploy to Cloudflare. Never commit Cloudflare tokens, .env files, .dev.vars files, or local Wrangler state.

WebMCP tool reference

The app detects document.modelContext, with a fallback to navigator.modelContext. Manual editing remains available in browsers without WebMCP support. Tools operate on the current page's in-memory study, and mutations require expected_revision to protect against stale edits.

ToolPurpose
get_study_specRead the current specification and revision
update_design_elementUpdate a window
add_design_elementAdd a window
remove_design_elementRemove a window
reorder_design_elementsReorder timeline rows
update_study_detailsUpdate study-level metadata
import_study_specReplace the current specification
clear_study_specStart a blank design
validate_study_specRead completeness checks and review items
export_schematicReturn SVG without triggering a download

Unknown dates are represented by null; unresolved text stays blank. Source notes should distinguish documented evidence from researcher-defined choices.

Source layout

  • components/study/: editor, timeline, and information panels
  • components/ui/: reusable interface components
  • lib/study/: schema, validation, timeline layout, export, and WebMCP tools
  • app/globals.css: application styling
  • public/: PDF font and its license
  • vendor/: vendored stylesheet and its license

Licensing and contact

The original canvas application, native WebMCP integration, and remote MCP bridge are licensed under the Apache License 2.0. Copyright 2026 Black Swan Causal Labs, LLC. See NOTICE.

Third-party components retain their own licenses; see THIRD_PARTY_NOTICES.txt, public/DejaVu-font-license.txt, and vendor/shadcn-tailwind-4.13.0.LICENSE.md. The software license does not change rights in user-provided study content or third-party reference material, or grant trademark rights. License and notice files are also distributed with the deployed app.

Black Swan Causal Labs: https://blackswancausallabs.com · [email protected]

來源:README.md,提交 16b760c

工具

0
該伺服器需要 API 金鑰等憑證,因此 SourceWeft 無法在沒有憑證的情況下讀取其工具,也未收錄。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Diagram 整合