Pyramid Solver MCP
Interactive 4x4 sliding puzzle solver with MCP tools to open the widget and solve puzzles via A* or IDA*, plus a browser mode.
README
Pyramid Solver MCP
An interactive solver for the 4×4 sliding puzzle. It works in two modes:
- as an MCP App rendered inside ChatGPT;
- as a regular browser app at the server root.
The project uses React for the widget, the official Model Context Protocol SDK for the server, and a self-contained Vite build that can be returned as an MCP UI resource.
MCP tools
| Tool | What it does |
|---|---|
open_pyramid_solver |
Opens the blank interactive solver. |
solve_pyramid |
Solves 16 tile positions supplied row by row. Use 0 for the empty slot. |
The solver offers fast Weighted A* and optimal IDA* modes.
Run locally
Requirements: Node.js 20 or newer.
npm install
npm run build
npm start
Open http://localhost:8787 for browser mode. The Streamable HTTP MCP endpoint is:
http://localhost:8787/mcp
Test
npm test
npm run build
npm run smoke
You can inspect the MCP server with:
npx @modelcontextprotocol/inspector@latest
Choose Streamable HTTP and connect to http://localhost:8787/mcp.
Deploy to a public URL
The quickest path is the Deploy to Render button at the top of this README:
- Sign in to Render and allow it to access this GitHub repository.
- Keep the Blueprint settings and choose Deploy Blueprint.
- Wait for the service to become Live.
- Copy the generated URL, such as
https://pyramid-solver-mcp.onrender.com. - Check that
<your-url>/healthreturns{"ok":true}.
The included render.yaml builds the Dockerfile, checks /health, and deploys changes only after GitHub CI passes. Render's free service can take longer to answer after being idle.
Connect it to ChatGPT
ChatGPT requires a public HTTPS MCP endpoint. After deployment:
- In ChatGPT, open Settings → Security and login → Developer mode and enable it.
- Open Plugins and select the + button.
- Enter a name such as
Pyramid Solverand a short description. - Set the endpoint to your complete Render URL ending in
/mcp, for examplehttps://pyramid-solver-mcp.onrender.com/mcp. - Review the discovered tools and finish adding the plugin.
If tool definitions change after a later deployment, refresh the plugin so ChatGPT loads the new metadata. See OpenAI's Connect your MCP server to ChatGPT guide for the current interface.
Once connected, try Open the Pyramid Solver or provide a board such as:
1 2 3 4
5 6 7 8
9 10 11 12
13 14 0 15
Useful checks:
Open the Pyramid Solver.Solve this board with A*: 1 2 3 4 / 5 6 7 8 / 9 10 11 12 / 13 14 0 15.Solve this board optimally with IDA*: 1 2 3 4 / 5 6 7 8 / 9 10 11 12 / 13 14 0 15.
Docker
docker build -t pyramid-solver-mcp .
docker run --rm -p 8787:8787 pyramid-solver-mcp
Project structure
src/PyramidSolver.jsx React interface
src/solver.js A* and IDA* solver engine
src/mcpBridge.js MCP Apps UI bridge
server.js Streamable HTTP MCP server
test/solver.test.js Solver tests
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。