Skip to content

Commit a666dab

Browse files
Yusaku01sarah11918
andauthored
docs: add Codex CLI MCP server setup to build-with-ai guide (#13202)
Co-authored-by: Sarah Rainsberger <[email protected]>
1 parent b5a85f7 commit a666dab

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/content/docs/en/guides/build-with-ai.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,20 @@ You can configure it to use the Astro Docs MCP server for documentation access b
111111
112112
[More info on using MCP servers with the Claude Code GitHub Action](https://github.com/anthropics/claude-code-action?tab=readme-ov-file#using-custom-mcp-configuration)
113113
114+
#### Codex CLI
115+
116+
Codex CLI is a command-line AI coding tool that can use the Astro Docs MCP server to access documentation while generating Astro code.
117+
118+
You can configure MCP servers at the global level in the `~/.codex/config.toml` file, or in a `.codex/config.toml` file in a project root.
119+
120+
```toml title="~/.codex/config.toml"
121+
[mcp_servers.astro-docs]
122+
command = "npx"
123+
args = ["-y", "mcp-remote", "https://mcp.docs.astro.build/mcp"]
124+
```
125+
126+
[More info on using MCP servers with Codex CLI](https://developers.openai.com/codex/mcp)
127+
114128
#### Cursor
115129

116130
[Cursor](https://cursor.com) is an AI code editor. Adding the Astro Docs MCP server allows Cursor to access the latest Astro documentation while performing development tasks.

0 commit comments

Comments
 (0)