endian-mcp

v1.0.1
io.github.mrfentmen/endian-mcp Checked 19 hours ago Published 1 month ago

Byte order and integer tools offline: swap endianness, read raw bytes and inspect two's complement

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

swap_endian

Reverse the bytes of a 16, 32 or 64-bit integer and show the result as hex and decimal, signed and unsigned.

ParameterTypeDescription
bits *integerWord size: 16, 32 or 64
value *stringInteger in decimal or 0x hex

interpret_bytes

Read raw bytes as u8/i16/u32/i32/f32/u64/f64 in both endiannesses, from a given offset.

ParameterTypeDescription
data *stringByte string
formatstringHow to read the input, default hex
offsetintegerByte offset

int_info

Show an integer as unsigned, signed (two's complement), hex, binary and both byte orders, with the ranges it fits.

ParameterTypeDescription
value *stringInteger in decimal or 0x hex, negative allowed
bitsintegerWidth, 8, 16, 32 or 64, default 32