Writing MCP

v3.29.3
io.github.hannasdev/mcp-writing Checked 10 hours ago Published 5 months ago

Metadata-first fiction editing and reasoning tools for long-form writing projects.

Values you need

VariableWhat it is
WRITING_SYNC_DIRrequired Path to the manuscript sync folder that mcp-writing indexes and edits.
DB_PATHoptional Optional path for the SQLite index database used by the server.
OWNERSHIP_GUARD_MODEoptional Startup ownership policy for sync-folder files. Default: warn

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-writing -e 'WRITING_SYNC_DIR=<WRITING_SYNC_DIR>' -- npx -y @hanna84/mcp-writing@3.29.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-writing": {
      "args": [
        "-y",
        "@hanna84/mcp-writing@3.29.3"
      ],
      "command": "npx",
      "env": {
        "WRITING_SYNC_DIR": "<WRITING_SYNC_DIR>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-writing": {
      "args": [
        "-y",
        "@hanna84/mcp-writing@3.29.3"
      ],
      "command": "npx",
      "env": {
        "WRITING_SYNC_DIR": "<WRITING_SYNC_DIR>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "WRITING_SYNC_DIR",
      "id": "writing-sync-dir",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-writing": {
      "args": [
        "-y",
        "@hanna84/mcp-writing@3.29.3"
      ],
      "command": "npx",
      "env": {
        "WRITING_SYNC_DIR": "${input:writing-sync-dir}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-writing]
command = "npx"
args = ["-y", "@hanna84/mcp-writing@3.29.3"]
env = { "WRITING_SYNC_DIR" = "<WRITING_SYNC_DIR>" }

For AI agents

  1. Ask the user for: WRITING_SYNC_DIR. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: describe_workflows, sync, diagnose_structure, export_structure_snapshot, export_project_backup, diagnose_project_backups, restore_structure_from_export, restore_project_from_backup, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json