Skip to main content
Glama
mcp-devtools

mcp-devtools

by VBSage

mcp-devtools

CI License: MIT

A small, production-quality Model Context Protocol (MCP) server exposing credential-free developer utilities. Built as a reference/demo of clean MCP server engineering: typed tool schemas, structured output, a resource, a prompt, unit tests, and an end-to-end protocol smoke test.

Zero credentials, zero network. Clone it, install, and it runs — nothing to configure, nothing to leak.

CI (.github/workflows/ci.yml) runs typecheck + unit tests + build + the wire-protocol smoke test on every push. Licensed MIT (see LICENSE).

Provenance: designed and reviewed by a human engineer (architecture, the decode-only security framing, the wire-protocol test strategy); implementation is AI-assisted. What's being sold is the engineering judgment, not the typing.

What it exposes

Tools (6):

Tool

Does

json_tools

Validate + format / minify / recursively sort-keys a JSON string

regex_test

Run a regex against a subject; returns every match, index, and capture group (structured output)

hash_text

MD5 / SHA-1 / SHA-256 / SHA-512 hex digest of text

uuid_generate

Generate 1–100 RFC-4122 v4 UUIDs

base64_transform

Base64 encode/decode, with an optional URL-safe alphabet

jwt_inspect

Decode a JWT's header/payload + expiry (decode only — does not verify the signature)

Resource: devtools://reference/http-status-codes — common HTTP status codes as JSON. Prompt: code_review — a parameterized code-review request.

Related MCP server: mcp-dev-utils

Install & run

npm install
npm run build        # compile to dist/
npm start            # run the server on stdio

Development (no build step, via tsx):

npm run dev

Verify it works

npm test             # unit tests for all tool logic (node:test)
npm run smoke        # end-to-end: spawns the server, drives it with a real MCP client

npm run smoke connects an actual MCP client over stdio, lists the tools/resource/prompt, and calls each tool — proving the wire protocol, not just the functions. Expected tail:

ALL CHECKS PASSED

Add it to an MCP client

Claude Code

claude mcp add devtools -- node /absolute/path/to/mcp-devtools/dist/server.js

Claude Desktop — add to claude_desktop_config.json:

{
  "mcpServers": {
    "devtools": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-devtools/dist/server.js"]
    }
  }
}

Then ask the assistant things like "sort the keys in this JSON", "sha256 this string", or "decode this JWT" and it will call the tools.

Design notes (why it's built this way)

  • Tool logic is separated from transport (src/logic.ts vs src/server.ts) so every tool is unit-testable in isolation and the MCP layer stays thin.

  • Deterministic + self-contained — no network calls, no API keys, no live services. Errors are returned as isError tool results, not thrown, so the client sees a clean message.

  • jwt_inspect decodes only. Signature verification needs key material and a stated algorithm policy; conflating "decode" with "verify" is a common security mistake, so this tool is explicit about not verifying.

  • Structured output on regex_test returns a typed object (validated against the tool's outputSchema) alongside the human-readable text.

Stack

TypeScript · @modelcontextprotocol/sdk · zod · Node ≥ 20 · tests on node:test.


MIT-licensed engineering sample; provided as-is. Provenance note at the top.

Available Tools

6 tools
base64_transformBase64 encode / decodeA

Encode or decode text as Base64, with an optional URL-safe alphabet.

Inputs: text (required), direction (required), urlSafe.

hash_textHash textA

Compute a cryptographic digest (hex) of UTF-8 text.

Inputs: text (required), algorithm.

json_toolsJSON format / minify / sortA

Validate and reshape a JSON string. mode=format pretty-prints, minify compacts, sort_keys recursively alphabetizes object keys. Returns a clear error for invalid JSON.

Inputs: input (required), mode, indent.

jwt_inspectInspect a JWT (decode only)A

Decode a JWT's header and payload and report whether a signature segment is present and whether the token is expired. Does NOT verify the signature — decoding only.

Inputs: token (required).

regex_testRegex testerA

Run a JavaScript regular expression against a subject string and return each match with its index, positional capture groups, and any named groups. Flags are honored exactly: without the g flag only the first match is returned; with g, all matches.

Inputs: pattern (required), subject (required), flags. Returns: error, valid, matches, matchCount

uuid_generateGenerate UUIDsA

Generate one or more RFC-4122 version-4 UUIDs (1–100).

Inputs: count.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: base64 encoding/decoding, hashing, JSON formatting/validation, JWT inspection, regex testing, and UUID generation. No overlap.

    Naming Consistency4/5

    Tools follow snake_case with descriptive names, mostly verb_noun or noun_verb pattern. 'json_tools' is slightly generic but still consistent with others.

    Tool Count5/5

    6 tools is well-scoped for a developer utilities server. Each tool earns its place without being too few or too many.

    Completeness4/5

    Covers common text/format utilities (Base64, hash, JSON, JWT, regex, UUID). Missing URL encoding/decoding but still sufficient for typical use.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      A lightweight MCP server providing everyday developer utilities such as JSON formatting, UUID generation, Base64 conversion, HTTP status lookup, and Unix timestamp conversion as tools and resources.
      5
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server offering developer utilities including JSON validation, base64 encoding, timestamp conversion, and hashing, built with a clean architecture for easy extensibility.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      A unified developer toolbox MCP server providing utilities for base64, JWT, timestamps, UUID, JSON formatting, hashing, URL handling, case conversion, color conversion, number bases, string operations, and regex.
      3 npm
      MIT