# extract_stdio_server_commands

> **Function** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/mcp_tools/extract_stdio_server_commands)

Extract stdio server entries from a parsed MCP config.

## Signature

```python
extract_stdio_server_commands(
    config: dict[str, Any],
) -> list[tuple[str, str, list[str]]]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `config` | `dict[str, Any]` | Yes | Parsed MCP config dict with `mcpServers` key. |

## Returns

`list[tuple[str, str, list[str]]]`

List of `(server_name, command, args)` for each stdio server.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/a827cddf72d72e4b17921b8eb445a3bfb0511cb4/libs/cli/deepagents_cli/mcp_tools.py#L265)