***

title: validate_services
slug: /reference/python/agents/mcp-gateway/mcp-manager/validate-services
description: Validate that all configured services can be started successfully.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[ref-mcpgateway]: /docs/server-sdks/reference/python/agents/mcp-gateway/mcp-gateway

Validate that all configured services can be started successfully. Starts and
immediately stops a client for each service. Returns a dictionary mapping
service names to their validation result (`True` = success).

This method is called automatically during [MCPGateway][ref-mcpgateway] initialization.

## **Parameters**

None.

## **Returns**

`dict[str, bool]` -- A dictionary mapping each service name to `True` (valid) or `False` (failed).

## **Example**

```python {11}
from signalwire.mcp_gateway import MCPManager

config = {
    "services": {
        "todo": {"command": ["python3", "todo_mcp.py"], "description": "Todo list", "enabled": True},
        "search": {"command": ["node", "search_mcp.js"], "description": "Search", "enabled": True}
    }
}

manager = MCPManager(config)
results = manager.validate_services()
for service, valid in results.items():
    status = "OK" if valid else "FAILED"
    print(f"  {service}: {status}")
```