endian-mcp
v1.0.1Byte 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.
| Parameter | Type | Description |
|---|---|---|
bits * | integer | Word size: 16, 32 or 64 |
value * | string | Integer 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.
| Parameter | Type | Description |
|---|---|---|
data * | string | Byte string |
format | string | How to read the input, default hex |
offset | integer | Byte offset |
int_info
Show an integer as unsigned, signed (two's complement), hex, binary and both byte orders, with the ranges it fits.
| Parameter | Type | Description |
|---|---|---|
value * | string | Integer in decimal or 0x hex, negative allowed |
bits | integer | Width, 8, 16, 32 or 64, default 32 |