Writespace Mcp

io.github.write-space由 GitHub 帳號 write-space 發布v1.0.0更新於 Oct 24, 2026

Persistent docs and memory for AI agents — read, write, organize & search a shared workspace.

已驗證Streamable HTTP可網頁執行效率與工作流檔案與儲存知識與記憶

概覽

AI 產生的概覽

針對 Writespace 協作式 Markdown 文件編輯器的託管 MCP 伺服器,讓助理讀取、寫入、整理和搜尋共享工作區。

可以做什麼
列出工作區、資料夾和文件,並以 JSON 或 Markdown 連同中繼資料取得文件。執行排序全文搜尋,並依結構化中繼資料查詢文件。建立、更新、依標題 upsert、附加、替換章節、移動和刪除文件。建立、重新命名和刪除資料夾,包括巢狀資料夾。
適用情境
適合讓助理在人類同樣編輯的共享工作區中保存長期筆記、文件或可搜尋的知識庫。適用於對團隊文件做 RAG 式檢索,以及需要把結果寫回供人審閱的代理程式。
執行需求
遠端 HTTP 端點,使用 Bearer 驗證。需要 Writespace 帳號,以及在設定中的 API tokens 建立的存取權杖,透過 Authorization 標頭送出。Claude Desktop 需透過 mcp-remote(經 npx)在本機橋接,因此需有 Node.js。
安裝前請注意
此權杖可存取帳號下的工作區,且僅顯示一次;不要放入共享設定,外洩後應撤銷。寫入類工具會建立、修改、移動和刪除文件與資料夾,delete_folder 會連同內容一併刪除。變更會即時廣播給已開啟的編輯器,協作者會立即看到。免費方案限 10 份文件,付費方案需付費。

安裝

在 SourceWeft 中

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

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

交給代理程式安裝

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

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

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

其他 MCP 客戶端

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

{
  "mcpServers": {
    "writespace": {
      "type": "http",
      "url": "https://app.writespace.io/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

Writespace MCP Server

A remote, hosted Model Context Protocol server for Writespace — a real-time collaborative document editor. Give Claude, ChatGPT, Gemini, Cursor, or any MCP-speaking agent a shared docs workspace it can read, write, organise and search alongside you.

Endpoint: https://app.writespace.io/mcp (HTTP transport, Bearer auth) Free tier: yes — up to 10 documents, no card required → sign up

What it does

Writespace is a markdown-first doc editor for humans with an MCP server built in for agents. Every action you can take in the app is exposed as a tool your model can call:

  • Read — walk the workspace tree, fetch any doc as lossless JSON or markdown, run ranked full-text search (drop it straight into your agent as RAG retrieval)
  • Write — create docs, append content, replace a single section by its heading, shallow-merge structured metadata
  • Organise — create/rename/move folders, move docs, query docs by metadata ({ status: "accepted" })

Agent writes broadcast over Realtime, so open editors reload live. Humans and agents work on the same canvas — no export step, no format negotiation.

Quick start

Three steps, two minutes:

  1. Get a token — sign in at app.writespace.io, open Settings → API tokens, create a token (shown once, revocable any time).
  2. Endpoint — one hosted endpoint for all accounts: https://app.writespace.io/mcp
  3. Configure your client — snippets below.

Claude Code (CLI)

bash
claude mcp add --transport http writespace \  https://app.writespace.io/mcp \  --header "Authorization: Bearer ws_pat_YOUR_TOKEN_HERE"

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json

Claude Desktop's config supports only local (stdio) servers, so a remote HTTP server is bridged through mcp-remote, which Claude Desktop launches locally and which forwards to the endpoint:

json
{  "mcpServers": {    "writespace": {      "command": "npx",      "args": [        "-y",        "mcp-remote",        "https://app.writespace.io/mcp",        "--header",        "Authorization:${AUTH_HEADER}"      ],      "env": {        "AUTH_HEADER": "Bearer ws_pat_YOUR_TOKEN_HERE"      }    }  }}

Notes:

  • The token goes in the AUTH_HEADER env var (and --header Authorization:${AUTH_HEADER} with no space after the colon) because mcp-remote mishandles spaces in --header arguments.
  • Claude Desktop launches with a minimal PATH. If npx isn't found, use its absolute path (e.g. /usr/local/bin/npx, or your nvm path) — and add a matching "PATH" entry to env if it relies on a versioned node.
  • Fully quit and reopen Claude Desktop (Cmd-Q) after editing — the config is read only at launch.

Cursor

Settings → MCP → Add server

Type:    HTTPURL:     https://app.writespace.io/mcpHeader:  Authorization: Bearer ws_pat_YOUR_TOKEN_HERE

Gemini CLI

~/.gemini/settings.json

json
{  "mcpServers": {    "writespace": {      "httpUrl": "https://app.writespace.io/mcp",      "headers": {        "Authorization": "Bearer ws_pat_YOUR_TOKEN_HERE"      }    }  }}

Any other spec-compliant MCP client works the same way: HTTP transport + Authorization: Bearer header.

Tools

Every tool except list_workspaces takes a workspace_id — call list_workspaces first to discover them.

ToolDescription
list_workspacesList every workspace you belong to
list_foldersList folders, optionally nested under a parent
list_docsList documents, optionally scoped to a folder; returns metadata per row
get_docFetch a doc by ID — canonical Tiptap JSON + markdown rendering + metadata
searchRanked full-text search with <<match>> snippets
query_docsFind docs whose metadata contains a JSON object (Postgres JSONB @>)
create_docCreate a doc from Tiptap JSON or markdown
update_docUpdate title, content, or metadata (shallow-merge; null deletes a key)
upsert_docCreate-or-update by title within an optional folder — idempotent
append_to_docAppend markdown / Tiptap JSON to an existing doc
replace_sectionReplace a section's body by its heading text — surgical edits
delete_docDelete a doc by ID
move_docMove a doc to another folder (folder_id: null → root)
create_folderCreate a folder, optionally nested
rename_folderRename a folder — IDs stay stable, links don't break
delete_folderDelete a folder and its contents

Full reference with format notes and troubleshooting: writespace.io/connect

Design notes

  • Lossless content, two formats — reads return both content (Tiptap JSON) and content_markdown; writes accept either. Markdown round-trips for everything the editor supports, including tables, task lists, and mermaid diagrams.
  • Lean write responses — write tools return only metadata by default, saving 80–95% of the payload on long docs. Pass include_content: true to echo the body.
  • Structured metadata — every doc carries a JSONB metadata field. Treat it as queryable frontmatter: write it, shallow-merge it, query by containment.
  • Stable cross-doc links — reference docs as writespace://doc/<id>; IDs survive renames and moves.
  • Live reload — MCP writes notify open editors over Realtime; they refetch in the same tab.

Use cases

Auth & security

  • Per-agent personal access tokens, issued and revoked from Settings — scoped to your account, easy to rotate
  • Tokens are shown once at creation
  • Standard Authorization: Bearer ws_pat_… header; spec-compliant HTTP transport

Links


© 2026 Writespace · Pro is $5/user/month, free tier available.

來源:README.md,提交 1d48fef

工具

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

版本歷史

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

評分

已滿足適用檢查項的 85%

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

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

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

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