mcp-testkit
v1.1.0MCP test server with deterministic tools for protocol testing
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
math_add
Add two numbers and return the sum.
| Parameter | Type | Description |
|---|---|---|
a * | number | |
b * | number |
math_subtract
Subtract b from a and return the difference.
| Parameter | Type | Description |
|---|---|---|
a * | number | |
b * | number |
math_multiply
Multiply two numbers and return the product.
| Parameter | Type | Description |
|---|---|---|
a * | number | |
b * | number |
math_divide
Divide a by b. Returns an error if b is zero.
| Parameter | Type | Description |
|---|---|---|
a * | number | |
b * | number |
math_modulo
Return the remainder of a divided by b. Returns an error if b is zero.
| Parameter | Type | Description |
|---|---|---|
a * | number | |
b * | number |
math_power
Raise base to the power of exponent.
| Parameter | Type | Description |
|---|---|---|
base * | number | |
exponent * | number |
math_factorial
Return n factorial (n!). Returns an error if n is negative.
| Parameter | Type | Description |
|---|---|---|
n * | integer |
math_fibonacci
Return the nth Fibonacci number (0-indexed). Returns an error if n is negative.
| Parameter | Type | Description |
|---|---|---|
n * | integer |
string_reverse
Reverse a string.
| Parameter | Type | Description |
|---|---|---|
text * | string |
string_uppercase
Convert a string to uppercase.
| Parameter | Type | Description |
|---|---|---|
text * | string |
string_lowercase
Convert a string to lowercase.
| Parameter | Type | Description |
|---|---|---|
text * | string |
string_length
Return the character count of a string.
| Parameter | Type | Description |
|---|---|---|
text * | string |
string_char_count
Count occurrences of a character in a string.
| Parameter | Type | Description |
|---|---|---|
char * | string | |
text * | string |
string_replace
Replace all occurrences of old with new in a string.
| Parameter | Type | Description |
|---|---|---|
new * | string | |
old * | string | |
text * | string |
string_split
Split a string by a delimiter.
| Parameter | Type | Description |
|---|---|---|
delimiter * | string | |
text * | string |
string_join
Join a list of strings with a delimiter.
| Parameter | Type | Description |
|---|---|---|
delimiter * | string | |
items * | array |
collection_sort
Sort a list of items. Args: items: The list to sort. reverse: If True, sort in descending order.
| Parameter | Type | Description |
|---|---|---|
items * | array | |
reverse | boolean |
collection_flatten
Recursively flatten nested lists. Args: items: A potentially nested list to flatten.
| Parameter | Type | Description |
|---|---|---|
items * | array |
collection_merge
Merge two dictionaries. Values from dict_b win on conflict. Args: dict_a: The base dictionary. dict_b: The dictionary to merge in (wins on conflict).
| Parameter | Type | Description |
|---|---|---|
dict_a * | object | |
dict_b * | object |
collection_filter_gt
Filter numbers greater than a threshold. Args: items: List of numbers to filter. threshold: The threshold value.
| Parameter | Type | Description |
|---|---|---|
items * | array | |
threshold * | number |
collection_unique
Remove duplicates from a list, preserving order. Uses JSON serialization for dedup keys to handle mixed types. Args: items: The list to deduplicate.
| Parameter | Type | Description |
|---|---|---|
items * | array |
collection_group_by
Group a list of objects by a key. Args: items: List of dictionaries to group. key: The key to group by.
| Parameter | Type | Description |
|---|---|---|
items * | array | |
key * | string |
collection_zip
Zip two lists into a list of pairs. Args: list_a: The first list. list_b: The second list.
| Parameter | Type | Description |
|---|---|---|
list_a * | array | |
list_b * | array |
collection_chunk
Split a list into chunks of a given size. Args: items: The list to split. size: The chunk size.
| Parameter | Type | Description |
|---|---|---|
items * | array | |
size * | integer |
encoding_base64_encode
Base64-encode a string.
| Parameter | Type | Description |
|---|---|---|
text * | string |
encoding_base64_decode
Base64-decode a string. Returns an error if the input is not valid base64.
| Parameter | Type | Description |
|---|---|---|
data * | string |
encoding_url_encode
URL-encode a string using percent-encoding (spaces become +).
| Parameter | Type | Description |
|---|---|---|
text * | string |
encoding_url_decode
URL-decode a percent-encoded string.
| Parameter | Type | Description |
|---|---|---|
text * | string |
encoding_hex_encode
Hex-encode a string.
| Parameter | Type | Description |
|---|---|---|
text * | string |
encoding_hex_decode
Hex-decode a string. Returns an error if the input is not valid hex.
| Parameter | Type | Description |
|---|---|---|
data * | string |
encoding_md5
Return the MD5 hash hex digest of a string.
| Parameter | Type | Description |
|---|---|---|
text * | string |
encoding_sha256
Return the SHA-256 hash hex digest of a string.
| Parameter | Type | Description |
|---|---|---|
text * | string |
datetime_parse
Parse an ISO date string and return its components {year, month, day, hour, minute, second}.
| Parameter | Type | Description |
|---|---|---|
date_string * | string |
datetime_format
Format a date to a string using a strftime format specifier.
| Parameter | Type | Description |
|---|---|---|
day * | integer | |
format * | string | |
month * | integer | |
year * | integer |
datetime_add_days
Add N days to a date and return the resulting ISO date string.
| Parameter | Type | Description |
|---|---|---|
date_string * | string | |
days * | integer |
datetime_diff
Return the number of days between two dates (a - b).
| Parameter | Type | Description |
|---|---|---|
date_a * | string | |
date_b * | string |
datetime_day_of_week
Return the weekday name (e.g., 'Friday') for a given date.
| Parameter | Type | Description |
|---|---|---|
date_string * | string |
datetime_is_leap_year
Return whether the given year is a leap year.
| Parameter | Type | Description |
|---|---|---|
year * | integer |
datetime_days_in_month
Return the number of days in the given month and year.
| Parameter | Type | Description |
|---|---|---|
month * | integer | |
year * | integer |
datetime_week_number
Return the ISO week number for the given date.
| Parameter | Type | Description |
|---|---|---|
date_string * | string |
validation_is_email
Check whether a string is a valid email address format.
| Parameter | Type | Description |
|---|---|---|
text * | string |
validation_is_url
Check whether a string is a valid URL with http or https scheme.
| Parameter | Type | Description |
|---|---|---|
text * | string |
validation_is_ipv4
Check whether a string is a valid IPv4 address.
| Parameter | Type | Description |
|---|---|---|
text * | string |
validation_is_ipv6
Check whether a string is a valid IPv6 address.
| Parameter | Type | Description |
|---|---|---|
text * | string |
validation_is_uuid
Check whether a string is a valid UUID.
| Parameter | Type | Description |
|---|---|---|
text * | string |
validation_is_json
Check whether a string is valid JSON.
| Parameter | Type | Description |
|---|---|---|
text * | string |
validation_is_palindrome
Check whether a string is a case-sensitive palindrome.
| Parameter | Type | Description |
|---|---|---|
text * | string |
validation_matches_regex
Check whether a string matches a given regular expression pattern.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | |
text * | string |
conversion_celsius_to_fahrenheit
Convert a temperature from Celsius to Fahrenheit.
| Parameter | Type | Description |
|---|---|---|
value * | number |
conversion_fahrenheit_to_celsius
Convert a temperature from Fahrenheit to Celsius.
| Parameter | Type | Description |
|---|---|---|
value * | number |
conversion_km_to_miles
Convert a distance from kilometers to miles.
| Parameter | Type | Description |
|---|---|---|
value * | number |
conversion_miles_to_km
Convert a distance from miles to kilometers.
| Parameter | Type | Description |
|---|---|---|
value * | number |
conversion_bytes_to_human
Convert a byte count to a human-readable string (e.g., '1.00 KB').
| Parameter | Type | Description |
|---|---|---|
bytes * | integer |
conversion_rgb_to_hex
Convert RGB color values (0-255) to a hex color string.
| Parameter | Type | Description |
|---|---|---|
b * | integer | |
g * | integer | |
r * | integer |
conversion_hex_to_rgb
Convert a hex color string to RGB values. Supports with or without '#' prefix.
| Parameter | Type | Description |
|---|---|---|
hex_color * | string |
conversion_decimal_to_binary
Convert a decimal integer to its binary string representation (without '0b' prefix).
| Parameter | Type | Description |
|---|---|---|
value * | integer |
echo
Return the input message unchanged.
| Parameter | Type | Description |
|---|---|---|
message * | string |
echo_error
Always raises a ToolError with the given message.
| Parameter | Type | Description |
|---|---|---|
message * | string |
echo_large
Return deterministic text of approximately N kilobytes.
| Parameter | Type | Description |
|---|---|---|
size_kb * | integer |
echo_nested
Return nested JSON structure to the given depth.
| Parameter | Type | Description |
|---|---|---|
depth * | integer |
echo_types
Return an object containing all JSON types.
echo_empty
Return an empty string result.
echo_multiple
Return multiple TextContent blocks, one per message.
| Parameter | Type | Description |
|---|---|---|
messages * | array |
echo_schema
Echo all parameters back as JSON.
| Parameter | Type | Description |
|---|---|---|
bool_param * | boolean | |
float_param * | number | |
int_param * | integer | |
list_param * | array | |
obj_param * | object | |
str_param * | string |
get_weather
Get weather for a city. Always returns fixed deterministic data (77°F, sunny).
| Parameter | Type | Description |
|---|---|---|
city * | string |
task_run
Run another tool as an MCP task: working for working_polls checks, then completed with that tool's result.
| Parameter | Type | Description |
|---|---|---|
tool * | string | |
arguments | ||
poll_interval_ms | integer | |
working_polls | integer |
task_scripted
Run a scripted MCP task: working for working_polls checks, then the outcome (completed, failed, cancelled, tool_error, input_required, or any other status).
| Parameter | Type | Description |
|---|---|---|
message | string | |
outcome | string | |
poll_interval_ms | integer | |
working_polls | integer |