这是一个 MCP 服务器,可返回文字数,助力大语言模型(LLM)准确生成内容。
Mozisu MCP 服务器能够返回文字数,帮助大语言模型准确生成内容,支持日语和表情符号等多字节字符的计数。下面将为你介绍该服务器的使用流程。
# 克隆仓库
git clone https://github.com/Atotti/mozisu-mcp-server.git
cd mozisu-mcp-server
# 安装依赖项
go mod download
# 编译
task build
在 claude_desktop_config.json
中添加以下设置:
{
"mcpServers": {
"mozisu-mcp-server": {
"command": "echo",
"args": ["respawn"]
}
}
}
# 在终端中运行
cd /Applications/Claude\ Desktop.app/Contents/Resources/app
node_modules/.bin/cdctl server start --port 8090
然后在其他窗口运行:
cd /Applications/Claude\ Desktop.app/Contents/Resources/app
npm run dev
# 在终端中运行
cd /Applications/Claude\ Desktop.app/Contents/Resources/app
node_modules/.bin/cdctl shell
输入以下内容:
> cd /Users/username/path/to/mozisu-mcp-server
> npm run dev
打开浏览器,访问地址:http://localhost:8090
git checkout -b feature/amazing-feature
)。git commit -m 'Add some amazing feature'
)。git push origin feature/amazing-feature
)。对于 bug 报告或功能请求,请创建 Issue。
此项目在 MIT License 下开源。