BRAINIAC Source Code Structure & Correctness Checks is an MCP server published by software.brainiac, hosted at www.brainiac.software. When last checked on 2026-11-21 it was working: it answers and lists its tools. It declares 4 tools, including code_maintainability-index, code_change-coupling-analyze, code_concurrency-hazard-detect, code_error-propagation-audit.
Paid Source Code Structure & Correctness Checks API via x402. Unpaid tool calls return 402.
1,078 connections through 4 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
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 structure before you merge or rely on the supplied code. The snippet is not executed or stored. Call with optional language, source, ast. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. 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.
| Parameter | Type | Description |
|---|---|---|
| ast | object | ast, object. Optional. |
| source | string | source, string, length 1 to 100000. Optional. |
| language | string | language, string, one of javascript, typescript, python, go. Optional. |
{
"name": "code_maintainability-index",
"title": "Index source maintainability",
"description": "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 structure before you merge or rely on the supplied code. The snippet is not executed or stored. Call with optional language, source, ast. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. 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.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"ast": {
"type": "object",
"required": [
"type"
],
"properties": {
"name": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "name, string, length 1 to 80. Optional."
},
"type": {
"type": "string",
"pattern": "^[a-z][a-z0-9_-]{0,39}$",
"description": "type, string. Required."
},
"children": {
"type": "array",
"items": {
"type": "object",
"required": [
"type"
],
"properties": {
"name": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "name, string, length 1 to 80. Optional."
},
"type": {
"type": "string",
"pattern": "^[a-z][a-z0-9_-]{0,39}$",
"description": "type, string. Required."
},
"children": {
"type": "array",
"items": {
"type": "object",
"properties": {},
"description": "item. Value.",
"additionalProperties": {}
},
"description": "children, array. Optional."
}
},
"description": "item, object. Required."
},
"description": "children, array. Optional."
}
},
"description": "ast, object. Optional."
},
"source": {
"type": "string",
"maxLength": 100000,
"minLength": 1,
"description": "source, string, length 1 to 100000. Optional."
},
"language": {
"enum": [
"javascript",
"typescript",
"python",
"go"
],
"type": "string",
"description": "language, string, one of javascript, typescript, python, go. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"audit_receipt": {
"type": "string",
"description": "audit_receipt. String."
},
"cognitive_load_index": {
"type": "number",
"description": "cognitive_load_index. Number."
},
"maintainability_score": {
"type": "number",
"description": "maintainability_score. Number."
},
"technical_debt_estimate_hours": {
"type": "number",
"description": "technical_debt_estimate_hours. Number."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Index source maintainability",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Identify files outside a proposed change set that are coupled through supplied module edges, import paths, or historical co-change sets before you merge or rely on the supplied code. The source is not compiled or executed. Call with files and proposed_paths; optional module_edges, change_sets. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. 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.
| Parameter | Type | Description |
|---|---|---|
| files * | array | files, array. Required. |
| change_sets | array | change sets, array. Optional. |
| module_edges | array | module edges, array. Optional. |
| proposed_paths * | array | proposed paths, array. Required. |
{
"name": "code_change-coupling-analyze",
"title": "Analyze change coupling",
"description": "Identify files outside a proposed change set that are coupled through supplied module edges, import paths, or historical co-change sets before you merge or rely on the supplied code. The source is not compiled or executed. Call with files and proposed_paths; optional module_edges, change_sets. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. 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.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"files",
"proposed_paths"
],
"properties": {
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"source"
],
"properties": {
"path": {
"type": "string",
"maxLength": 260,
"minLength": 1,
"description": "path, string, length 1 to 260. Required."
},
"source": {
"type": "string",
"maxLength": 100000,
"minLength": 1,
"description": "source, string, length 1 to 100000. Required."
},
"language": {
"enum": [
"javascript",
"typescript",
"python",
"go",
"other"
],
"type": "string",
"description": "language, string, one of javascript, typescript, python, go, other. Optional."
}
},
"description": "item, object. Required."
},
"description": "files, array. Required."
},
"change_sets": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"paths"
],
"properties": {
"id": {
"type": "string",
"maxLength": 120,
"minLength": 1,
"description": "id, string, length 1 to 120. Required."
},
"paths": {
"type": "array",
"items": {
"type": "string",
"maxLength": 260,
"minLength": 1,
"description": "item, string, length 1 to 260. Required."
},
"description": "paths, array. Required."
}
},
"description": "item, object. Required."
},
"description": "change sets, array. Optional."
},
"module_edges": {
"type": "array",
"items": {
"type": "object",
"required": [
"from_path",
"to_path"
],
"properties": {
"kind": {
"enum": [
"import",
"call",
"data",
"other"
],
"type": "string",
"description": "kind, string, one of import, call, data, other. Optional."
},
"to_path": {
"type": "string",
"maxLength": 260,
"minLength": 1,
"description": "to path, string, length 1 to 260. Required."
},
"from_path": {
"type": "string",
"maxLength": 260,
"minLength": 1,
"description": "from path, string, length 1 to 260. Required."
}
},
"description": "item, object. Required."
},
"description": "module edges, array. Optional."
},
"proposed_paths": {
"type": "array",
"items": {
"type": "string",
"maxLength": 260,
"minLength": 1,
"description": "item, string, length 1 to 260. Required."
},
"description": "proposed paths, array. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"summary": {
"type": "object",
"properties": {
"findings": {
"type": "number",
"description": "findings. Number."
},
"proposed_paths": {
"type": "number",
"description": "proposed_paths. Number."
}
},
"description": "summary. Object.",
"additionalProperties": {}
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"evidence": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "evidence. Array."
},
"severity": {
"type": "string",
"description": "severity. String."
},
"remediation": {
"type": "string",
"description": "remediation. String."
},
"changed_path": {
"type": "string",
"description": "changed_path. String."
},
"coupled_path": {
"type": "string",
"description": "coupled_path. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "findings. Array."
},
"explanations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "explanations. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Analyze change coupling",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}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 before you merge or rely on the supplied code. The code is not executed. Call with files. Returns findings, summary, and explanations (findings includes code, severity, path, line, evidence, remediation). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. 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.
| Parameter | Type | Description |
|---|---|---|
| files * | array | files, array. Required. |
{
"name": "code_concurrency-hazard-detect",
"title": "Detect concurrency hazards",
"description": "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 before you merge or rely on the supplied code. The code is not executed. Call with files. Returns findings, summary, and explanations (findings includes code, severity, path, line, evidence, remediation). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. 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.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"files"
],
"properties": {
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"source"
],
"properties": {
"path": {
"type": "string",
"maxLength": 260,
"minLength": 1,
"description": "path, string, length 1 to 260. Required."
},
"source": {
"type": "string",
"maxLength": 100000,
"minLength": 1,
"description": "source, string, length 1 to 100000. Required."
},
"language": {
"enum": [
"javascript",
"typescript",
"python",
"go",
"other"
],
"type": "string",
"description": "language, string, one of javascript, typescript, python, go, other. Optional."
}
},
"description": "item, object. Required."
},
"description": "files, array. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"summary": {
"type": "object",
"properties": {
"files": {
"type": "number",
"description": "files. Number."
},
"findings": {
"type": "number",
"description": "findings. Number."
}
},
"description": "summary. Object.",
"additionalProperties": {}
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"line": {
"type": "number",
"description": "line. Number."
},
"path": {
"type": "string",
"description": "path. String."
},
"evidence": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "evidence. Array."
},
"severity": {
"type": "string",
"description": "severity. String."
},
"remediation": {
"type": "string",
"description": "remediation. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "findings. Array."
},
"explanations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "explanations. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Detect concurrency hazards",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Find empty catches, swallowed promise rejections, logged-without-rethrow spans, and throw sites without local handlers in caller-supplied source before you merge or rely on the supplied code. Pattern matches only; the code is not compiled or run. Call with files. Returns findings, summary, and explanations (findings includes code, severity, path, line, evidence, remediation). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. 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.
| Parameter | Type | Description |
|---|---|---|
| files * | array | files, array. Required. |
{
"name": "code_error-propagation-audit",
"title": "Audit error propagation",
"description": "Find empty catches, swallowed promise rejections, logged-without-rethrow spans, and throw sites without local handlers in caller-supplied source before you merge or rely on the supplied code. Pattern matches only; the code is not compiled or run. Call with files. Returns findings, summary, and explanations (findings includes code, severity, path, line, evidence, remediation). HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. 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.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"files"
],
"properties": {
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"source"
],
"properties": {
"path": {
"type": "string",
"maxLength": 260,
"minLength": 1,
"description": "path, string, length 1 to 260. Required."
},
"source": {
"type": "string",
"maxLength": 100000,
"minLength": 1,
"description": "source, string, length 1 to 100000. Required."
},
"language": {
"enum": [
"javascript",
"typescript",
"python",
"go",
"other"
],
"type": "string",
"description": "language, string, one of javascript, typescript, python, go, other. Optional."
}
},
"description": "item, object. Required."
},
"description": "files, array. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"summary": {
"type": "object",
"properties": {
"files": {
"type": "number",
"description": "files. Number."
},
"findings": {
"type": "number",
"description": "findings. Number."
}
},
"description": "summary. Object.",
"additionalProperties": {}
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"line": {
"type": "number",
"description": "line. Number."
},
"path": {
"type": "string",
"description": "path. String."
},
"evidence": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "evidence. Array."
},
"severity": {
"type": "string",
"description": "severity. String."
},
"remediation": {
"type": "string",
"description": "remediation. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "findings. Array."
},
"explanations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "explanations. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Audit error propagation",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Tool calls wrap the existing POST APIs and stay pay-per-call. initialize and tools/list are free. An unpaid tool call returns the x402 payment terms in the tool result and does not run. Retry with the payment in params._meta["x402/payment"], or send payment-signature. Payment settles only after a successful result.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.