pyxel-mcp
by kitao·★ 17·综合分 43
MCP服务器,支持使用Pyxel进行AI辅助复古游戏开发,提供运行、捕获和分析游戏工具。
概述
Pyxel-MCP是一个专门的MCP服务器,使AI代理能够使用Pyxel(基于Python的复古游戏引擎)自主开发、测试和分析复古游戏。它提供全面的工具来运行游戏脚本、捕获屏幕截图、录制游戏玩法和调试游戏状态。服务器还将Pyxel参考文档作为MCP资源暴露,使AI代理在开发过程中更容易访问官方文档和示例。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
如果您正在使用Pyxel进行复古游戏开发,并希望AI协助进行自动化测试、视觉分析和代码验证,请选择此MCP服务器。
什么时候不要选它
如果您正在使用Unity或Unreal Engine等现代游戏引擎进行开发,请不要选择此服务器,因为它专门为Pyxel的复古游戏开发工作流程而设计。
此 server 暴露的工具
从 README 抽取出 12 个工具run_and_captureRun a Pyxel script and capture a screenshot after N frames
capture_framesCapture screenshots at multiple frame points for animation verification
record_gameplayRecord N frames as a GIF for animation/transition verification
play_and_capturePlay a game by sending simulated input and capture screenshots
validate_scriptValidate a Pyxel script without running it
inspect_stateRead game object attributes at specific frames for debugging
inspect_screenCapture screen as a compact color index grid
compare_framesCompare screenshots at two frames and report pixel differences
inspect_spriteInspect sprite pixel data from a Pyxel image bank
inspect_layoutAnalyze screen layout, text alignment, and visual balance
inspect_paletteAnalyze color usage and contrast in a Pyxel screenshot
render_audioRender a Pyxel sound or music to WAV and return waveform analysis
可对比工具
安装
安装
- 安装包:
pip install pyxel-mcp- 在您的AI代理中将
pyxel-mcp注册为MCP服务器。对于Claude Code,请添加到项目的.mcp.json中:
{
"mcpServers": {
"pyxel": {
"type": "stdio",
"command": "pyxel-mcp"
}
}
}FAQ
- 什么是Pyxel?
- Pyxel是一个用于Python的复古游戏引擎,灵感来自PICO-8,旨在创建小型复古风格游戏。
- 如何通过此MCP服务器访问Pyxel示例?
- 您可以在Claude Code中使用`@pyxel:examples/<name>`格式引用示例,例如`@pyxel:examples/02_jump_game`。
pyxel-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。