# BRAINIAC Source Code Structure & Correctness Checks

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

- name: software.brainiac/code
- version: 1.0.1
- connection class: R0 (autonomous)
- trust: 83/100 flags: no-repository
- quality: 80/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/software.brainiac%2Fcode
- tools: https://api.protogrid.dev/v1/servers/software.brainiac%2Fcode/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "code": {
      "type": "http",
      "url": "https://www.brainiac.software/mcp/code"
    }
  }
}
```


## Trust

- hygiene: 80
- liveness: 100
- freshness: 100
- provenance: 55
- drivers: +dns-namespace +website +reachable +uptime-100% +updated-10d-ago -no-repository
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 80/100 (good)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-11-25; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 100 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 5 of 5 tools declare readOnlyHint or destructiveHint
- pass `tools.directory_hints`: every tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHint
- pass `tools.token_cost`: about 1,840 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool names, descriptions, schemas or annotations
- pass `tools.poisoning`: no instructions aimed at the model in tool definitions

### stability: 50 (weight 15)

- warn `stability.changes`: 17 tool changes in 30 days
- fail `stability.rug_pull`: 4 tools kept their name but changed most of their description in 30 days; review before trusting them
- pass `stability.new_links`: no tool change named a new site

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 5, about 1,840 tokens to load them all
- tool set hash: 9091c21fc917722bc26f6ace95b01895
- tools last changed: 2026-11-25T16:57:29.098Z
- badge: [![protogrid quality](https://protogrid.dev/badge/software.brainiac/code.svg)](https://protogrid.dev/servers/software.brainiac/code)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

- 2026-11-25 `contact_us` added no new version (still 1.0.0)
  - How to contact BRAINIAC.software support: email, page URL, what to include in a message, and what not to send. Free. Does not send email.
- 2026-11-25 `code_error-propagation-audit` changed (description) no new version (still 1.0.0)
  - before: 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.
  - after: Find empty catches, swallowed promise rejections, logged errors without rethrow, 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.
- 2026-11-23 `code_error-propagation-audit` changed (description)
  - before: 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.
  - after: 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.
- 2026-11-23 `code_concurrency-hazard-detect` changed (description)
  - before: 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.
  - after: 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.
- 2026-11-23 `code_change-coupling-analyze` changed (description)
  - before: 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.
  - after: 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.
- 2026-11-23 `code_maintainability-index` changed (description)
  - before: 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.
  - after: 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.
- 2026-11-22 `code_error-propagation-audit` changed (outputSchema)
- 2026-11-22 `code_concurrency-hazard-detect` changed (outputSchema)
- 2026-11-22 `code_change-coupling-analyze` changed (outputSchema)
- 2026-11-20 `code_error-propagation-audit` changed (description) **meaning changed**
  - before: Find empty catches, swallowed promise rejections, logged-without-rethrow spans, and throw sites without local handlers in caller-supplied source. Pattern matches only; the code is not compiled or run. Price $0.04 USDC. POST /api/v1/code/error-propagation-audit. An unpaid call returns the x402 payment terms and does not run.
  - after: 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.

Full history: https://api.protogrid.dev/v1/servers/software.brainiac%2Fcode/changes

## Remotes

- https://www.brainiac.software/mcp/code (streamable-http, auth none, reachable true, uptime30d 1)

## Packages

_none_

## Tools (5)

- `code_change-coupling-analyze`: 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.
- `code_concurrency-hazard-detect`: 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.
- `code_error-propagation-audit`: Find empty catches, swallowed promise rejections, logged errors without rethrow, 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.
- `code_maintainability-index`: 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.
- `contact_us`: How to contact BRAINIAC.software support: email, page URL, what to include in a message, and what not to send. Free. Does not send email.
