opencode-devtools-mcp

v0.20.2
@vymalo/opencode-devtools-mcp Checked 1 day ago Published 20 days ago

MCP server for @vymalo/opencode-devtools — exposes the same local developer utilities (math, codec, crypto, datetime, convert, http) over the Model Context…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

math_eval

Evaluate a mathematical expression with arbitrary-precision (64-digit) decimals. Supports arithmetic, functions (sqrt, log, sin, …), constants (pi, e), and inline unit math (e.g. "3 inch to cm"). Sandboxed: no code execution.

ParameterTypeDescription
expression *stringExpression to evaluate, e.g. "(2 + 3) * 4" or "sqrt(2)" or "5 km to miles".

math_convert_unit

Convert a physical quantity from one unit to another (length, mass, time, temperature, data, energy, …). Returns the converted value.

ParameterTypeDescription
from *stringSource unit, e.g. "km", "kg", "celsius", "GB".
to *stringTarget unit, e.g. "miles", "lbs", "fahrenheit", "MB".
value *numberNumeric magnitude to convert.

math_stats

Compute descriptive statistics over a list of numbers: count, sum, min, max, mean, median, mode, variance and standard deviation.

ParameterTypeDescription
values *arrayThe numbers to summarize.

math_base

Convert an integer between numeric bases (radix 2–36). Common bases (binary, octal, decimal, hex) are returned alongside the requested target.

ParameterTypeDescription
fromBase *numberBase of the input value (2–36).
toBase *numberBase to convert to (2–36).
value *stringInteger to convert, e.g. "255" or "0xff" or "1011".

codec_base64

Base64 encode or decode text. Supports standard and URL-safe (base64url) alphabets.

ParameterTypeDescription
input *stringText to encode, or base64 to decode.
mode *stringDirection.
urlSafebooleanUse the URL-safe base64url alphabet (default false).

codec_hex

Hex (base16) encode or decode text.

ParameterTypeDescription
input *stringText to encode, or hex to decode.
mode *stringDirection.

codec_url

URL-encode or decode a string (percent-encoding). Use `component` for a query value, otherwise the whole URL is treated leniently.

ParameterTypeDescription
input *stringText to encode or decode.
mode *stringDirection.
componentbooleanEncode as a single URI component (default true).

codec_jwt_decode

Decode a JWT into its header and payload claims WITHOUT verifying the signature. The result is explicitly unverified — never trust it for auth decisions.

ParameterTypeDescription
token *stringThe compact JWT (header.payload.signature).

codec_gzip

Compress or decompress text with gzip or raw deflate. Compressed output is returned as base64; to decompress, pass base64 input.

ParameterTypeDescription
input *stringText to compress, or base64 of compressed bytes to decompress.
mode *stringDirection.
algorithmstringCompression algorithm (default gzip).

crypto_hash

Compute a cryptographic hash digest (md5, sha1, sha256, sha512) of some input.

ParameterTypeDescription
algorithm *stringDigest algorithm.
input *stringData to hash.
inputEncodingstringHow to interpret `input` (default utf8).
outputEncodingstringDigest encoding (default hex).

crypto_hmac

Compute a keyed HMAC (md5, sha1, sha256, sha512) over some input.

ParameterTypeDescription
algorithm *stringUnderlying hash.
input *stringData to authenticate (utf8).
key *stringSecret key (utf8).
outputEncodingstringDigest encoding (default hex).

crypto_uuid

Generate a UUID. Version 4 is random; version 7 is time-ordered (sortable, good for database keys).

ParameterTypeDescription
countnumberHow many to generate (default 1).
versionstringUUID version (default 4).

crypto_ulid

Generate a ULID — a 26-char, lexicographically-sortable, Crockford-base32 identifier (48-bit timestamp + 80-bit randomness).

ParameterTypeDescription
countnumberHow many to generate (default 1).

crypto_random

Generate cryptographically-strong random bytes, encoded as hex, base64 or base64url.

ParameterTypeDescription
bytes *numberNumber of random bytes (1–4096).
encodingstringOutput encoding (default hex).

crypto_keypair

Generate an asymmetric keypair (ed25519, rsa, or ec/P-256) and return the PEM-encoded public and private keys.

ParameterTypeDescription
modulusLengthnumberRSA modulus bits (default 2048; rsa only).
typestringKey type (default ed25519).

datetime_now

Get the current date and time, optionally in a specific IANA timezone.

ParameterTypeDescription
zonestringIANA timezone, e.g. "Europe/Paris" (default system zone).

datetime_parse

Parse a date/time string (ISO 8601, RFC 2822, SQL, epoch-millis, or a custom format) into a normalized ISO timestamp plus its components.

ParameterTypeDescription
input *stringThe date/time string to parse.
formatstringOptional Luxon parse format, e.g. "dd/MM/yyyy HH:mm".
zonestringIANA timezone to interpret the input in.

datetime_format

Reformat a date/time into a chosen representation: a Luxon format string, or a preset (iso, rfc2822, http, sql, relative).

ParameterTypeDescription
format *stringLuxon format token string, or one of: iso, rfc2822, http, sql, relative.
input *stringThe date/time to format (ISO, epoch-millis, …).
zonestringIANA timezone for the output.

datetime_diff

Compute the duration between two date/times, broken down into the requested units (default years→seconds).

ParameterTypeDescription
from *stringStart date/time.
to *stringEnd date/time.
unitsarrayUnits to break the duration into, e.g. ["days","hours"].

datetime_convert_tz

Convert a date/time from one IANA timezone to another (the instant is preserved).

ParameterTypeDescription
input *stringThe date/time to convert.
toZone *stringTarget IANA timezone, e.g. "Asia/Tokyo".
fromZonestringSource timezone if `input` has no offset (default system zone).

datetime_cron

Explain a cron expression in plain English and list its next N run times (in an optional IANA timezone).

ParameterTypeDescription
expression *stringCron expression, e.g. "0 9 * * 1-5".
countnumberHow many upcoming runs to list (default 5).
zonestringIANA timezone to compute runs in.

convert_data

Convert structured data between JSON, YAML, TOML and CSV. CSV maps to/from an array of row objects; TOML output needs a top-level object.

ParameterTypeDescription
from *stringSource format.
input *stringThe source document.
to *stringTarget format.

convert_query

Run a JSONPath query against a JSON, YAML or TOML document and return the matching values. Example path: "$.items[*].name".

ParameterTypeDescription
input *stringThe source document.
path *stringJSONPath expression, e.g. "$.store.book[*].author".
fromstringSource format (default json).