GeoFS MCP 服务器
GeoFS 飞行模拟器的模型上下文协议 (MCP) 服务器,允许 AI 模型控制和与基于 GeoFS 浏览器的飞行模拟器中的飞机交互。
特征
- 🛫 控制飞机飞行参数(油门、航向等)
- 📊 访问实时飞行数据(位置、速度、姿态)
- 🗺️ 在航点和机场之间导航
- ✈️选择不同的飞机模型
- 🔄 执行飞行动作(起飞、降落)
先决条件
- Node.js(v14 或更高版本)
- npm 或 yarn
- 现代网络浏览器(推荐使用 Chrome)
安装
- 克隆此存储库:
- 安装依赖项:
- 构建项目:
用法
启动服务器
- 启动 MCP 服务器:
- 服务器将启动一个导航至 GeoFS 的浏览器窗口
- 如果需要,您可能需要登录 GeoFS
- 服务器将等待 GeoFS 完全加载后再接受命令
- MCP 服务器将在以下位置开放:
- HTTP:
http://localhost:3000
- WebSocket:
ws://localhost:3000
- HTTP:
与AI模型一起使用
该 MCP 服务器可与支持模型上下文协议的 AI 模型一起使用,从而使它们能够:
- 在模拟器中控制飞机
- 检索飞行数据和模拟器状态
- 执行复杂的飞行动作
- 规划并遵循飞行路线
API 端点
GET /mcp
- 获取服务器功能和可用端点GET /mcp/aircraft
- 获取当前飞机数据POST /mcp/aircraft
- 控制飞机参数GET /mcp/flight-data
- 获取全面的航班数据POST /mcp/navigation
- 设置导航参数GET /mcp/simulation
- 获取模拟状态POST /mcp/simulation
- 控制模拟参数
WebSocket 命令
服务器还支持WebSocket进行实时通信:
可用命令:
setThrottle
- 设置发动机油门 (0-1)setHeading
- 以度为单位设置目标航向getPosition
- 获取当前飞机位置selectAircraft
- 更改为不同的飞机takeOff
执行起飞程序land
执行着陆程序getFlightData
- 获取全面的航班数据
示例客户端
请参阅examples/simple-client.js
文件,了解如何连接和使用 GeoFS MCP 服务器的基本示例。
运行示例:
工作原理
GeoFS MCP 服务器使用 Puppeteer 控制运行 GeoFS 的浏览器实例。它提供了标准化的 MCP 接口,允许 AI 模型通过 HTTP 和 WebSocket API 与飞行模拟器进行交互。
贡献
欢��贡献代码!欢迎提交 Pull 请求。
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。
致谢
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
一种服务器,允许 AI 模型通过标准化接口控制和与 GeoFS 基于浏览器的飞行模拟器中的飞机交互。
Related MCP Servers
- -securityFlicense-qualityA server that provides rich UI context and interaction capabilities to AI models, enabling deep understanding of user interfaces through visual analysis and precise interaction via Model Context Protocol.Last updated -55Python
- -securityFlicense-qualityA server that enables AI systems to browse, retrieve content from, and interact with web pages through the Model Context Protocol.Last updated -
- -securityFlicense-qualityA server that integrates Blender with local AI models via the Model Context Protocol, allowing users to control Blender using natural language prompts for 3D modeling tasks.Last updated -43Python
- -securityFlicense-qualityA server that enables AI models to fetch and display Google Street View imagery, allowing users to create virtual tours by viewing streets and landmarks from anywhere.Last updated -4Python