Repository navigation
board_header() and header_map(): the wiring profile on the pod's header as text - #107
Merged
Merged
Conversation
…er as text BenchPod.board_header() asks the pod once per connection which I/O header it has (the read-only module command: front connector on digital v3r3 and later, J1 pin headers on the one-piece boards; else the status). header_map(wiring, header) writes the profile on it: each pin in its physical place, then what to connect to it. The MCP wiring tool returns board_header and header_map, so an agent without a picture can still show the user how to wire the board. Docs and changelogs (3.0.2). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ay null) The MCP's minimum SDK is 3.0.1, which has no header_map: import it optionally. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
The web and desktop apps get a Visualize button that draws a wiring profile on the pod's real I/O header (benchpod-ui#35). MCP clients (Claude Code, Claude Desktop, Codex) can't reliably show a picture from a tool, so the MCP gets the same thing as text instead of an image.
BenchPod.board_header():"j1"(2x11 pin headers, one-piece boards up to v3-r2) or"front"(2x13 front connector, digital v3r3 and later), None when the pod can't tell. Asked once per connection: the read-onlymodulecommand (answers on module-link boards, refuses with "no module link" elsewhere, works over the cloud), else the status.header_map(wiring, header)(newembeddedci.benchpod.header, exported): each header pin in its physical place, then what to connect to it (pull resistors noted). None writes both headers.wiringreturnsboard_headerandheader_map.Tests:
tests/test_header.py(layout, connections, detection incl. caching and old firmware), MCPtest_wiring_draws_the_profile_on_the_pods_header. Full SDK suite 988 passed; MCP 208 passed. Not HW-tested.🤖 Generated with Claude Code