mock_echo
Test MCP client implementations by echoing provided messages for validation and debugging in development workflows.
Instructions
Echo back the provided message.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"message": "<message>"
},
"name": "mock_echo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/mock_mcp_server/main.py:37-39 (handler)The mock_echo tool handler function, decorated with @mcp.tool for registration. It takes a string message and returns an echoed response.
def mock_echo(message: str) -> str: """Echo back the provided message.""" return f"Mock server echoes: {message}"