pcb-lens
by JonahLiu
README.md
# dsh-pcb-lens
Review **PCB layouts** inside a DeepSeek Harness session — IPC-2581 XML (RevA,
RevB, RevC) and Cadence Allegro `.brd` boards (Allegro 16.0 to 25.1), read
directly — with no Cadence installation and no EDA license.
This is the DeepSeek Harness package of
[pcb-lens](https://github.com/IntelligentElectron/pcb-lens), the layout companion
of [universal-netlist](https://github.com/IntelligentElectron/universal-netlist).
Built for the `dsh-*` plugin ecosystem: **one command to install, nothing else to
do**. The MCP server is bundled into the package, so there is no global install,
no `PATH` requirement, no download and no network when a session starts.
```sh
dsh plugin --profile web add dsh-pcb-lens
```
Restart the profile if your host does not reload bundles in place. Then ask about
a layout, or call the tools directly:
```
mcp__pcb-lens__get_pcb_metadata file=/path/to/board.brd
mcp__pcb-lens__get_pcb_net file=/path/to/board.brd name=DDR_D0
mcp__pcb-lens__get_pcb_component file=/path/to/board.brd refdes=U5
mcp__pcb-lens__get_pcb_drc file=/path/to/board.brd
mcp__pcb-lens__get_constraints file=/path/to/board.brd
```
The tool set covers metadata and stackup, components, nets and routing, layers,
footprints, DRC, design constraints, and the two Windows-only exporters.
## How it is built
The package keeps exactly one reference to upstream: the
`@intelligentelectron/pcb-lens` devDependency, pinned to an exact version.
`scripts/build.mjs` bundles that release — injecting upstream's own
`BUILD_VERSION`, so the server reports the release's version and not this
package's — into the single file `vendor/server.mjs`. It is generated, not
committed, and shipped through the `prepack` script.
Nothing from upstream is copied into this repository. Updating the bundled
server means bumping that one version and running `npm run build`.
No skill is shipped: the MCP server sends its own instructions to the model on
connect, so a second copy of the same guidance would only compete with it.
## Requirements
- DeepSeek Harness `0.2.1` or newer (declared in `engines.dsh`)
- Node.js 22.15 or newer
> Upstream declares Node.js 24 in its `engines`, but the server runs on Node 22 —
> this package is built and tested on 22.22.2.
## Configuration
Both fields live in the inserted row, editable under **Plugins** in the DSH Web
UI or in the profile's `cordis.patch.yml`:
| Field | Default | Meaning |
|---|---|---|
| `serverName` | `pcb-lens` | Namespace of the tool names: `mcp__<serverName>__<tool>` |
| `toolCallTimeoutMs` | `120000` | Per-call timeout; a large `.brd` takes a moment to parse |
| `failOnStartupError` | `false` | Leave unset so a broken server never blocks DSH startup |
## Remove
```sh
dsh plugin --profile web remove dsh-pcb-lens
```
## Compatibility
| DSH | Status |
|---|---|
| `0.2.1-rc.2` | tested |
| `< 0.3.0-0` | expected to work; `engines.dsh` allows it |
## License
Apache-2.0. The bundled server and its dependencies are Apache-2.0 as well; see
`NOTICE` for the attribution this redistribution requires.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues