Line9

ai.line9由 line9.ai 發布官方發布者v0.4.4更新於 Oct 24, 2026

Render Mermaid with Line9 layout in your assistant.

已驗證Streamable HTTP可網頁執行開發者工具媒體與設計

概覽

AI 產生的概覽

一個遠端 MCP 伺服器,讓助理用 Line9 排版引擎算繪 Mermaid 圖表,並瀏覽使用者已發佈的 Line9 圖表。

可以做什麼
用 Line9 排版算繪 Mermaid 原始碼,流程圖與時序圖採用 Line9 排版,其他類型則使用 Mermaid 自帶排版並加以標示,同時回傳簡短的結果說明。列出使用者 Line9 工作區中已發佈的圖表,包含名稱、可見性、版本、最後更新時間與永久連結。依名稱或 slug 取得已發佈圖表的目前 Mermaid 原始碼並算繪顯示,回傳內容帶有 line9 前置中繼資料區塊,編輯時應保留。
適用情境
適合助理撰寫或修改 Mermaid 且使用者需要看到算繪結果時,也適合使用者想尋找、開啟並編輯其 Line9 工作區中已發佈的圖表時。
執行需求
透過 streamable HTTP 連線至 mcp.line9.ai 遠端端點;未宣告任何套件、環境變數或請求標頭。列出與取得已發佈圖表需要登入 Line9。
安裝前請注意
此伺服器可讀取使用者 Line9 工作區內容,包含圖表名稱、可見性與原始碼。編輯取得的圖表時需保留其 line9 前置中繼資料區塊,以免 Line9 將其辨識為新圖表。工作區工具需要登入,涉及帳號存取權限。

安裝

在 SourceWeft 中

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

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

交給代理程式安裝

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

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

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

其他 MCP 客戶端

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

{
  "mcpServers": {
    "line9": {
      "type": "http",
      "url": "https://mcp.line9.ai/mcp"
    }
  }
}

工具

3

render_diagram

Render diagram

Render Mermaid source with Line9's layout engine. Call this whenever you write or change Mermaid and the user should see the result. Flowcharts and sequence diagrams get Line9's layout; other Mermaid kinds are rendered with Mermaid's own layout and flagged as such. Returns a short verdict — kind, size, warnings, or a parse error with its line and column — plus an "Open in Line9" link. On a parse error, fix the named line and call again. Assistants that support MCP Apps show the diagram in a panel; there, do not paste the SVG or repeat the source in your reply. In an assistant with no panel (a terminal or editor), reply with the verdict line and the `open_url` link — that link is the only way the user sees the diagram. Write flowcharts as `flowchart LR` unless the user asks for top-to-bottom; chat panels are wide and short. No sign-in needed; renders carry a small Line9 mark unless the user is signed in to Line9 Pro. Set theme, orientation, spacing and legend in the source itself (`line9:` frontmatter; `flowchart LR`), never as arguments. This connector cannot publish or save. To publish, the user opens the diagram in Line9 (the `open_url` link) and publishes there — not with the Line9 CLI.

輸入參數plansource必填

list_diagrams

List my diagrams

List the diagrams published in the user's Line9 workspace(s): name, visibility, version, last update and permalink. Use it to find a diagram before `get_diagram`. Requires Line9 sign-in.

輸入參數limitquery

get_diagram

Get a diagram

Fetch a published diagram's current Mermaid source by name or slug, and show it rendered. The returned source is stamped with the diagram's identity — keep the `line9:` frontmatter block when you edit it so that Line9 recognises the diagram when it is opened and published there instead of creating a new one. Requires Line9 sign-in. This connector cannot publish or save. To publish, the user opens the diagram in Line9 (the `open_url` link) and publishes there — not with the Line9 CLI.

輸入參數diagram必填

版本歷史

2
  1. v0.4.4最新Sep 18, 2026
  2. v0.4.3Sep 17, 2026

評分

已滿足適用檢查項的 72%

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

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

    請在註冊中心條目中發布圖示。

  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。