Token导航 LogoToken导航

MCP Server · 开发工具

Xcstrings Crud

一个用于高效管理xcstrings(String Catalog)文件的CLI工具和MCP服务器,支持CRUD操作,适用于多语言本地化项目。

未说明官方级别未说明来源级核验工具 24
Swift开发工具Claude命令行工具

快速开始

公开资料没有提供安装命令,按仓库或官方文档接入。
作者 / 组织
Ryu0118
提供方
Ryu0118

工具数量

24

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

23

仓库热度

收录来源

1 个

MCP World

选型结论

Xcstrings Crud 属于开发工具类 MCP Server,公开资料标注 24 个工具,通过传输方式未标注接入,适配 Claude,没有现成的安装命令;接入前先确认权限范围。

分类

开发工具

传输方式

未说明

认证方式

无需认证

部署方式

公开资料未说明

安装与配置

公开目录没有给出安装命令,需要按仓库 README安装;下面按同类条目的通用流程说明。

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    先确认运行方式

    公开资料没有标注传输方式,先看仓库 README,确认是本地进程还是远程地址。

  2. 2

    获取服务

    公开目录没有给出安装命令,按仓库 README里的步骤安装或获取服务。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 24 个工具,随便调一个只读工具确认能返回结果。

接入前确认

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

公开资料仍需确认:安装命令

详细介绍

xcstring积垢

CLI工具和MCP服务器,用于对xcstring(字符串目录)文件进行CRUD操作。

动机

大型xcstring文件可以包含数千个跨多种语言的本地化键,从而产生大量的JSON文件。当人工智能助手(如Claude Code)直接读取这些文件时,它们会消耗大量代币——可能超过上下文限制或迅速耗尽代币预算。

此工具提供 令牌高效 通过提供有针对性的CRUD操作:

  • 只查询您需要的内容:获取特定密钥或语言,而不是加载整个文件
  • 增量更新:在不阅读完整内容的情况下添加或更新单个翻译
  • 快速统计:无需解析所有条目即可获取覆盖率和进度摘要
  • 字符串目录语义:保留Xcode元数据,例如 shouldTranslate,并从不翻译列表和覆盖率总计中排除不可翻译的密钥
  • 字符串目录元数据:在读写操作期间保留Xcode元数据,如自动生成的注释

通过使用MCP服务器或CLI,AI助手可以处理任何大小的xcstring文件,同时将令牌使用量降至最低。

安装

使用Mise

mise use -g ubi:Ryu0118/xcstrings-crud

使用巢(mtj0928/巢)

nest install Ryu0118/xcstrings-crud

从源代码构建

git clone https://github.com/Ryu0118/xcstrings-crud.git
cd xcstrings-crud
swift build -c release

二进制将位于 .build/release/xcstrings-crud.

MCP服务器

MCP服务器可作为子命令使用:

xcstrings-crud mcp

配置

添加到您的Claude Code MCP设置中:

{
  "mcpServers": {
    "xcstrings-crud": {
      "command": "xcstrings-crud",
      "args": ["mcp"]
    }
  }
}

可用工具

工具说明
xcstrings_create_file创建新的xcstring文件
xcstrings_list_keys列出所有密钥
xcstrings_list_languages列出支持的语言
xcstrings_list_untranslated列出未翻译的密钥
xcstrings_list_stale列出提取状态过时的密钥
xcstrings_batch_list_stale列出多个文件中的过时密钥
xcstrings_get_source_language获取源语言
xcstrings_get_key获取密钥的翻译
xcstrings_check_key检查钥匙是否存在;当未找到NFKC等效密钥时,建议使用
xcstrings_check_coverage检查关键语言覆盖率
xcstrings_stats_coverage获取总体覆盖统计数据
xcstrings_stats_progress按语言获取翻译进度
xcstrings_batch_stats_coverage一次覆盖多个文件
xcstrings_batch_check_keys检查是否存在多个密钥
xcstrings_batch_add_translations一次为多个键添加翻译
xcstrings_batch_update_translations一次更新多个密钥的翻译
xcstrings_add_translation添加单一语言的翻译
xcstrings_add_translations添加多种语言的翻译
xcstrings_update_translation更新单一语言的翻译
xcstrings_update_translations更新多种语言的翻译
xcstrings_rename_key重命名密钥
xcstrings_delete_key删除整个密钥
xcstrings_delete_translation删除单一语言的翻译
xcstrings_delete_translations删除多种语言的翻译

CLI使用情况

创建操作

# Create a new xcstrings file
xcstrings-crud create path/to/Localizable.xcstrings

# Create with specific source language
xcstrings-crud create path/to/Localizable.xcstrings --source-language ja

# Overwrite existing file
xcstrings-crud create path/to/Localizable.xcstrings --overwrite

读取操作

# List all keys
xcstrings-crud list keys --file path/to/Localizable.xcstrings

# List languages
xcstrings-crud list languages --file path/to/Localizable.xcstrings

# List untranslated keys for a language
xcstrings-crud list untranslated --file path/to/Localizable.xcstrings --lang ja
# Keys marked `"shouldTranslate": false` are omitted from untranslated results.

# List stale keys (potentially unused)
xcstrings-crud list stale --file path/to/Localizable.xcstrings

# List stale keys across multiple files
xcstrings-crud batch stale -f file1.xcstrings file2.xcstrings file3.xcstrings

# Get source language
xcstrings-crud get source-language --file path/to/Localizable.xcstrings

# Get translations for a key
xcstrings-crud get key "Hello" --file path/to/Localizable.xcstrings
xcstrings-crud get key "Hello" --file path/to/Localizable.xcstrings --lang ja

# Check if key exists
xcstrings-crud check key "Hello" --file path/to/Localizable.xcstrings

# Check key coverage
xcstrings-crud check coverage "Hello" --file path/to/Localizable.xcstrings
# Non-translatable keys are treated as complete.

# Get overall statistics
xcstrings-crud stats coverage --file path/to/Localizable.xcstrings
# Coverage totals exclude keys marked `"shouldTranslate": false`.

# Get progress for a language
xcstrings-crud stats progress --file path/to/Localizable.xcstrings --lang ja

# Get batch coverage for multiple files
xcstrings-crud stats batch-coverage -f file1.xcstrings file2.xcstrings file3.xcstrings

更新操作

# Add translation (single language)
xcstrings-crud add key "Hello" --file path/to/Localizable.xcstrings --lang ja --value "こんにちは"

# Add translation (multiple languages)
xcstrings-crud add key "Hello" --file path/to/Localizable.xcstrings -t ja:こんにちは en:Hello

# Update translation (single language)
xcstrings-crud update key "Hello" --file path/to/Localizable.xcstrings --lang ja --value "こんにちは!"

# Update translations (multiple languages)
xcstrings-crud update key "Hello" --file path/to/Localizable.xcstrings -t ja:こんにちは en:Hello de:Hallo

# Rename key
xcstrings-crud rename key "Hello" --file path/to/Localizable.xcstrings --to "Greeting"

删除操作

# Delete entire key
xcstrings-crud delete key "Hello" --file path/to/Localizable.xcstrings

# Delete translation for specific language only
xcstrings-crud delete key "Hello" --file path/to/Localizable.xcstrings -l ja

# Delete translations for multiple languages
xcstrings-crud delete key "Hello" --file path/to/Localizable.xcstrings -l ja en fr

批量操作

# List stale keys across multiple files
xcstrings-crud batch stale -f file1.xcstrings file2.xcstrings file3.xcstrings

# Check if multiple keys exist
xcstrings-crud batch check --file path/to/Localizable.xcstrings -k Hello Goodbye Welcome

# Check with specific language
xcstrings-crud batch check --file path/to/Localizable.xcstrings -k Hello Goodbye -l ja

# Add translations for multiple keys at once
xcstrings-crud batch add --file path/to/Localizable.xcstrings \
  -e "Hello=ja:こんにちは,en:Hello" \
  -e "Goodbye=ja:さようなら,en:Goodbye"

# Add with overwrite (replace existing translations)
xcstrings-crud batch add --file path/to/Localizable.xcstrings --overwrite \
  -e "Hello=ja:こんにちは,en:Hello"

# Update translations for multiple keys at once
xcstrings-crud batch update --file path/to/Localizable.xcstrings \
  -e "Hello=ja:こんにちは!,en:Hello!" \
  -e "Goodbye=ja:さようなら!"

常用选项

  • `--file

`:xcstring文件路径(必需)

  • --pretty:打印精美的JSON输出

需求

  • macOS 13+
  • Swift 6.0+

许可证

麻省理工学院

工具与能力

工具数量

24

资源数量

0

提示词数量

0

能力标签

Swift本地部署本地化工具字符串管理多语言支持开发工具CLI工具

支持客户端

Claude

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

让助手直接读代码

把仓库、提交记录和 issue 交给模型检索,补全和重构时不用来回复制文件。

在对话里跑命令

触发构建、测试和脚本,执行结果直接回到上下文,省去切终端。

接进开发流程

把 PR、CI 状态和代码审查接进助手,减少在几个工具之间跳。

选择建议

值得选的地方

  • 工具数量 24 个,一次接入能覆盖的操作比单点工具更全。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • 公开资料没有可直接复制的安装命令,第一次接入要自己找入口。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在开发工具场景里让模型直接调用外部能力的人。
  • 已经在用 Claude 的用户,接入路径最短。
  • 愿意照着官方文档一步步配环境的人。

不太适合

  • 希望一条命令就装好、不想看文档的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
Xcstrings Crud

MCP World · 本页

24未说明未标注1 个2026-05-17
Git 838e2ec1

MCP World

12stdio有2 个2026-05-17
Markitdown MCP 2c653a5f

MCP World

1stdio有1 个2026-05-17
Context7 MCP C671e75a

MCP World

0stdio有1 个2026-05-17
Context7 831acf40

MCP World

0stdio有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

Xcstrings Crud 怎么安装?

公开目录没有给出可以直接复制的安装命令,需要按仓库 README里的步骤安装;装好后写进客户端的 MCP 配置再重启。

Xcstrings Crud 怎么在 Claude Desktop、Cursor 里配置?

它是传输方式未标注,客户端配置里要写启动命令和参数,运行环境是 未标注;保存后完全退出客户端再打开,配置才会生效。

Xcstrings Crud 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Xcstrings Crud 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Xcstrings Crud 支持哪些客户端?

公开资料标注支持 Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP