Mirobody
Lab results to LOINC codes and UCUM units, symptoms and diagnoses to ICPC-3. Offline, no API key.
作者提供的说明(英文原文)
Find Node.js API routes with no auth check or input validation, and scan project health.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"codediag": {
"command": "npx",
"args": [
"-y",
"@sabahattink/codediag",
"mcp"
]
}
}
}在终端中运行这条命令
claude mcp add codediag -- npx -y @sabahattink/codediag mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"codediag": {
"command": "npx",
"args": [
"-y",
"@sabahattink/codediag",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"codediag": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@sabahattink/codediag",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 sabahattink 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.13.0)于4天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Mirobody, FHIR MCP Server, Google Health MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Lab results to LOINC codes and UCUM units, symptoms and diagnoses to ICPC-3. Offline, no API key.
MCP server providing seamless access to FHIR APIs for AI tools and healthcare applications
Privacy-first unofficial Google Health API v4 MCP server for health, sleep, activity, HR agents
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
codediag
Which of your API routes can anyone call?
Auth and validation coverage for Next.js, SvelteKit, React Router, Express, Fastify, Hono, Elysia, NestJS, and tRPC, plus security, dependency, test, and structure checks. One command, no account, runs offline.
npx @sabahattink/codediag scan .
That's it. Configuration is optional, no account or server is required, and --no-audit keeps the scan fully offline.
Or install globally — this also puts the codediag command on your PATH, which every other example below assumes:
npm install -g @sabahattink/codediag
Package name note: published as
@sabahattink/codediagwhile ownership
of the legacy
codediagname on npm is transferred. The CLI binary is still
codediagafter install. A migration announcement will follow if/when the
unscoped name becomes available again.
codediag auto-detects your stack and runs 5 analyzers. Every finding has a stable rule ID (rule reference), a severity, a location when one exists, and a suggested fix.
NestJS · Express · Fastify · Hono · Elysia · Next.js · SvelteKit · React Router · tRPCAST analysis (ts-morph, not regex) of the routes your app actually exposes.
useGlobalGuards, APP_GUARD), custom UseGuards-based decorators, and @Public()-style opt-outs; DTO classes for request bodies (not any, Record, or interfaces) and whether a ValidationPipe enforces them; Swagger docs and return types.express(), Router(), and typed parameters; auth and validation middleware on routes, earlier router.use() calls, and app.use(path, mw, router) mounts across files; centralized error handling and health endpoints.fastify.get() and fastify.route(), followed through register()-ed plugins, fastify-plugin encapsulation, and @fastify/autoload directories (directory prefixes, autoPrefix, and autohooks, as fastify-cli projects use them); onRequest/preHandler auth hooks on the route or its context, body schemas on mutating routes, setErrorHandler, and health endpoints.new Hono() apps, basePath(), and sub-apps mounted with app.route() across files, replayed in registration order; auth middleware (jwt(), bearerAuth(), basicAuth(), or your own) on the route or an earlier matching app.use(); zValidator and other body validators; onError; and health endpoints.new Elysia() instances, prefix, group(), and plugins mounted with use() across files, functional plugins included, replayed in registration order with Elysia's hook scope: a plugin's hooks reach the instance that uses it only when they are scoped or global ({ as: 'scoped' }, .as('scoped')). Auth from onBeforeHandle(), a derive() or resolve() that rejects with 401, guard(), auth macros such as better-auth's { auth: true }, onRequest(), or a check in the handler; when a route misses an auth hook that exists, the finding says whether the hook stayed local to its plugin or came after the route. Body schemas (TypeBox, Zod, or another Standard Schema) in the route options or a guard(); onError; and health endpoints.proxy.ts in Next.js 16) protects a route only if it turns an anonymous request to that path away: its matcher, pathname checks, next-auth, Clerk's protect(), Auth.js authorized callbacks, and helpers it returns, such as Supabase's updateSession(), are evaluated for each route.+server endpoints and form actions, with route ids from src/routes; auth in the handle hook (through sequence() and path or route id guards) or in the handler and the helpers it calls; a note when the only auth check sits in a layout load, which never runs for actions and endpoints; body validation; and CSRF origin checks turned off in svelte.config.js.app/routes.ts or Remix v2 flat-route files; auth in the action, its helpers, or route middleware; a separate rule when a parent's or the route's own loader holds the only auth check, since neither runs before an action; and schema validation of form and JSON bodies.initTRPC through builder chains, exported builders such as protectedProcedure, and nested or merged routers across files (including ~/ path aliases); mutations without auth middleware (judged by what the middleware checks, not its name), .input() parsers that accept anything, and error formatters or isDev: true that expose stack traces. Auth in front of every procedure counts too: a createContext that rejects anonymous callers, auth middleware ahead of the Express or Hono mount, an auth hook over the Fastify plugin, or a Next.js middleware.ts (proxy.ts in Next.js 16), Auth.js included, that rejects anonymous requests to the tRPC route. The checks run inside whichever server hosts tRPC (T3/Next.js, Express, Fastify, Hono, Elysia, SvelteKit), and a standalone tRPC server is its own stack. An intentionally public mutation, such as sign-up, is accepted with a reasoned codediag-ignore-next-line directive.Hardcoded credentials, .env protection in .gitignore, Helmet, rate limiting, open CORS, weak password hashing, and direct password comparisons. Runtime sinks (eval, new Function, shell commands, raw SQL, disabled TLS verification) are found in the AST, and request data is traced through variables, destructuring, reassignments, and up to two calls into your own helper functions and services, so const cmd = req.query.cmd; exec(cmd) is critical, and so is run(req.query.cmd) when run calls exec in another file. Request data is also followed into fields a class stores it in, through constructors, into map/forEach callbacks and for...of loops, and to NestJS providers behind an interface or injection token. tRPC procedure input is request data too, even after .input(schema) validates it. Request data that reaches a file path, an outgoing request's host, a redirect, or an HTML response is reported as path traversal, SSRF, an open redirect, or reflected XSS; request data compiled as a template or used as an object path is template injection or prototype pollution. JWT options that accept none or ignore expiration, and session cookies without httpOnly/secure, are flagged too. Secrets are also looked for in JSON, YAML, Dockerfiles, .npmrc, and .env files that Git tracks, and no report ever contains the value. With --secret-history (or secretHistory in .codediag.yml), the lines recent commits added are also searched for credentials that were committed and later deleted, which every clone still contains (secret-in-git-history); it is off by default because results depend on clone depth. In Supabase projects, supabase/migrations is replayed in order and tables the API exposes without row level security are critical (supabase-table-without-rls), as are write policies whose using or with check is true (supabase-permissive-policy). See Security analysis.
Runs the matching npm, pnpm, Yarn Classic, or Yarn Berry audit (skipped with --no-audit; audit: production checks only the dependencies you ship), names the affected packages and their advisories in each vulnerability finding, checks the lock file and packageManager consistency, flags deprecated packages, and validates engine specs and essential scripts. Monorepo lock files are found up to three parent directories. A successful audit is kept for an hour in node_modules/.cache/codediag, keyed by the lock file and package.json, so repeated scans reuse it (the Dependencies summary says when); delete that directory to force a fresh audit. pnpm audits a whole workspace lock file from any package, so packages that share one run a single audit and each reports only the advisories its own dependencies reach.
Test files and frameworks (Jest, Vitest, Mocha, Ava, node:test), the test-to-source ratio, integration test directories, and coverage. A coverage-summary.json is measured against 80% lines/statements and 70% functions/branches; otherwise CodeDiag checks for a real coverage threshold in Jest, Vitest, node:test, c8, or nyc configuration.
README content, lint and format config (also inherited from a workspace root), resolved TypeScript strict mode, NestJS feature modules, and environment templates such as .env.example.
Each analyzer scores 0-100. Weighted average determines the grade:
API Health: 25% · Security: 30% · Dependencies: 20% · Testing: 15% · Structure: 10%
| A+ | A | B+ | B | C | D | F |
|---|---|---|---|---|---|---|
| 95+ | 90+ | 85+ | 80+ | 70+ | 60+ | <60 |
Analyzer scores use scoring version 2 by default: every analyzer starts at 100 and each finding subtracts a severity weight (critical 25, warning 8, info 2). Further findings of the same rule cost half the previous one, so a single rule costs at most twice its weight. A finding whose root cause is also reported (for example "no test directory" when there are no tests at all) is downgraded to info, linked with causedBy, and costs nothing. Findings that leave an analyzer with nothing to evaluate, such as a missing package.json, set that analyzer to 0.
Every lost point is listed in scoreBreakdown in JSON output, in the HTML and Markdown reports, and under each analyzer with --verbose. Set scoring: { version: 1 } to keep the previous checks-passed scores for one more release.
codediag scan . # Full report
codediag scan . --format json # JSON (for CI/CD) codediag scan . --format sarif # SARIF 2.1.0 (for code scanning) codediag scan . --format md # Markdown (for PRs) codediag scan . --format svg # SVG score badge codediag scan . --format html > codediag-report.html # Interactive dashboard codediag scan . --format fixes > codediag-fixes.md # Review checklist codediag scan . --format prompt > codediag-prompt.txt # Review-only AI handoff codediag scan . --ci # JSON output + exit code codediag scan . --threshold 80 # Exit 1 below 80 in any output mode codediag scan . --fail-on critical # Exit 1 on any active critical finding codediag scan . --quiet # Score only codediag scan . --verbose # All issues and the score breakdown codediag scan . --no-audit # Offline: skip the package manager audit codediag scan . --update-baseline .codediag-baseline.json # Record accepted findings coded
只显示了开头部分;其余内容请在仓库中阅读