
ivanamador/vercel-ai-docs-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
ivanamador/vercel-ai-docs-mcp - кандидат на сервер MCP, импортированный из https://github.com/ivanamador/vercel-ai-docs-mcp.
Обзор
ivanamador/vercel-ai-docs-mcp - кандидат на сервер MCP, импортированный из https://github.com/ivanamador/vercel-ai-docs-mcp.
Обзор (машинный перевод)
Сервер Model Context Protocol (MCP), который предоставляет возможности поиска и запроса на основе ИИ для документации Vercel AI SDK. Этот проект позволяет разработчикам задавать вопросы о Vercel AI SDK и получать точные, контекстуализированные ответы на основе официальной документации.
Особенности
Прямой поиск документации: запросить индекс документации Vercel AI SDK напрямую с помощью поиска подобия Агент с искусственным интеллектом: Задавайте вопросы на естественном языке о Vercel AI SDK и получайте исчерпывающие ответы Управление сессией: Поддерживайте контекст разговора в нескольких запросах Автоматизированная индексация: включает в себя инструменты для получения, обработки и индексации последней документации Vercel AI SDK
Архитектура
Эта система состоит из нескольких ключевых компонентов:
- MCP Server: выставляет инструменты через протокол Model Context для интеграции с помощниками ИИ
- ДокументFetcher: Переполняет и обрабатывает документацию Vercel AI SDK
- VectorStoreManager: создает и управляет векторным индексом FAISS для семантического поиска
- AgentService: предоставляет ответы на вопросы с использованием модели Google Gemini
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Vercel AI SDK Documentation MCP Agent
A Model Context Protocol (MCP) server that provides AI-powered search and querying capabilities for the Vercel AI SDK documentation. This project enables developers to ask questions about the Vercel AI SDK and receive accurate, contextualized responses based on the official documentation.
Features
- Direct Documentation Search: Query the Vercel AI SDK documentation index directly using similarity search
- AI-Powered Agent: Ask natural language questions about the Vercel AI SDK and receive comprehensive answers
- Session Management: Maintain conversation context across multiple queries
- Automated Indexing: Includes tools to fetch, process, and index the latest Vercel AI SDK documentation
Architecture
This system consists of several key components:
- MCP Server: Exposes tools via the Model Context Protocol for integration with AI assistants
- DocumentFetcher: Crawls and processes the Vercel AI SDK documentation
- VectorStoreManager: Creates and manages the FAISS vector index for semantic search
- AgentService: Provides AI-powered answers to questions using the Google Gemini model
- DirectQueryService: Offers direct semantic search of the documentation
Setup Instructions
Prerequisites
- Node.js 18+
- npm
- A Google API key for Gemini model access
Environment Variables
Create a .env file in the project root with the following variables:
GOOGLE_GENERATIVE_AI_API_KEY=your-google-api-key-here
You’ll need to obtain a Google Gemini API key from the Google AI Studio.
Installation
-
Clone the repository
git clone https://github.com/IvanAmador/vercel-ai-docs-mcp.git cd vercel-ai-docs-mcp-agent -
Install dependencies
npm install -
Build the project
npm run build -
Build the documentation index
npm run build:index -
Start the MCP server
npm run start
Integration with Claude Desktop
Claude Desktop is a powerful AI assistant that supports MCP servers. To connect the Vercel AI SDK Documentation MCP agent with Claude Desktop:
-
First, install Claude Desktop if you don’t have it already.
-
Open Claude Desktop settings (via the application menu, not within the chat interface).
-
Navigate to the “Developer” tab and click “Edit Config”.
-
Add the Vercel AI Docs MCP server to your configuration:
{
"mcpServers": {
"vercel-ai-docs": {
"command": "node",
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"vercel-ai-docs": {
"command": "node",
"args": ["ABSOLUTE_PATH_TO_PROJECT/dist/main.js"],
"env": {
"GOOGLE_GENERATIVE_AI_API_KEY": "your-google-api-key-here"
}
}
}
}