Token导航 LogoToken导航TokenDH.com
Writing Tools MCP logo
运维云端未说明官方级别未说明来源级核验

Writing Tools MCP

MCP Server

一个用Go实现的MCP服务器,提供多种文本处理功能,包括字符计数、对话比例分析等。

工具数

5

提示词数

0

GitHub Stars

0

资源数

0
GoClaude云端部署Claude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

wishmaster127

提供方

wishmaster127

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

编写工具mcp

Go实施的MCP服务器。stdio 在transport中运行。

交付工具

  • wt_timestamp\

当前时间 YYYYMMDDHHMM 格式导出文件时,将会显示此对话框。\ 出力: {"timestamp": "202602091530"}

  • wt_count_chars\

返回整个文件的UTF-8字符数(换行代码) \n, \r 除外。\ 入力: {"path": "/home/user/project/file.txt"}\ 出力: {"path": "/home/user/project/file.txt", "character_count": 1234}\ path 支持绝对路径和相对路径(相对路径基于服务器启动目录)。

  • wt_count_chars_range\

单击功能区上 start_lineend_line 将条目添加到文档注册表。\ 行号包含1开始、两端end_line 如果超过实际文件行数,请将对象设置为存在的行。\ 入力: {"path": "./file.txt", "start_line": 10, "end_line": 40}\ 出力: {"characters": 842, "lines": 31}

  • wt_dialogue_ratio\

返回整个文件的对白文字数、地的文字数、比例。\ 台词是 「...」 / 『...』 中所述修改相应参数的值。换行符和引号本身不包含在字符数中。\ 入力: {"path": "./novel.txt"}\ 出力: {"path":"./novel.txt","dialogue_chars":1200,"narration_chars":1800,"total_chars":3000,"dialogue_ratio":0.4,"narration_ratio":0.6}

  • wt_dialogue_ratio_range\

以指定行范围为对象,返回对白文字数、地的语句字数、比率。\ 行号包含1开始、两端。\ 入力: {"path":"./novel.txt","start_line":120,"end_line":180}\ 出力: {"path":"./novel.txt:120-180","dialogue_chars":420,"narration_chars":580,"total_chars":1000,"dialogue_ratio":0.42,"narration_ratio":0.58,"lines":61}

wt_count_chars_range 设想用途

  • 小说特定场景的字数检查
  • 节单位的分量确认
  • 文本块长度测量
  • 部分文档分析

动作要件

  • 转到1.25.3

构建方法

4批量构建目标(建议)

使用以下命令将Linux/macOS(Intel)/macOS(Apple Silicon)/Windows四种 dist/ 中所述修改相应参数的值。

go run ./cmd/buildall

为当前环境构建

go build -o writing-tools-mcp .

按操作系统交叉编译

mkdir -p dist

# Linux (x86_64)
GOOS=linux GOARCH=amd64 go build -o dist/writing-tools-mcp-linux-amd64 .

# macOS (Intel)
GOOS=darwin GOARCH=amd64 go build -o dist/writing-tools-mcp-darwin-amd64 .

# macOS (Apple Silicon)
GOOS=darwin GOARCH=arm64 go build -o dist/writing-tools-mcp-darwin-arm64 .

# Windows (x86_64)
GOOS=windows GOARCH=amd64 go build -o dist/writing-tools-mcp-windows-amd64.exe .

実行方法

go run .

或运行构建的二进制。

./writing-tools-mcp

如何添加到MCP设置

stdio 对较大场景进行渲染期间已观察到该故障。\ command 中描述的场景,使用下列步骤创建明细表,以便在概念设计中分析体量的周长。

例: C:/path/to/writing-tools-mcp-windows-amd64.exe

Gemini CLI(~/.gemini/settings.json)

{
  "mcpServers": {
    "writing-tools-mcp": {
      "command": "C:/path/to/writing-tools-mcp-windows-amd64.exe",
      "args": []
    }
  }
}

克劳德桌面(claude_desktop_config.json)

mcpServers 将条目添加到文档注册表。

{
  "mcpServers": {
    "writing-tools-mcp": {
      "command": "C:/path/to/writing-tools-mcp-windows-amd64.exe",
      "args": []
    }
  }
}

Claude Desktop配置文件示例:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • 窗户: %APPDATA%/Claude/claude_desktop_config.json

目录标签

目录标签

GoClaude云端部署文本分析本地部署字符计数对话比例Go语言

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

5

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP