﻿---
title: "HTTP MCP 的 auth 回退"
filename: "~/.codex/config.toml"
canonical: /templates/mcp-http-auth-chatgpt/
---

# HTTP MCP 的 auth 回退

默认 oauth。chatgpt 只给与 chatgpt_base_url 同源的主机。第三方不要开。

```
[mcp_servers.docs]
url = "https://mcp.example.com/mcp"
auth = "oauth"

```
