codefmt

dev.codefmt由 codefmt.dev 發布官方發布者v1.0.0更新於 Oct 24, 2026

Format/lint JS, Python, HubL for automation platforms. Tools: format_code, format_json, ask_codefmt

已驗證Streamable HTTP可網頁執行開發者工具資料與分析

概覽

AI 產生的概覽

讓助理格式化與檢查自動化平台用的 JavaScript、Python、HubL 程式碼,並整理 JSON。

可以做什麼
提供三個工具:format_code 可格式化並檢查 JavaScript、Python 或 HubL 程式碼,會先套上各自動化平台的執行環境外殼再進行格式化,並回傳格式化結果與 lint 診斷;format_json 可美化或壓縮 JSON,並可選擇排序物件鍵;ask_codefmt 以自然語言回答關於其格式化與 lint 功能的問題,附上引用來源與信心分數。
適用情境
適合在撰寫或除錯 Zapier、n8n、Pipedream、Make、HubSpot 等平台的自動化腳本時使用,尤其是程式碼含有頂層 await、裸 return 或平台注入的全域變數而讓一般格式化工具失效的情況。也可用於整理或壓縮 JSON 設定與資料。
執行需求
需要能連線至遠端端點 codefmt.dev 的網路存取;不需安裝套件、不需帳號或 API 金鑰。
安裝前請注意
ask_codefmt 會把自然語言問題送往第三方服務並回傳引用來源;format_code 與 format_json 會把程式碼或 JSON 內容傳送至遠端處理,機敏資料不宜放入。

安裝

在 SourceWeft 中

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

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/dev.codefmt%2Fcodefmt/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "codefmt": {
      "type": "http",
      "url": "https://codefmt.dev/api/mcp"
    }
  }
}

工具

3

format_code

Format code for automation platforms

Format and lint JavaScript, Python, or HubL code for Zapier, n8n, Pipedream, Make, or HubSpot. Wraps the source in each platform's runtime shell before formatting so top-level await, bare return, and injected globals don't break the formatter. Returns formatted code plus lint diagnostics.

輸入參數code必填languageplatform必填

ask_codefmt

Ask codefmt

Ask a natural-language question about codefmt: formatting and linting JavaScript, Python, and HubL for automation platforms (Zapier, n8n, Pipedream, Make, HubSpot). Returns a grounded answer drawn from codefmt's own content with cited source URLs and a confidence score (0-1, how much of the question the answer covers, weighted toward its rarer terms); off-topic or too-weakly-matched questions are refused rather than guessed.

輸入參數query必填

format_json

Format a JSON document

Format (pretty-print or minify) a JSON document, optionally sorting object keys. Number literals are preserved exactly (64-bit IDs safe); parse errors report the exact line and column.

輸入參數json必填indentsort_keys

版本歷史

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

評分

已滿足適用檢查項的 72%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分

    請在註冊中心條目中發布圖示。

  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。