codefmt

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

Should I use this

Quality & Safety

A
Description quality
100%
Schema completeness
100%
Naming quality
93%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~516Tokens (tool definitions)
~1.0 KBTypical response size
Minimal attention impact (0.40% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

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

Remote endpoints

https://codefmt.dev/api/mcpstreamable-http

What it can do

Tool inventory

Tools (3)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢format_code(code, platform, language)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "Source code to format (≤50KB)."
    },
    "platform": {
      "type": "string",
      "enum": [
        "zapier",
        "n8n",
        "pipedream",
        "make",
        "hubspot",
        "hubl"
      ],
      "description": "Target automation platform."
    },
    "language": {
      "type": "string",
      "enum": [
        "javascript",
        "python"
      ],
      "description": "Defaults to javascript. zapier, n8n, pipedream, make, and hubspot support python; hubl does not."
    }
  },
  "required": [
    "code",
    "platform"
  ],
  "additionalProperties": false
}
🟢ask_codefmt(query)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "The natural-language question about codefmt."
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false
}
🟢format_json(json, indent, sort_keys)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "json": {
      "type": "string",
      "description": "The JSON text to format."
    },
    "indent": {
      "type": "string",
      "enum": [
        "2",
        "4",
        "tab",
        "minify"
      ],
      "description": "Indentation: '2' or '4' spaces, 'tab', or 'minify'. Defaults to '2'."
    },
    "sort_keys": {
      "type": "boolean",
      "description": "Sort object keys alphabetically. Defaults to false."
    }
  },
  "required": [
    "json"
  ],
  "additionalProperties": false
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded3 tools
verifiedversion not recorded3 tools