# extract_stdio_server_commands

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/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 dictionary. |

## Returns

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

List of `(server_name, command, args)` tuples for stdio servers.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/a98f0dfa8d534d8a1885b524632400e52db22ac6/libs/code/deepagents_code/mcp_tools.py#L764)