Skip to main content
MCP server monitors launch an MCP server process and verify connectivity. Configuration specifies the server command and its environment.
Define this in code. YAML format · Terraform

Config fields

FieldTypeRequiredDefaultDescription
config.commandstringYesCommand to start the MCP server
config.argsarray of stringNo[]Command-line arguments
config.envobjectNo{}Environment variables to set for the process

Assertions

AssertionRequired fieldsDescription
mcp_connects(none)Passes if the MCP server starts and accepts connections
mcp_response_timemaxMsFails if initialization takes longer than threshold
mcp_response_time_warnwarnMsRecords degraded hint for elevated startup time
mcp_has_capabilitycapabilityFails if the server doesn’t advertise a specific capability
mcp_tool_availabletoolNameFails if a specific tool isn’t in the server’s tool list
mcp_min_toolsminFails if the tool count is below minimum
mcp_protocol_versionversionFails if the server’s MCP protocol version doesn’t match
mcp_tool_count_changedexpectedCountFails if the tool count differs from expected (detects drift)

Examples

Basic connectivity

Full validation

Next steps

MCP overview

When to use MCP server monitors.

MCP Server SDK

The DevHelm MCP server for AI agents.