mcp-api-test

v0.3.0
mcp-api-test Checked 1 day ago Published 1 month ago

MCP server for testing REST API with built-in assertions

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

run_test_api

Test a given API services, it will supports either: 1. Shared cURL command and it will be structured 2. Or, pre-defined structured requests data Use ``${ENV_VAR}`` in the cURL command, URL, headers, query params or payload to inject secrets from the server environment (or its .env file) without handling them directly. Example prompt: `Please test this API based on this cURL, ensure status code is 2xx, and response contains 'id'`

ParameterTypeDescription
api_name *string
base_url
curl_command
endpoint
follow_redirectsboolean
headers
include_response_headersboolean
max_body_charsinteger
max_response_time_ms
methodstring
output_formatstring
payload
query_params
required_response_contains
required_response_fields
required_response_headers
required_response_values
required_status_code
required_status_code_range
response_not_contains
timeoutnumber
verify_tlsboolean