WD

withastro/docs-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

68 stars 12 forks Качество 51 Тренд 0

withastro/docs-mcp - кандидат на сервер MCP, импортированный из https://github.com/withastro/docs-mcp.

Обзор

withastro/docs-mcp - кандидат на сервер MCP, импортированный из https://github.com/withastro/docs-mcp.

Обзор (машинный перевод)

Это сервер Model Context Protocol (MCP) для документации Astro, позволяющий инструментам ИИ, таким как Cursor, VS Code, Claude, ChatGPT и Windsurf, получать доступ к последним документам Astro.

MCP - это стандартизированный способ подключения языковых моделей к внешним инструментам, данным и API. Этот сервер позволяет LLM получить структурированный доступ к документации Astro, что позволяет им отвечать на вопросы о функциях Astro, API и лучших практиках. Это позволяет использовать современную и точную документацию при создании кода, ответах на вопросы или предоставлении помощи.

Использование

MCP-сервер Astro Docs — это удаленный сервер, который не требует локальной установки. Вы должны добавить следующие настройки в свой MCP-совместимый инструмент:

  • Имя: [[Т0]]
  • URL: https://mcp.docs.astro.build/mcp
  • Транспорт: [[Т2]]

[!ПРИМЕЧАНИЕ] Этот сервер использует новый streamable HTTP transport. Некоторые инструменты поддерживают только транспорт SSE для удаленных серверов, который не совместим с этим сервером. Если ваш инструмент не поддерживает потоковый HTTP, вам нужно будет использовать локальный прокси-сервер. Смотрите раздел Windsurf ниже для подробностей.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Astro Docs MCP Server

This is the Model Context Protocol (MCP) server for the Astro documentation, allowing AI tools such as Cursor, VS Code, Claude, ChatGPT, and Windsurf to access the latest Astro docs.

MCP is a standardized way to connect language models to external tools, data, and APIs. This server allows LLMs to access the Astro documentation in a structured way, enabling them to answer questions about Astro’s features, APIs, and best practices. This allows tools to use up-to-date and accurate documentation when generating code, answering questions, or providing assistance.

Usage

The Astro Docs MCP server is a remote server that doesn’t require anything to be installed locally. You need to add the following settings to your MCP-compatible tool:

  • Name: Astro Docs
  • URL: https://mcp.docs.astro.build/mcp
  • Transport: http

[!NOTE] This server uses the new streamable HTTP transport. Some tools only support SSE transport for remote servers, which is not compatible with this server. If your tool does not support streamable HTTP, you will need to use a local proxy. See the Windsurf section below for details.

Each tool has its own way of adding MCP servers, so here are instructions for some popular tools:

Cursor

GitHub doesn’t support Cursor deep links, so open the link below in your browser to install the MCP server in Cursor:

cursor://anysphere.cursor-deeplink/mcp/install?name=Astro%20docs&config=eyJ1cmwiOiJodHRwczovL21jcC5kb2NzLmFzdHJvLmJ1aWxkL21jcCJ9

More info on MCP in Cursor

Claude.ai / Claude Desktop

More info on MCP in Claude.ai

Claude Code

Run the following command in your terminal to add the MCP server:

claude mcp add --transport http "Astro docs" https://mcp.docs.astro.build/mcp

More info on MCP in Claude Code

VS Code

GitHub doesn’t support VS Code deep links, so open the link below in your browser to install the MCP server in VS Code:

vscode:mcp/install?%7B%22name%22%3A%22Astro%20docs%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.docs.astro.build%2Fmcp%22%7D

More info on MCP in VS Code

Windsurf

As of July 2025, Windsurf doesn’t support streamable HTTP MCP servers, so you need to use a local proxy. Use the following configuration:

{
  "mcpServers": {
    "Astro docs": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.docs.astro.build/mcp"]
    }
  }
}
Открыть полный README на GitHub

Установка

npx -y mcp-remote https://mcp.docs.astro.build/mcp
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "Astro docs": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.docs.astro.build/mcp"] } } }