Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions src/content/docs/en/guides/build-with-ai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -88,24 +88,17 @@ Claude Code also provides a GitHub Action that can be used to run commands in re

You can configure it to use the Astro Docs MCP server for documentation access by adding the following to the workflow file:

```yaml title=".github/workflows/claude.yml" {5-14}
```yaml title=".github/workflows/claude.yml" {5-6}
Comment thread
ArmandPhilippot marked this conversation as resolved.
Outdated
# ...rest of your workflow configuration
- uses: anthropics/claude-code-action@beta
- uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
mcp_config: |
{
"mcpServers": {
"astro-docs": {
"type": "http",
"url": "https://mcp.docs.astro.build/mcp"
}
}
}
allowed_tools: "mcp__astro-docs__search_astro_docs"
claude_args: |
--mcp-config '{"mcpServers": {"astro-docs": {"type": "http", "url": "https://mcp.docs.astro.build/mcp"}}}'
--allowedTools mcp__astro-docs__search_astro_docs
```

[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)
[More info on using MCP servers with the Claude Code GitHub Action](https://github.com/anthropics/claude-code-action/blob/main/docs/configuration.md#using-custom-mcp-configuration)

#### Codex CLI

Expand Down
Loading