Skip to content

Claude/mcp toggle connections UI b083a9 - #10568

Closed
bartam wants to merge 3 commits into
PathOfBuildingCommunity:devfrom
bartam:claude/mcp-toggle-connections-ui-b083a9
Closed

bartam wants to merge 3 commits into
PathOfBuildingCommunity:devfrom
bartam:claude/mcp-toggle-connections-ui-b083a9

Conversation

@bartam

@bartam bartam commented Nov 24, 2026

Copy link
Copy Markdown

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:

bartam and others added 3 commits November 22, 2026 21:45
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>
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>
@bartam bartam closed this Nov 24, 2026
@bartam
bartam deleted the claude/mcp-toggle-connections-ui-b083a9 branch November 24, 2026 23:22
@bartam
bartam restored the claude/mcp-toggle-connections-ui-b083a9 branch November 24, 2026 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant