
MarsDawn
dev.southern-light.mcp由 mcp.southern-light.dev 發布v0.2.4更新於 Oct 25, 2026
Export Markdown to PDF and open it in the MarsDawn app on macOS, with the marsdawn CLI.
概覽
僅限 macOS 的 MCP 伺服器,透過呼叫本機 marsdawn 命令列工具,讓助理把 Markdown 匯出為 PDF 並在 MarsDawn 應用程式中開啟。
- 可以做什麼
- 將 Markdown 檔案匯出為 PDF,可選擇主題、紙張大小,並可選擇覆寫既有 PDF,回傳 CLI 的 JSON 結果作為結構化內容,Mermaid 圖表依 MarsDawn 預覽效果呈現。在 MarsDawn 應用程式中開啟既有的 Markdown 檔案,可定位到指定行,也可在背景開啟。兩個工具都只能在使用者允許的資料夾內運作,允許範圍來自擴充功能的允許資料夾設定或 MCP roots,拒絕訊息會列出允許的資料夾。
- 適用情境
- 適用於 macOS 上助理需要把 Markdown 文件轉成 PDF,或把 Markdown 檔案交給 MarsDawn 應用程式檢視的情境,特別適合本身沒有 shell 的用戶端。若已有 shell,直接執行 marsdawn 指令更簡單。
- 執行需求
- macOS,已安裝 marsdawn CLI 0.5.0 或更新版本(例如透過 Homebrew),以及 Node.js 20 或更新版本;開啟檔案還需要從 Mac App Store 安裝 MarsDawn 應用程式。必須至少設定一個允許的資料夾,或由用戶端提供 MCP roots,否則所有呼叫都會被拒絕。CLI 會依序在 MARSDAWN_PATH、PATH 以及常見 Homebrew bin 目錄中尋找。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 MarsDawn,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
marsdawn-mcp
An MCP server that lets an AI agent export Markdown to PDF and open Markdown files in the
MarsDawn app, on macOS, by running the
marsdawn command-line tool you already have. It's a
channel for clients that have no shell of their own; where a shell is available, driving
marsdawn directly is simpler.
The first release, 0.1.0, is
an MCP Bundle, marsdawn.mcpb, attached to the release.
0.2.4, the latest release, is listed in the
MCP Registry
as dev.southern-light.mcp/marsdawn.
What it does
Two tools.
export_markdown_to_pdf
Runs marsdawn export <input> --json and returns the CLI's JSON result as structured content,
so the PDF looks the way it does from the command line: rendered like MarsDawn's preview,
Mermaid diagrams included.
open_in_marsdawn
Runs marsdawn open <path>[:line] --json and returns the CLI's JSON result. Needs the MarsDawn
app installed, from the Mac App Store; call it once
per file, since the window it opens follows that file's later edits by itself, without being called again.
No folder yet: the launch build's marsdawn open --folder answers with an error dialog in the
app, so this tool doesn't offer it. It returns once folders ship in app 1.1 and the site
publishes open.v3.json for them.
A failure from either tool comes back as an error with the CLI's message and what to do next. A
missing MarsDawn app (open_in_marsdawn only) comes back the same way, not as a thrown error.
Where it may read and write
Both tools work only inside folders you allow. There are two ways to name one, and the server uses both together:
- The extension's settings. "Allowed folders" is a multi-value setting with no preset value:
add the folders you want, for example your Documents folder, and save. Each folder becomes one
argument to the server. Until one is added, every call is refused with a message that says so.
(A preset would not help: Claude Desktop does not expand
${DOCUMENTS}-style placeholders in a folder setting's default, and a required setting keeps the server from starting at all until it is saved.) - MCP roots. If your client offers the
rootscapability, the server asks it for the current roots on each tool call (and caches them only when the client promises to announce changes). Roots are the client's claim about your workspace, not something this server controls: the sandbox is as wide as the widest source, so a client where the agent can widen its own workspace widens its own confinement. Claude Desktop doesn't send roots; Claude Code does.
From source, the folders are the positional arguments:
With neither a folder nor a root, every call is refused. So is a call the server can't check:
if the client's roots/list answers with an error, a malformed result or nothing at all, that call
sees no roots rather than everything.
The rules, applied before marsdawn is ever started:
- Every path must be a plain absolute path — no
.or..components, no//, no trailing slash — so the string the server checks is the string the CLI receives. - The folder the path is in, resolved through symlinks, must be inside an allowed folder, and so must the file itself. A symlink that leads out of the tree is refused from either end.
outputmust name a.pdffile, must not be a symlink, and must not be anything other than a regular file. A missingoutputbecomes<input without its extension>.pdfand is checked the same way, then passed to the CLI as--output.- Anything outside gets one refusal that names the allowed folders, whether or not the path exists, so neither tool says what is there. That message does tell the model your folder paths; a deliberate trade, so an agent can pick a valid path instead of retrying blindly.
- A file that doesn't exist inside an allowed folder is passed through, so the CLI's own
input_not_foundstill comes back with its next step. A symlink there whose target can't be resolved is not a missing file: it gets the same refusal as one that leads outside.
What this does not do: inside an allowed folder, force still replaces an existing PDF, exactly as
on the command line. And if the destination is a hard link, the PDF replaces the directory entry
rather than the bytes — the CLI renders to a temporary file beside the destination and swaps it in
— so the other link keeps the old contents. Both are the CLI's behaviour, unchanged.
Requirements
- macOS, with
marsdawn0.5.0 or later:brew install redtear1115/tap/marsdawn. - Node.js 20 or later.
The server looks for marsdawn at the path in MARSDAWN_PATH if that's set, then in PATH,
then in /opt/homebrew/bin and /usr/local/bin.
Run it from source
Then point your MCP client at node /absolute/path/to/marsdawn-mcp/server/index.js over stdio,
with the folders it may work in as arguments (see
Where it may read and write).
Development
schemas/ holds copies of the JSON Schemas published at
https://marsdawn.southern-light.dev/schemas/cli/. The site is where they're written; update
them by copying the published files, never by editing them here.
License
Apache License 2.0. See LICENSE.
來源:README.md,提交 ece3187
工具
0版本歷史
4- v0.2.4最新Oct 9, 2026
- v0.2.3Sep 25, 2026
- v0.2.2Sep 23, 2026
- v0.2.1Sep 23, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分