MSFS SDK MCP Server 是一个现代化、高性能的 MCP 服务器,可通过自然语言和结构化查询快速、结构化地访问微软飞行模拟器 SDK 文档,为用户提供便捷的文档搜索和内容获取服务。
git clone https://github.com/yourusername/msfs-sdk-mcp.git
cd msfs-sdk-mcp
npm install
npm run build
npm start
git clone https://github.com/yourusername/msfs-sdk-mcp.git
cd msfs-sdk-mcp
npm install
npm run build
npm start
| 工具 | 描述 | 参数 |
|---|---|---|
search_msfs_docs |
🔍 搜索 MSFS SDK 文档 | query, category, limit |
get_doc_content |
📄 检索详细内容 | url, section |
list_categories |
📚 显示所有搜索类别 | - |
list_category_items |
📋 列出每个类别的项目 | category |
natural_language_query |
🧠 自然语言查询 | query |
contents - 📖 主要文档内容index - 📇 文档索引条目glossary - 📚 技术术语和定义all - 🌐 跨所有类别搜索(默认:索引){
"name": "search_msfs_docs",
"arguments": {
"query": "livery",
"category": "all",
"limit": 10
}
}
{
"name": "get_doc_content",
"arguments": {
"url": "https://docs.flightsimulator.com/html/...",
"section": "overview"
}
}
https://docs.flightsimulator.com/html/Introduction/Introduction.htm?rhsearch={query}&agt={category}
参数说明:
{query} - 🔍 搜索词(URL 编码){category} - 🏷️ 可选类别(index, glossary 或为空表示内容){
"content": [
{
"type": "text",
"text": "**Title**\n- Category: category\n- URL: url\n- Description: description"
}
]
}
此服务器可与兼容 MCP 的 AI 助手配合使用,例如:
{
"mcpServers": {
"msfs-sdk": {
"command": "node",
"args": ["path/to/msfs-sdk-mcp/dist/index.js"]
}
}
}
msfs-sdk-mcp/
├── 📄 package.json # 依赖和脚本
├── 📄 tsconfig.json # TypeScript 配置
├── 📄 README.md # 项目文档
├── 📄 LICENSE # MIT 许可证
├── 📂 src/
│ ├── 📄 index.ts # 🚀 主 MCP 服务器
│ └── 📂 services/
│ ├── 📄 documentationService.ts # 🔍 搜索逻辑
│ └── 📄 naturalLanguageService.ts # 🧠 NLP 处理
└── 📂 dist/ # 🏗️ 编译后的 JavaScript
| 脚本 | 描述 | 命令 |
|---|---|---|
| 🏗️ 构建 | 编译 TypeScript | npm run build |
| 👀 开发模式 | 监听文件变化 | npm run dev |
| 🚀 启动服务器 | 启动 MCP 服务器 | npm start |
| 🔍 类型检查 | 进行 TypeScript 验证 | npx tsc --noEmit |
git checkout -b feature-namegit commit -am 'Add new feature'git push origin feature-namefeat: - 新功能fix: - 修复 bugdocs: - 文档更新refactor: - 代码重构test: - 添加测试本项目采用 MIT 许可证,详情请参阅 LICENSE 文件。
这是一个非官方工具,与微软或微软飞行模拟器没有关联。该工具通过官方 MSFS SDK 网站提供对公共文档的访问。
🚀 飞行愉快! ✈️