codefmt
Format/lint JS, Python, HubL for automation platforms. Tools: format_code, format_json, ask_codefmt
사용해야 할까요
품질 및 안전성
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"codefmt": {
"url": "https://codefmt.dev/api/mcp"
}
}
}원격 엔드포인트
https://codefmt.dev/api/mcpstreamable-http할 수 있는 일
도구 목록
도구 (3)
🟢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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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
}커뮤니티
증거