Repository navigation
Conversation
Adds mcp/, a Python Model Context Protocol server that runs Path of Building headless under LuaJIT and lets AI assistants load builds (XML, share codes, pobb.in and similar links), read calculated stats and breakdowns, and try item, gem, passive tree and configuration changes. Every mutating tool reports which sidebar stats moved. The Lua bridge mirrors HeadlessWrapper.lua without touching src/, shims loadfile for LuaJIT builds that no longer skip the "#@" marker line, and disables dev-mode autosave. Share codes are inflated/deflated in Python since the headless runtime has no zlib. Includes end-to-end tests against spec/TestBuilds and a stdio MCP client, plus setup docs and a CONTRIBUTING pointer. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…cp-toggle-connections-ui-b083a9
Replace the headless Python MCP server with one that runs in the PoB window and acts on the build that is open there. - MCPServer.lua: sub script hosting a LuaSocket HTTP server (MCP Streamable HTTP transport, JSON responses) on 127.0.0.1. Each request is relayed to the main thread through a blocking sub-script call; build-site links are downloaded in the sub script. - Modules/MCPTools.lua: 36 tools acting on main.modes.BUILD, including list_builds, open_build, close_build and in-place save_build. Mutations recalc immediately, mark the build unsaved and report stat changes; replacing an open build with unsaved changes needs force. - Modules/MCPStatus.lua: server lifecycle, sessions and JSON-RPC handling; enabled state and port are saved in Settings.xml. - MCP panel: switch starts and stops the server, port is editable, and the connection list shows client sessions with their activity. - Remove the mcp/ Python package; document the setup in docs/mcp.md and CONTRIBUTING.md. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes # .
Description of the problem being solved:
Steps taken to verify a working solution:
Link to a build that showcases this PR:
Before screenshot:
After screenshot: