AI-assisted PCB design for KiCad 10
TL;DR Highlight
Konnect exposes KiCad to Claude via MCP tools in one Rust binary, cutting listing context from 23K to 2K tokens
Who Should Read
A developer whose MCP server has so many tools that context tokens are a burden, and who wants to automate hardware design with LLM agents
Core Mechanics
- Listing all tools costs 23K tokens
- The README says exposing all 228 tools costs about 23K tokens of context on every listing.
- Konnect's router loads only a starter kit of about 2K tokens first.
- The model pulls in toolsets on demand.
- Call path shrank to one function call
- The original KiCAD-MCP-Server went through TypeScript, a Python subprocess, JSON over stdin/stdout, and SWIG C++ proxies.
- In Konnect a tool call is a function call inside one process and one language.
- It ships as a single static binary of 20-25 MB, about 9 MB to download.
- IPC API for PCB, direct file editing for schematics
- PCB edits use KiCad 10's IPC API (protobuf over NNG) and integrate with KiCad's undo/redo.
- Schematic .kicad_sch files are edited by its own S-expression engine.
- Writes are atomic (write, fsync, rename) to avoid corrupting files.
- The model can diagnose its own tool failures
- Built-in observability includes get_recent_calls, server_stats, and JSONL call logs.
- The model can inspect why a tool failed.
- One flow from schematic to manufacturing files
- It places and routes parts, runs ERC/DRC, and audits decoupling and power rails.
- It searches a local catalog of 2.5M JLCPCB parts.
- It exports Gerbers, drill, BOM, pick-and-place, 3D models, and PDF.
- Autorouting wraps Freerouting in steps
- Call check_freerouting, export_specctra_dsn, then route_specctra_dsn.
- Then plan_specctra_ses_import and apply_specctra_ses bring the result back.
- Unlocked routing, arcs, zones, and unsupported geometry are rejected before any change.
Community Reactions
- Many reported routing is the weak spot
- One user tried computer-use, then mixed it with this repo and found stackup and part config great but routes terrible.
- It snakes traces through SMD pins and makes 10-30 tiny bends instead of two 45-degree turns.
- They said KiCadRoutingTools produces more sensible routes.
- Works if you hand-route and hand back
- One user said Fable 5.1 pins a few key traces and lets freerouting do the rest.
- Pushing hard for carefully designed routes makes it write code and get better results.
- They still need to review it and route a few traces by hand.
- A high-altitude balloon tracker came out well
- One user had Fable design a 4-layer board and used a tournament-style routing system to lock in good routes.
- It handled JLCPCB part search, spec checks, and manufacturing output, while Opus did not quite reach a good board.
- They stressed domain knowledge helps.
- Unusual parts cause big mistakes
- One user tried a GaN BLDC ESC with EPC GaN FETs and got significant mistakes in package and footprint choice.
- The view was that common parts work better thanks to training data examples.
- A hardware engineer said neither autorouting nor AI is close for PCB design yet.
- Lack of proof samples was criticized
- One commenter noted the repo text looks AI-styled with no example schematic or board PDF.
- Another said AI is good for part search and review but not placement or routing.
How to Apply
- Split your MCP tools into toolsets
- Today, measure your MCP server's tool listing in tokens.
- Group the heavy tools by purpose and expose only a few core ones at startup.
- Add a load_toolset-style tool to fetch the rest on demand.
- Log tool calls as JSONL
- Record each tool call's name, arguments, and error as one JSONL line.
- Expose a get_recent_calls-style tool to the model.
- Let it check the cause itself when a call fails.
- Switch file-editing tools to atomic writes
- If an LLM tool edits files, write to a temp file, fsync, then rename.
- Add round-trip tests before and after edits to catch corruption.
- Keep a human review step for weak stages such as routing.
Try It
# Paste into Claude Code or Claude Desktop: simplified version of Konnect's toolset split
I'm building an MCP server. The tool list below is fully exposed now and uses a lot of context.
{{tool names and descriptions}}
Redesign it as follows.
1. Group the tools into 5-8 toolsets by purpose and name them.
2. Pick a minimal starter kit (10 tools or fewer) to expose at startup.
3. Write JSON-schema specs for load_toolset(name) and list_toolsets().
4. Also write the input/output schema for a get_recent_calls tool for failure diagnosis.
Next to try: compare the token count of the tool list before and after the redesign.Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques