Skip to content
MCP server
Registry

WTHek MCP Server

MCP server for RFC 7807/9457 HTTP Problem Details, status codes, and API error auditing.

WTHek MCP Server scores 70 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 3 tools. Filed under Cloud. GitHub shows 0 stars. Package registries report about 313 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by skillnterMITTypeScript0 stars
Trust score
70Good
Trust score 70 of 100, Good

Good trust

70 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 70 comes from

22 + 20 + 4 + 10 + 4 + 10 = 70. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity4 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 4 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "skillnter-wthek-mcp": {      "command": "npx",      "args": [        "-y",        "@wthek/mcp@1.0.2"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools3Tool docs quality grade F

All capabilities

About

Official @wthek Extension – MCP Server for HTTP Error Diagnostics & Framework Recipes

Local Model Context Protocol (MCP) server providing AI coding agents with error diagnostics, HTTP standards, and verified framework recipes.

A lightweight, production-grade MCP server built for AI coding agents (Claude Desktop, Cursor, Antigravity, etc.). Empowers agents to audit source code for error anti-patterns, resolve exact RFC status codes and headers, and generate verified @wthek error-handling setups for Express, Fastify, Hono, Koa, NestJS, Restify, Next.js, Cloudflare Workers, Elysia (Bun), Oak (Deno), GraphQL, tRPC, and ConnectRPC.

πŸ’‘ What the HEK?! AI agents hallucinating error-handling packages or writing manual res.status(500).json() calls? @wthek/mcp runs locally alongside your AI editor over standard input/output (stdio), giving models deterministic tools to look up HTTP standards, generate copy-paste framework recipes, and audit source code before deploying to production.

wthek-mcp MCP server – quality and maintenance score on Glama MCP Registry MCP Server Install in VS Code WTHek MCP on mcprush

GitHub Workflow Status npm version GitHub license NPM Type Definitions GitHub Issues Codacy Badge Codacy Badge Socket Badge npm NPM Type Definitions Bundle Size Node.js RFC 9110 RFC 9457 Docs GitHub Pages Github Sponsors Open Collective Buy Me A Coffee Patreon PayPal


Features

  • Automated Anti-Pattern Auditing (audit_error_handling) – Detects manual status mutations, swallowed exceptions, missing headersSent guards, and generic throw new Error() in routes.
  • RFC Standards & Header Lookup (lookup_http_status) – Resolves exact RFC status code numbers, names, descriptions, standard headers (WWW-Authenticate, Allow, Retry-After), and import statements.
  • Hallucination-Free Recipes (get_framework_recipe) – Supplies agents with verified, copy-paste error handling recipes for Express, Fastify, Hono, Koa, NestJS, Restify, Next.js, Cloudflare Workers, Elysia (Bun), Oak (Deno), GraphQL, tRPC, and ConnectRPC paired with validation companion libraries (Zod, TypeBox, Valibot).
  • Zero Configuration via npx – Ready to run out of the box via npx @wthek/mcp in any MCP-compliant editor.
  • Standard Protocol Compliance – Built on @modelcontextprotocol/sdk utilizing standard input/output (stdio) transport.
  • Standalone Programmatic Tools – Tools can be consumed as an MCP server or imported directly as pure utility functions in custom Node.js agent pipelines.
  • 100% Test Coverage & TypeScript-First – Guaranteed reliability with strict typing, zero runtime exceptions, and full test coverage.

Table of Contents


Quick Start: Configuring Your AI Agent

No installation is necessary. Configure your agent to launch @wthek/mcp via npx:

Claude Desktop Configuration

Add to claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "wthek": {
      "command": "npx",
      "args": ["@wthek/mcp"]
    }
  }
}

Cursor Configuration

Add to your project's .cursor/mcp.json or global Cursor settings:

{
  "mcpServers": {
    "wthek": {
      "command": "npx",
      "args": ["@wthek/mcp"]
    }
  }
}

Antigravity Configuration

Add to your workspace or user MCP configuration file:

{
  "mcpServers": {
    "wthek": {
      "command": "npx",
      "args": ["@wthek/mcp"]
    }
  }
}

Available MCP Tools

Once connected, your AI coding agent has direct access to the following 3 diagnostic tools:

1. lookup_http_status

Provides RFC metadata, recommended headers, and exact http-error-kit class imports for any HTTP status code or name.

Input Arguments:

  • query (string, required): Status code number (e.g. "404") or name (e.g. "NOT_FOUND", "too many requests").

Example Agent Output:

{
  "className": "NotFoundError",
  "code": 404,
  "description": "Not Found",
  "exampleSnippet": "import { NotFoundError } from \"http-error-kit\";\n\nthrow new NotFoundError(\"Not Found\");",
  "isClientError": true,
  "isServerError": false,
  "name": "NOT_FOUND",
  "recommendedHeaders": [],
  "rfcStandardUrl": "https://httpstatuses.com/404"
}

2. get_framework_recipe

Retrieves a verified, production-ready @wthek error handling recipe for a specific web framework and optional validator.

Input Arguments:

  • framework (string, required): Web framework name ("express", "fastify", "hono", "koa", "nestjs", "restify").
  • validator (string, optional): Schema validation library ("zod", "typebox", "valibot").

Example Agent Output:

{
  "framework": "express",
  "validator": "zod",
  "packages": [
    "@wthek/express-middleware",
    "@wthek/zod-express-interceptor",
    "http-error-kit",
    "zod"
  ],
  "code": "import express from \"express\";\nimport { KitExpressMiddleware } from \"@wthek/express-middleware\";\nimport { KitZodExpressInterceptor } from \"@wthek/zod-express-interceptor\";\n\nconst app = express();\napp.use(express.json());\n\n// 1. Define application routes before error middleware\napp.get(\"/api/example\", (req, res) => {\n  res.json({ status: \"ok\" });\n});\n\n// 2. Intercept Zod validation errors and convert them to KitHttpErrors\napp.use(KitZodExpressInterceptor());\n\n// 3. Centralized error-handling middleware (must be registered last)\napp.use(KitExpressMiddleware({ handleUnknownErrors: true, log: true }));",
  "instructions": [
    "1. Install dependencies: npm install @wthek/express-middleware @wthek/zod-express-interceptor http-error-kit zod",
    "2. Copy and adapt the recipe code into your application entrypoint.",
    "3. Throw named error classes (e.g. NotFoundError, BadRequestError) inside route handlers."
  ]
}

3. audit_error_handling

Audits source code snippets for common error-handling anti-patterns and suggests @wthek best practices.

ℹ️ About the Heuristic Audit: audit_error_handling is a fast, pattern-based heuristic diagnostic check designed to catch common pitfalls (such as manual status/json mutations, missing res.headersSent checks, and swallowed error logs). It is intentionally lightweight and non-intrusiveβ€”not a full AST-based static compiler or replacement for developer review or AI contextual reasoning.

Input Arguments:

  • code (string, required): Source code snippet to audit.

Example Agent Output:

{
  "codeSnippetLength": 72,
  "hasIssues": true,
  "issuesCount": 1,
  "summary": "Found 1 error-handling anti-pattern(s). Review suggestions to adopt @wthek best practices.",
  "issues": [
    {
      "description": "Direct manual response status and JSON payload mutation detected in route handler.",
      "rule": "no-manual-status-json",
      "severity": "high",
      "suggestion": "Throw structured http-error-kit classes (e.g. NotFoundError, BadRequestError) and delegate serialization to @wthek middleware."
    }
  ]
}

Programmatic Usage

Starting the MCP Server in Code

You can embed the server into custom Node.js agents, test suites, or orchestrators:

import { createWthekMcpServer } from "@wthek/mcp";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";

const server = createWthekMcpServer();
const transport = new StdioServerTransport();
await server.connect(transport);

Direct Tool Execution

Consume the diagnostic helpers directly in your Node.js application without starting an MCP server:

import {
  lookupHttpStatus,
  getFrameworkRecipe,
  auditErrorHandling,
} from "@wthek/mcp";

// Look up status metadata
const statusInfo = lookupHttpStatus(401);
console.log(statusInfo.recommendedHeaders); // ["WWW-Authenticate"]

// Generate framework recipe
const recipe = getFrameworkRecipe("fastify", "zod");
console.log(recipe.packages); // ["@wthek/fastify-middleware", "http-error-kit", "@wthek/zod-transformer"]

// Audit source code
const report = auditErrorHandling(`
  app.get("/user", (req, res) => {
    res.status(500).json({ error: "Something broke" });
  });
`);
console.log(report.hasIssues); // true
console.log(report.issues[0].suggestion);

API Reference

API Overview

ExportKindDescriptionReturns
createWthekMcpServer()FunctionCreates and configures the McpServer instanceMcpServer
lookupHttpStatus(query)FunctionLooks up HTTP status code metadata, RFC links, and snippetsIHttpStatusLookupResult
getFrameworkRecipe(framework, validator?)FunctionGenerates verified framework error-handling recipesIFrameworkRecipeResult
auditErrorHandling(code)FunctionScans code snippets for error anti-patternsIAuditResult
STATUS_CLASS_MAPConstantMaps numeric status codes to http-error-kit class namesRecord<number, string>
STATUS_HEADERS_MAPConstantMaps status codes to recommended protocol headersRecord<number, string[]>
AUDIT_RULESConstantActive rule definitions and regular expression patternsIAuditRuleDefinition[]
COMPANION_TRANSFORMERSConstantValidation companion package mapping dictionaryRecord<string, string>

Exported Constants & Interfaces

import type {
  AuditSeverity,
  IAuditIssue,
  IAuditResult,
  IAuditRuleDefinition,
  IFrameworkRecipeResult,
  IHttpStatusLookupResult,
  SupportedFramework,
  SupportedValidator,
} from "@wthek/mcp";

import {
  AUDIT_RULES,
  COMPANION_TRANSFORMERS,
  STATUS_CLASS_MAP,
  STATUS_HEADERS_MAP,
} from "@wthek/mcp";

Architecture Diagram


Security Considerations

  1. Sandboxed Code Execution: audit_error_handling operates purely via static regular expression matching on provided code strings. It never evaluates (eval), executes, or loads external code.
  2. Safe Transports: @wthek/mcp connects via local standard input/output (stdio), ensuring tools run locally on the developer's machine without exposing network ports or listening sockets.
  3. Defensive Input Validation: Status code lookups and recipe parameters are normalized to prevent prototype pollution or unhandled runtime exceptions.

Explore More WTHek Extensions

The WTHek ecosystem continues to grow with new extensions to simplify error handling across frameworks and AI pipelines. Stay updated with the latest tools that integrate seamlessly with http-error-kit:

Check out the official list of extensions: Official Extensions List


AI Agent Integration

When building with AI coding assistants (Claude Code, Cursor, GitHub Copilot, Antigravity, Devin), add the following directive to your project's .cursorrules, .github/copilot-instructions.md, or system prompt:

### MCP Error Diagnostics & Recipe Rule
- Use `@wthek/mcp` to resolve verified HTTP error handling recipes and RFC status codes.
- Before writing manual error responses or status codes, query `lookup_http_status` for standard headers and RFC class names.
- When scaffolding framework error middleware, retrieve copy-paste setups via `get_framework_recipe`.
- Audit route handlers with `audit_error_handling` to eliminate manual status mutations and generic unhandled exceptions.

People

The original author of the project is Himanshu Bansal


Donations

This is all voluntary work, so if you want to support my efforts you can:

You can also use the following cryptocurrency addresses:

BTC: bc1p22h4nsad5d8ketyhuvf0vyva6unttxwzzqvkty5r839as0mlclgs72d3mf

ETH: 0x1D59a291391a3CE17C63D5dC50F258Dc0Ab62889

BNB: 0x1D59a291391a3CE17C63D5dC50F258Dc0Ab62889


License

@wthek/mcp is open-sourced software licensed under the MIT license by Himanshu Bansal.

Frequently asked questions

What is WTHek MCP Server?

MCP server for RFC 7807/9457 HTTP Problem Details, status codes, and API error auditing.

How do I install WTHek MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. WTHek MCP Server runs locally from the npm package @wthek/mcp with the command npx -y @wthek/mcp@1.0.2.

Is WTHek MCP Server free and open source?

Yes. WTHek MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does WTHek MCP Server support remote (HTTP) connections?

No remote endpoint is listed for WTHek MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does WTHek MCP Server provide?

WTHek MCP Server provides 3 tools: audit_error_handling, get_framework_recipe, and lookup_http_status. See the full tool list for descriptions and parameters.

How is WTHek MCP Server's trust score calculated?

WTHek MCP Server scores 70 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

β€”Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server