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 分