opencode-devtools-mcp
v0.20.2MCP 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.
| Parameter | Type | Description |
|---|---|---|
expression * | string | Expression 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.
| Parameter | Type | Description |
|---|---|---|
from * | string | Source unit, e.g. "km", "kg", "celsius", "GB". |
to * | string | Target unit, e.g. "miles", "lbs", "fahrenheit", "MB". |
value * | number | Numeric magnitude to convert. |
math_stats
Compute descriptive statistics over a list of numbers: count, sum, min, max, mean, median, mode, variance and standard deviation.
| Parameter | Type | Description |
|---|---|---|
values * | array | The 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.
| Parameter | Type | Description |
|---|---|---|
fromBase * | number | Base of the input value (2–36). |
toBase * | number | Base to convert to (2–36). |
value * | string | Integer to convert, e.g. "255" or "0xff" or "1011". |
codec_base64
Base64 encode or decode text. Supports standard and URL-safe (base64url) alphabets.
| Parameter | Type | Description |
|---|---|---|
input * | string | Text to encode, or base64 to decode. |
mode * | string | Direction. |
urlSafe | boolean | Use the URL-safe base64url alphabet (default false). |
codec_hex
Hex (base16) encode or decode text.
| Parameter | Type | Description |
|---|---|---|
input * | string | Text to encode, or hex to decode. |
mode * | string | Direction. |
codec_url
URL-encode or decode a string (percent-encoding). Use `component` for a query value, otherwise the whole URL is treated leniently.
| Parameter | Type | Description |
|---|---|---|
input * | string | Text to encode or decode. |
mode * | string | Direction. |
component | boolean | Encode 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.
| Parameter | Type | Description |
|---|---|---|
token * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
input * | string | Text to compress, or base64 of compressed bytes to decompress. |
mode * | string | Direction. |
algorithm | string | Compression algorithm (default gzip). |
crypto_hash
Compute a cryptographic hash digest (md5, sha1, sha256, sha512) of some input.
| Parameter | Type | Description |
|---|---|---|
algorithm * | string | Digest algorithm. |
input * | string | Data to hash. |
inputEncoding | string | How to interpret `input` (default utf8). |
outputEncoding | string | Digest encoding (default hex). |
crypto_hmac
Compute a keyed HMAC (md5, sha1, sha256, sha512) over some input.
| Parameter | Type | Description |
|---|---|---|
algorithm * | string | Underlying hash. |
input * | string | Data to authenticate (utf8). |
key * | string | Secret key (utf8). |
outputEncoding | string | Digest encoding (default hex). |
crypto_uuid
Generate a UUID. Version 4 is random; version 7 is time-ordered (sortable, good for database keys).
| Parameter | Type | Description |
|---|---|---|
count | number | How many to generate (default 1). |
version | string | UUID version (default 4). |
crypto_ulid
Generate a ULID — a 26-char, lexicographically-sortable, Crockford-base32 identifier (48-bit timestamp + 80-bit randomness).
| Parameter | Type | Description |
|---|---|---|
count | number | How many to generate (default 1). |
crypto_random
Generate cryptographically-strong random bytes, encoded as hex, base64 or base64url.
| Parameter | Type | Description |
|---|---|---|
bytes * | number | Number of random bytes (1–4096). |
encoding | string | Output encoding (default hex). |
crypto_keypair
Generate an asymmetric keypair (ed25519, rsa, or ec/P-256) and return the PEM-encoded public and private keys.
| Parameter | Type | Description |
|---|---|---|
modulusLength | number | RSA modulus bits (default 2048; rsa only). |
type | string | Key type (default ed25519). |
datetime_now
Get the current date and time, optionally in a specific IANA timezone.
| Parameter | Type | Description |
|---|---|---|
zone | string | IANA 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.
| Parameter | Type | Description |
|---|---|---|
input * | string | The date/time string to parse. |
format | string | Optional Luxon parse format, e.g. "dd/MM/yyyy HH:mm". |
zone | string | IANA 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).
| Parameter | Type | Description |
|---|---|---|
format * | string | Luxon format token string, or one of: iso, rfc2822, http, sql, relative. |
input * | string | The date/time to format (ISO, epoch-millis, …). |
zone | string | IANA timezone for the output. |
datetime_diff
Compute the duration between two date/times, broken down into the requested units (default years→seconds).
| Parameter | Type | Description |
|---|---|---|
from * | string | Start date/time. |
to * | string | End date/time. |
units | array | Units 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).
| Parameter | Type | Description |
|---|---|---|
input * | string | The date/time to convert. |
toZone * | string | Target IANA timezone, e.g. "Asia/Tokyo". |
fromZone | string | Source 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).
| Parameter | Type | Description |
|---|---|---|
expression * | string | Cron expression, e.g. "0 9 * * 1-5". |
count | number | How many upcoming runs to list (default 5). |
zone | string | IANA 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.
| Parameter | Type | Description |
|---|---|---|
from * | string | Source format. |
input * | string | The source document. |
to * | string | Target format. |
convert_query
Run a JSONPath query against a JSON, YAML or TOML document and return the matching values. Example path: "$.items[*].name".
| Parameter | Type | Description |
|---|---|---|
input * | string | The source document. |
path * | string | JSONPath expression, e.g. "$.store.book[*].author". |
from | string | Source format (default json). |