﻿---
title: "Windows MCP 路径用单引号"
filename: "~/.codex/config.toml"
canonical: /templates/toml-windows-path-quotes/
---

# Windows MCP 路径用单引号

TOML 双引号会把反斜杠当转义。Windows 路径用单引号或正斜杠，否则整份配置解析失败，桌面可能卡在启动页。

```
[mcp_servers.docs]
command = 'C:\Users\you\mcp-server\start.ps1'
args = ["-stdio"]
startup_timeout_sec = 30
enabled = true

```
