dsh-novel-forge

v1.11.1
io.github.huangziyuan-general/dsh-novel-forge Checked 8 hours ago Published 4 days ago

中文长篇写作 MCP Server:24 个工具,用硬门禁治理 AI 写长篇的失忆、设定崩坏与 AI 味

Values you need

VariableWhat it is
NOVEL_FORGE_ROOTrequired 小说工作区根目录(一本小说 = 工作区里的一个目录);GUI 客户端 cwd 不可控,务必显式设置

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add dsh-novel-forge -e 'NOVEL_FORGE_ROOT=<NOVEL_FORGE_ROOT>' -- npx -y --package=dsh-novel-forge@1.11.1 dsh-novel-forge-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "dsh-novel-forge": {
      "args": [
        "-y",
        "--package=dsh-novel-forge@1.11.1",
        "dsh-novel-forge-mcp"
      ],
      "command": "npx",
      "env": {
        "NOVEL_FORGE_ROOT": "<NOVEL_FORGE_ROOT>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "dsh-novel-forge": {
      "args": [
        "-y",
        "--package=dsh-novel-forge@1.11.1",
        "dsh-novel-forge-mcp"
      ],
      "command": "npx",
      "env": {
        "NOVEL_FORGE_ROOT": "<NOVEL_FORGE_ROOT>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "NOVEL_FORGE_ROOT",
      "id": "novel-forge-root",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "dsh-novel-forge": {
      "args": [
        "-y",
        "--package=dsh-novel-forge@1.11.1",
        "dsh-novel-forge-mcp"
      ],
      "command": "npx",
      "env": {
        "NOVEL_FORGE_ROOT": "${input:novel-forge-root}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.dsh-novel-forge]
command = "npx"
args = ["-y", "--package=dsh-novel-forge@1.11.1", "dsh-novel-forge-mcp"]
env = { "NOVEL_FORGE_ROOT" = "<NOVEL_FORGE_ROOT>" }

For AI agents

  1. Ask the user for: NOVEL_FORGE_ROOT. 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: novel_project, novel_outline, novel_character, novel_worldbook, novel_scene, novel_briefing, novel_write_chapter, novel_ledger, ….
  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