Config

io.github.rog0x由 GitHub 帳號 rog0x 發布v1.0.2更新於 Oct 24, 2026

JSON, YAML, TOML, INI config tools for AI agents

已驗證STDIO僅桌面檔案與儲存開發者工具

概覽

AI 產生的概覽

一個本機 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 中

  1. 開啟 儀表板中的 Config,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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

bash
npm installnpm run build

MCP Configuration

json
{  "mcpServers": {    "config-tools": {      "command": "node",      "args": ["D:/products/mcp-servers/mcp-config-tools/dist/index.js"]    }  }}

Dependencies

  • @modelcontextprotocol/sdk — MCP protocol SDK
  • yaml — YAML parser and serializer
  • Built-in TOML and INI parsers (zero extra dependencies)

來源:README.md,提交 98390a5

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.2最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。