mcp-testkit

v1.1.0
mcp-testkit Checked 3 days ago Published 17 days ago

MCP 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.

ParameterTypeDescription
a *number
b *number

math_subtract

Subtract b from a and return the difference.

ParameterTypeDescription
a *number
b *number

math_multiply

Multiply two numbers and return the product.

ParameterTypeDescription
a *number
b *number

math_divide

Divide a by b. Returns an error if b is zero.

ParameterTypeDescription
a *number
b *number

math_modulo

Return the remainder of a divided by b. Returns an error if b is zero.

ParameterTypeDescription
a *number
b *number

math_power

Raise base to the power of exponent.

ParameterTypeDescription
base *number
exponent *number

math_factorial

Return n factorial (n!). Returns an error if n is negative.

ParameterTypeDescription
n *integer

math_fibonacci

Return the nth Fibonacci number (0-indexed). Returns an error if n is negative.

ParameterTypeDescription
n *integer

string_reverse

Reverse a string.

ParameterTypeDescription
text *string

string_uppercase

Convert a string to uppercase.

ParameterTypeDescription
text *string

string_lowercase

Convert a string to lowercase.

ParameterTypeDescription
text *string

string_length

Return the character count of a string.

ParameterTypeDescription
text *string

string_char_count

Count occurrences of a character in a string.

ParameterTypeDescription
char *string
text *string

string_replace

Replace all occurrences of old with new in a string.

ParameterTypeDescription
new *string
old *string
text *string

string_split

Split a string by a delimiter.

ParameterTypeDescription
delimiter *string
text *string

string_join

Join a list of strings with a delimiter.

ParameterTypeDescription
delimiter *string
items *array

collection_sort

Sort a list of items. Args: items: The list to sort. reverse: If True, sort in descending order.

ParameterTypeDescription
items *array
reverseboolean

collection_flatten

Recursively flatten nested lists. Args: items: A potentially nested list to flatten.

ParameterTypeDescription
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).

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
items *array
size *integer

encoding_base64_encode

Base64-encode a string.

ParameterTypeDescription
text *string

encoding_base64_decode

Base64-decode a string. Returns an error if the input is not valid base64.

ParameterTypeDescription
data *string

encoding_url_encode

URL-encode a string using percent-encoding (spaces become +).

ParameterTypeDescription
text *string

encoding_url_decode

URL-decode a percent-encoded string.

ParameterTypeDescription
text *string

encoding_hex_encode

Hex-encode a string.

ParameterTypeDescription
text *string

encoding_hex_decode

Hex-decode a string. Returns an error if the input is not valid hex.

ParameterTypeDescription
data *string

encoding_md5

Return the MD5 hash hex digest of a string.

ParameterTypeDescription
text *string

encoding_sha256

Return the SHA-256 hash hex digest of a string.

ParameterTypeDescription
text *string

datetime_parse

Parse an ISO date string and return its components {year, month, day, hour, minute, second}.

ParameterTypeDescription
date_string *string

datetime_format

Format a date to a string using a strftime format specifier.

ParameterTypeDescription
day *integer
format *string
month *integer
year *integer

datetime_add_days

Add N days to a date and return the resulting ISO date string.

ParameterTypeDescription
date_string *string
days *integer

datetime_diff

Return the number of days between two dates (a - b).

ParameterTypeDescription
date_a *string
date_b *string

datetime_day_of_week

Return the weekday name (e.g., 'Friday') for a given date.

ParameterTypeDescription
date_string *string

datetime_is_leap_year

Return whether the given year is a leap year.

ParameterTypeDescription
year *integer

datetime_days_in_month

Return the number of days in the given month and year.

ParameterTypeDescription
month *integer
year *integer

datetime_week_number

Return the ISO week number for the given date.

ParameterTypeDescription
date_string *string

validation_is_email

Check whether a string is a valid email address format.

ParameterTypeDescription
text *string

validation_is_url

Check whether a string is a valid URL with http or https scheme.

ParameterTypeDescription
text *string

validation_is_ipv4

Check whether a string is a valid IPv4 address.

ParameterTypeDescription
text *string

validation_is_ipv6

Check whether a string is a valid IPv6 address.

ParameterTypeDescription
text *string

validation_is_uuid

Check whether a string is a valid UUID.

ParameterTypeDescription
text *string

validation_is_json

Check whether a string is valid JSON.

ParameterTypeDescription
text *string

validation_is_palindrome

Check whether a string is a case-sensitive palindrome.

ParameterTypeDescription
text *string

validation_matches_regex

Check whether a string matches a given regular expression pattern.

ParameterTypeDescription
pattern *string
text *string

conversion_celsius_to_fahrenheit

Convert a temperature from Celsius to Fahrenheit.

ParameterTypeDescription
value *number

conversion_fahrenheit_to_celsius

Convert a temperature from Fahrenheit to Celsius.

ParameterTypeDescription
value *number

conversion_km_to_miles

Convert a distance from kilometers to miles.

ParameterTypeDescription
value *number

conversion_miles_to_km

Convert a distance from miles to kilometers.

ParameterTypeDescription
value *number

conversion_bytes_to_human

Convert a byte count to a human-readable string (e.g., '1.00 KB').

ParameterTypeDescription
bytes *integer

conversion_rgb_to_hex

Convert RGB color values (0-255) to a hex color string.

ParameterTypeDescription
b *integer
g *integer
r *integer

conversion_hex_to_rgb

Convert a hex color string to RGB values. Supports with or without '#' prefix.

ParameterTypeDescription
hex_color *string

conversion_decimal_to_binary

Convert a decimal integer to its binary string representation (without '0b' prefix).

ParameterTypeDescription
value *integer

echo

Return the input message unchanged.

ParameterTypeDescription
message *string

echo_error

Always raises a ToolError with the given message.

ParameterTypeDescription
message *string

echo_large

Return deterministic text of approximately N kilobytes.

ParameterTypeDescription
size_kb *integer

echo_nested

Return nested JSON structure to the given depth.

ParameterTypeDescription
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.

ParameterTypeDescription
messages *array

echo_schema

Echo all parameters back as JSON.

ParameterTypeDescription
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).

ParameterTypeDescription
city *string

task_run

Run another tool as an MCP task: working for working_polls checks, then completed with that tool's result.

ParameterTypeDescription
tool *string
arguments
poll_interval_msinteger
working_pollsinteger

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).

ParameterTypeDescription
messagestring
outcomestring
poll_interval_msinteger
working_pollsinteger