
Config
io.github.rog0x由 GitHub 账号 rog0x 发布v1.0.2更新于 Oct 24, 2026
JSON, YAML, TOML, INI config tools for AI agents
概览
一个本地 MCP 服务器,让助手解析、校验、合并、转换和比较 JSON、YAML、TOML 与 INI 配置文件。
- 可以做什么
- 解析、校验、深度合并和比较 JSON/JSONC 配置内容,JSONC 输入可含注释和尾随逗号。解析和校验 YAML,在 YAML 与 JSON 之间转换,并按 docker-compose、GitHub Actions 或 Kubernetes 模式校验 YAML。解析 Cargo.toml、pyproject.toml 等 TOML 文件,按点路径提取小节、列出依赖并比较语义化版本。解析 INI 与 properties 文件,列出小节、读取单个值,并与 JSON 互相转换。比较任意受支持格式的两个配置文件,包括跨格式比较,按嵌套路径显示新增、删除和修改。
- 适用场景
- 适合助手需要跨格式检查、整理或协调配置文件的场景,例如按模式检查 YAML 文件、合并覆盖配置,或查看两个配置版本之间的差异。
- 运行要求
- 作为本地进程通过 stdio 运行,从 npm 包安装并需先构建;README 的示例配置指向本地构建后的入口文件。未声明账号、API 密钥或环境变量。
安装
在 SourceWeft 中
- 打开 控制台中的 Config,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
mcp-config-tools
MCP server providing configuration file tools for AI agents. Parse, validate, merge, convert, and diff configuration files across all common formats.
Tools
json_config
Read, validate, deep merge, and diff JSON/JSONC configuration files.
- parse — Parse JSONC (JSON with comments and trailing commas)
- validate — Check if content is valid JSON/JSONC
- merge — Deep merge two JSON configs (overlay wins on conflicts)
- diff — Find structural differences between two JSON configs
yaml_config
Read, validate, and convert YAML configuration files.
- parse — Parse YAML content to structured data
- validate — Check if content is valid YAML
- to_json — Convert YAML to JSON
- from_json — Convert JSON to YAML
- validate_schema — Validate against docker-compose, GitHub Actions, or Kubernetes schemas
toml_parser
Parse TOML configuration files (Cargo.toml, pyproject.toml, etc.).
- parse — Parse TOML content to structured data
- extract_section — Extract a specific section by dot-path
- list_deps — List dependencies from Cargo.toml or pyproject.toml
- compare_versions — Compare two semantic version strings
ini_parser
Parse INI and properties configuration files.
- parse — Parse INI content into sections and key-value pairs
- get_sections — List all section names
- get_value — Get a specific key from a section
- to_json — Convert INI to JSON
- from_json — Convert JSON back to INI format
config_diff
Compare two configuration files in any supported format.
- Auto-detects file format (JSON, YAML, TOML, INI)
- Cross-format comparison (e.g., compare a YAML file against a JSON file)
- Shows additions, removals, and changes with full nested paths
Setup
MCP Configuration
Dependencies
@modelcontextprotocol/sdk— MCP protocol SDKyaml— YAML parser and serializer- Built-in TOML and INI parsers (zero extra dependencies)
来源:README.md,提交 98390a5
工具
0版本历史
1- v1.0.2最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。