这是一个全面的《星战前夜:晨曦》(EVE Online)流量、导航和系统信息的模型上下文协议(MCP)服务器,它结合了官方ESI API和SDE数据,为玩家提供了丰富的游戏数据访问工具。
本项目目前处于测试开发阶段,功能可能不完整、不稳定或会有重大变更。请谨慎使用,并预计未来更新中可能会有重大变化。
本MCP服务器为《星战前夜:晨曦》的数据访问提供了全面的工具:
要通过Smithery为Claude桌面自动安装eve-online-traffic-mcp,请运行以下命令:
npx -y @smithery/cli install @kongyo2/eve-online-traffic-mcp --client claude
git clone https://github.com/kongyo2/eve-online-traffic-mcp.git
cd eve-online-traffic-mcp
npm install
使用交互式CLI在开发模式下启动服务器:
npm run dev
启动服务器以供生产使用:
npm run start
将TypeScript编译为JavaScript:
npm run build
# 以开发模式启动服务器
npm run dev
# 编译TypeScript代码
npm run build
# 启动生产模式服务器
npm run start
当向连接到此MCP服务器的大语言模型(LLM)提供指令时,建议使用《星战前夜:晨曦》实体(太阳系、空间站、星域、军团等)的英文名称,以获得最佳结果。服务器的名称解析系统主要围绕英文实体名称设计,使用英文可确保数据检索的更高准确性和一致性。 示例:
solar_system_name_to_id:将太阳系名称转换为其ID。
systemNames:太阳系名称数组(最多500个){
"systemNames": ["Jita", "Amarr", "Dodixie"]
}
station_name_to_id:将空间站名称转换为其ID。
stationNames:空间站名称数组(最多500个)region_name_to_id:将星域名称转换为其ID。
regionNames:星域名称数组(最多500个)universal_name_to_id:将任何《星战前夜:晨曦》实体名称转换为其ID。
names:实体名称数组(最多500个)solar_system_info:从ESI和SDE API获取全面的太阳系信息。
systemIds:太阳系ID数组(最多100个){
"systemIds": [30000142, 30002187]
}
stargate_info:获取详细的星门信息和连接。
stargateIds:星门ID数组(最多50个)system_connection_map:生成显示系统之间星门链接的连接地图。
systemIds:太阳系ID数组(最多50个){
"systemIds": [30000142]
}
calculate_route:计算《星战前夜:晨曦》中两个太阳系之间的最短路线。
origin:起始太阳系名称或IDdestination:目标太阳系名称或IDflag:(可选)shortest(默认)、secure或insecureavoidSystems:(可选)要避开的系统名称或ID数组{
"origin": "Jita",
"destination": "Amarr",
"flag": "secure"
}
calculate_multiple_routes:计算从一个起始点到多个目标点的路线。
origin:起始太阳系名称或IDdestinations:目标系统名称或ID数组(最多20个)flag:(可选)shortest(默认)、secure或insecureavoidSystems:(可选)要避开的系统名称或ID数组{
"origin": "Jita",
"destinations": ["Amarr", "Dodixie", "Rens"]
}
find_systems_in_range:查找从起始系统指定跳跃范围内的所有太阳系。
origin:起始太阳系名称或IDmaxJumps:最大跳跃次数(1 - 10)flag:(可选)shortest(默认)、secure或insecureavoidSystems:(可选)要避开的系统名称或ID数组{
"origin": "Jita",
"maxJumps": 5
}
eve-entity-lookup:生成《星战前夜:晨曦》实体及其ID的摘要。eve-system-analysis:分析太阳系信息和连接,并提供详细的交通数据。运行测试套件:
npm run test
检查代码风格和格式:
npm run lint
自动格式化代码:
npm run format
{
"success": true,
"results": [{
"system_id": 30000142,
"name": "Jita",
"constellation_id": 20000020,
"constellation_name": "Kimotoro",
"region_id": 10000002,
"region_name": "The Forge",
"security_status": 0.946,
"security_class": "B",
"stargates": [
"50001248 (Stargate (Perimeter))",
"50001249 (Stargate (Sobaseki))"
],
"stations": [
"60003760 (Jita IV - Moon 4 - Caldari Navy Assembly Plant)"
],
"source": {
"esi": true,
"sde": true
}
}]
}
{
"success": true,
"results": [{
"system_id": 30000142,
"system_name": "Jita",
"security_status": 0.946,
"connections": [{
"destination_system_id": 30000144,
"destination_system_name": "Perimeter",
"stargate_id": 50001248,
"stargate_name": "Stargate (Perimeter)",
"destination_stargate_id": 50000056,
"destination_stargate_name": "Stargate (Jita)"
}]
}]
}
本服务器使用多个《星战前夜:晨曦》API:
POST /universe/ids/ - 将名称转换为IDPOST /universe/names/ - 将ID转换为名称GET /universe/systems/ - 获取所有太阳系IDGET /universe/systems/{system_id}/ - 获取太阳系信息GET /universe/stargates/{stargate_id}/ - 获取星门信息GET /universe/solarSystems - 获取所有太阳系IDGET /universe/solarSystems/{solarSystemID} - 获取太阳系信息GET /universe/stargates - 获取所有星门IDGET /universe/stargates/{stargateID} - 获取星门信息为了增强分析和复杂的《星战前夜:晨曦》查询能力,建议将此服务器与MCP顺序思考工具结合使用。这种组合允许通过结构化的思考过程对《星战前夜:晨曦》数据进行复杂的多步骤分析、路线规划和战略决策。
本项目采用MIT许可证,详情请参阅LICENSE文件。
npm run lint和npm run test