BRAINIAC Source Code Structure & Correctness Checks

Paid Source Code Structure & Correctness Checks API via x402. Unpaid tool calls return 402.

사용해야 할까요

품질 및 안전성

A
설명 품질
100%
스키마 완전성
98%
이름 품질
50%
오염 위험
100%
권한 일치
100%
프로토콜 준수
100%

발견 사항 (4)

  • LOWTool 'code_maintainability-index' doesn't follow camelCase/snake_casecode_maintainability-index에서
  • LOWTool 'code_change-coupling-analyze' doesn't follow camelCase/snake_casecode_change-coupling-analyze에서
  • LOWTool 'code_concurrency-hazard-detect' doesn't follow camelCase/snake_casecode_concurrency-hazard-detect에서
  • LOWTool 'code_error-propagation-audit' doesn't follow camelCase/snake_casecode_error-propagation-audit에서

도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.

컨텍스트 비용

~2,559토큰 (도구 정의)
~6.0 KB일반적인 응답 크기
중간 정도의 주의 영향 (128k 컨텍스트의 2.00%)

이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.

설치

원클릭 설치

`claude_desktop_config.json` 파일에 다음을 추가하세요:

{
  "mcpServers": {
    "code": {
      "url": "https://www.brainiac.software/mcp/code"
    }
  }
}

원격 엔드포인트

https://www.brainiac.software/mcp/codestreamable-http

할 수 있는 일

도구 목록

도구 (4)

🟢 읽기 전용🟡 쓰기🔴 삭제⚪ 알 수 없음
🟢code_maintainability-index(language, source, ast)

Build a structural AST from a caller-supplied JavaScript, TypeScript, Python, or Go snippet, or from a caller-supplied AST, and score cyclomatic complexity, cognitive load, nesting depth, and duplicated function Docs: https://www.brainiac.software/api/code/maintainability-index Keywords: before you merge or rely on the supplied code, language, source, ast, maintainability score, maintainability_score, cognitive load index, cognitive_load_index, technical debt estimate hours, technical_debt_estimate_hours, audit receipt, audit_receipt, Index source maintainability, maintainability index.

입력 스키마

{
  "type": "object",
  "properties": {
    "language": {
      "description": "language, string, one of javascript, typescript, python, go. Optional.",
      "type": "string",
      "enum": [
        "javascript",
        "typescript",
        "python",
        "go"
      ]
    },
    "source": {
      "description": "source, string, length 1 to 100000. Optional.",
      "type": "string",
      "minLength": 1,
      "maxLength": 100000
    },
    "ast": {
      "description": "ast, object. Optional.",
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{0,39}$",
          "description": "type, string. Required."
        },
        "name": {
          "description": "name, string, length 1 to 80. Optional.",
          "type": "string",
          "minLength": 1,
          "maxLength": 80
        },
        "children": {
          "description": "children, array. Optional.",
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_-]{0,39}$",
                "description": "type, string. Required."
              },
              "name": {
                "description": "name, string, length 1 to 80. Optional.",
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "children": {
                "description": "children, array. Optional.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {},
                  "description": "item. Value."
                }
              }
            },
            "required": [
              "type"
            ],
            "description": "item, object. Required."
          }
        }
      },
      "required": [
        "type"
      ]
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

출력 스키마

{
  "type": "object",
  "properties": {
    "maintainability_score": {
      "type": "number",
      "description": "maintainability_score. Number."
    },
    "cognitive_load_index": {
      "type": "number",
      "description": "cognitive_load_index. Number."
    },
    "technical_debt_estimate_hours": {
      "type": "number",
      "description": "technical_debt_estimate_hours. Number."
    },
    "audit_receipt": {
      "type": "string",
      "description": "audit_receipt. String."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢code_change-coupling-analyze(files, module_edges, change_sets, proposed_paths)

Identify files outside a proposed change set that are coupled through supplied module edges, import paths, or historical co-change sets. Docs: https://www.brainiac.software/api/code/change-coupling-analyze Keywords: before you merge or rely on the supplied code, files, proposed paths, module edges, change sets, findings, summary, explanations, Analyze change coupling, change coupling analyze.

입력 스키마

{
  "type": "object",
  "properties": {
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 260,
            "description": "path, string, length 1 to 260. Required."
          },
          "language": {
            "description": "language, string, one of javascript, typescript, python, go, other. Optional.",
            "type": "string",
            "enum": [
              "javascript",
              "typescript",
              "python",
              "go",
              "other"
            ]
          },
          "source": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100000,
            "description": "source, string, length 1 to 100000. Required."
          }
        },
        "required": [
          "path",
          "source"
        ],
        "description": "item, object. Required."
      },
      "description": "files, array. Required."
    },
    "module_edges": {
      "description": "module edges, array. Optional.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "from_path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 260,
            "description": "from path, string, length 1 to 260. Required."
          },
          "to_path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 260,
            "description": "to path, string, length 1 to 260. Required."
          },
          "kind": {
            "description": "kind, string, one of import, call, data, other. Optional.",
            "type": "string",
            "enum": [
              "import",
              "call",
              "data",
              "other"
            ]
          }
        },
        "required": [
          "from_path",
          "to_path"
        ],
        "description": "item, object. Required."
      }
    },
    "change_sets": {
      "description": "change sets, array. Optional.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "id, string, length 1 to 120. Required."
          },
          "paths": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 260,
              "description": "item, string, length 1 to 260. Required."
            },
            "description": "paths, array. Required."
          }
        },
        "required": [
          "id",
          "paths"
        ],
        "description": "item, object. Required."
      }
    },
    "proposed_paths": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 260,
        "description": "item, string, length 1 to 260. Required."
      },
      "description": "proposed paths, array. Required."
    }
  },
  "required": [
    "files",
    "proposed_paths"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

출력 스키마

{
  "type": "object",
  "properties": {
    "findings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "code. String."
          },
          "severity": {
            "type": "string",
            "description": "severity. String."
          },
          "changed_path": {
            "type": "string",
            "description": "changed_path. String."
          },
          "coupled_path": {
            "type": "string",
            "description": "coupled_path. String."
          },
          "evidence": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "item. String."
            },
            "description": "evidence. Array."
          },
          "remediation": {
            "type": "string",
            "description": "remediation. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "findings. Array."
    },
    "summary": {
      "type": "object",
      "properties": {
        "proposed_paths": {
          "type": "number",
          "description": "proposed_paths. Number."
        },
        "findings": {
          "type": "number",
          "description": "findings. Number."
        }
      },
      "additionalProperties": {},
      "description": "summary. Object."
    },
    "explanations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "explanations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢code_concurrency-hazard-detect(files)

Flag potential race and shared-state hazards in caller-supplied source using deterministic pattern matches for async/concurrency markers, shared globals, and TOCTOU-shaped spans. Docs: https://www.brainiac.software/api/code/concurrency-hazard-detect Keywords: before you merge or rely on the supplied code, files, findings, summary, explanations, Detect concurrency hazards, concurrency hazard detect, Source Code Structure & Correctness Checks.

입력 스키마

{
  "type": "object",
  "properties": {
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 260,
            "description": "path, string, length 1 to 260. Required."
          },
          "language": {
            "description": "language, string, one of javascript, typescript, python, go, other. Optional.",
            "type": "string",
            "enum": [
              "javascript",
              "typescript",
              "python",
              "go",
              "other"
            ]
          },
          "source": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100000,
            "description": "source, string, length 1 to 100000. Required."
          }
        },
        "required": [
          "path",
          "source"
        ],
        "description": "item, object. Required."
      },
      "description": "files, array. Required."
    }
  },
  "required": [
    "files"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

출력 스키마

{
  "type": "object",
  "properties": {
    "findings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "code. String."
          },
          "severity": {
            "type": "string",
            "description": "severity. String."
          },
          "path": {
            "type": "string",
            "description": "path. String."
          },
          "line": {
            "type": "number",
            "description": "line. Number."
          },
          "evidence": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "item. String."
            },
            "description": "evidence. Array."
          },
          "remediation": {
            "type": "string",
            "description": "remediation. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "findings. Array."
    },
    "summary": {
      "type": "object",
      "properties": {
        "files": {
          "type": "number",
          "description": "files. Number."
        },
        "findings": {
          "type": "number",
          "description": "findings. Number."
        }
      },
      "additionalProperties": {},
      "description": "summary. Object."
    },
    "explanations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "explanations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}
🟢code_error-propagation-audit(files)

Find empty catches, swallowed promise rejections, logged-without-rethrow spans, and throw sites without local handlers in caller-supplied source. Docs: https://www.brainiac.software/api/code/error-propagation-audit Keywords: before you merge or rely on the supplied code, files, findings, summary, explanations, Audit error propagation, error propagation audit, Source Code Structure & Correctness Checks.

입력 스키마

{
  "type": "object",
  "properties": {
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 260,
            "description": "path, string, length 1 to 260. Required."
          },
          "language": {
            "description": "language, string, one of javascript, typescript, python, go, other. Optional.",
            "type": "string",
            "enum": [
              "javascript",
              "typescript",
              "python",
              "go",
              "other"
            ]
          },
          "source": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100000,
            "description": "source, string, length 1 to 100000. Required."
          }
        },
        "required": [
          "path",
          "source"
        ],
        "description": "item, object. Required."
      },
      "description": "files, array. Required."
    }
  },
  "required": [
    "files"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

출력 스키마

{
  "type": "object",
  "properties": {
    "findings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "code. String."
          },
          "severity": {
            "type": "string",
            "description": "severity. String."
          },
          "path": {
            "type": "string",
            "description": "path. String."
          },
          "line": {
            "type": "number",
            "description": "line. Number."
          },
          "evidence": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "item. String."
            },
            "description": "evidence. Array."
          },
          "remediation": {
            "type": "string",
            "description": "remediation. String."
          }
        },
        "additionalProperties": {},
        "description": "item. Object."
      },
      "description": "findings. Array."
    },
    "summary": {
      "type": "object",
      "properties": {
        "files": {
          "type": "number",
          "description": "files. Number."
        },
        "findings": {
          "type": "number",
          "description": "findings. Number."
        }
      },
      "additionalProperties": {},
      "description": "summary. Object."
    },
    "explanations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "item. String."
      },
      "description": "explanations. Array."
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {}
}

커뮤니티

이 서버 평가하기

증거

최근 관측

검증됨버전이 기록되지 않음도구 4개