mirror of
https://github.com/diodeinc/pcb.git
synced 2026-09-14 20:17:19 +08:00
ef4f3693c5
* Add mcp support for search_component, add_component * Add get_zener_docs, fix add_component * Update help snapshot
pcb-mcp
Simple Model Context Protocol (MCP) server for PCB tools.
Testing
# Ping
echo '{"jsonrpc":"2.0","id":1,"method":"ping"}' | pcb mcp | jq
# List tools
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | pcb mcp | jq
# Search components
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_component","arguments":{"part_number":"STM32"}}}' | pcb mcp | jq '.result.structuredContent.results[]'
# Add component (use component_id from search)
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"add_component","arguments":{"component_id":"<id>"}}}' | pcb mcp | jq
Supported Methods
initialize- Server handshakeping- Health checklogging/setLevel- Set log leveltools/list- List available tools (with output schemas)tools/call- Execute a tool- Notifications (cancelled, etc.) - handled silently