LangWatch tests MCP servers with simulated agents

langwatch.ai8 min read

The author argues that testing Model Context Protocol (MCP) servers requires real agents and simulated users rather than unit tests alone, because agents read tool names, descriptions, and schemas rather than the underlying code. By running a scenario-based test with an agent and a simulated user, developers can catch issues where models misinterpret vague tool descriptions. Additionally, developers can audit production tool calls by exporting OpenTelemetry spans from the MCP Python SDK to observability platforms like LangWatch. Open article →