
一款模型上下文协议(MCP)服务器,提供访问Expo文档的高级搜索和导航功能。
概览
一款模型上下文协议(MCP)服务器,提供访问Expo文档的高级搜索和导航功能。 - 🔍 : 搜索带有章节和版本过滤功能的博览会文档 - 📄 : 按URL或路径获取完整文档页面 - 📚 : 列出可用的文档章节和主题 - 🛠️ : 访问Expo SDK模块的详细API文档 - 🚀 : 平台特定入门指南 - 📦 : 访问不同SDK版本的文档 - 💾 : 为最佳性能提供一周缓存 - 📱 : 本地下载和索引文档以实现快速可靠访问 - 🔎 : 高级搜索,支持精确、部分和模糊匹配 添加到你的Claude桌面配置(claude_desktop_config.json): - 查询(必需):搜索查询 - 部分(可选):文档部分(首页、指南、简易文档、参考、学习、版本)- 版本(可选):SDK 版本(例如,最新版,v51.0.0、v50.0.0) 获取特定文档页面的完整内容。
概述(AI 翻译)
一款模型上下文协议(MCP)服务器,提供访问Expo文档的高级搜索和导航功能。
特色
- 🔍 搜索文档:通过带章节和版本筛选的博览会文档进行搜索
- 📄 完整内容访问:按URL或路径获取完整文档页面
- 📚 浏览版块:列出可用的文档部分和主题
- 🛠️ API 参考:访问 Expo SDK 模块的详细 API 文档
- 🚀 快速入门指南:针对特定平台的入门指南
- 📦 版本支持:访问不同SDK版本的文档
- 💾 智能缓存:为最佳性能提供1周缓存
- 📱 离线优先:本地下载和索引文档,实现快速可靠访问
- 🔎 模糊搜索:高级搜索,包含精确匹配、部分匹配和模糊匹配
安装
或者搭配NPX使用:
配置
添加到你的Claude桌面配置(claude_desktop_config.json):
可用工具
1.search_expo_docs
可以查阅博览会的相关资料。
参数:
query(必填):搜索查询
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Expo Docs MCP Server
A Model Context Protocol (MCP) server that provides access to Expo documentation with advanced search and navigation capabilities.
Features
- 🔍 Search Documentation: Search through Expo docs with section and version filtering
- 📄 Full Content Access: Get complete documentation pages by URL or path
- 📚 Browse Sections: List available documentation sections and topics
- 🛠️ API References: Access detailed API documentation for Expo SDK modules
- 🚀 Quick Start Guides: Platform-specific getting started guides
- 📦 Version Support: Access documentation for different SDK versions
- 💾 Smart Caching: 1-week cache for optimal performance
- 📱 Offline First: Downloads and indexes documentation locally for fast, reliable access
- 🔎 Fuzzy Search: Advanced search with exact, partial, and fuzzy matching
Installation
npm install expo-docs-mcp
Or use with npx:
npx expo-docs-mcp
Configuration
Add to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"expo-docs": {
"command": "npx",
"args": ["expo-docs-mcp"]
}
}
}
Available Tools
1. search_expo_docs
Search through Expo documentation.
Parameters:
query(required): Search querysection(optional): Documentation section (home,guides,eas,reference,learn,versions)version(optional): SDK version (e.g.,latest,v51.0.0,v50.0.0)
2. get_expo_doc_content
Get the full content of a specific documentation page.
Parameters:
url(optional): Full URL of the documentation pagepath(optional): Path within docs (e.g.,guides/routing)version(optional): SDK version
3. list_expo_sections
List all available documentation sections and topics.
Parameters:
section(optional): Section to list contents forversion(optional): SDK version
4. get_expo_api_reference
Get API reference for a specific Expo SDK module.
Parameters:
module(required): Module name (e.g.,expo-camera,expo-location)version(optional): SDK version
5. get_expo_quick_start
Get quick start guide for Expo.
Parameters:
platform(optional): Target platform (ios,android,web,all)
Development
Setup
# Clone the repository
git clone https://github.com/ah2-io/expo-docs-mcp.git
cd expo-docs-mcp
# Install dependencies
npm install
# Build the project
npm run build
Scripts
npm run build- Build the TypeScript projectnpm run dev- Watch mode for developmentnpm start- Run the built servernpm run download-docs- Download and cache Expo documentationnpm run init- Build and download docs (first-time setup)
Project Structure
├── src/
│ ├── index.ts # MCP server setup and tool handlers
│ ├── offline-docs-fetcher.ts # Offline documentation management and search
安装
npx expo-docs-mcp配置
{
"mcpServers": {
"expo-docs": {
"command": "npx",
"args": ["expo-docs-mcp"]
}
}
}