Files
Akhil Velagapudi ef4f3693c5 Add pcb mcp (#240)
* Add mcp support for search_component, add_component

* Add get_zener_docs, fix add_component

* Update help snapshot
2025-10-21 13:33:10 -04:00
..
2025-10-21 13:33:10 -04:00
2025-10-21 13:33:10 -04:00
2025-10-21 13:33:10 -04:00

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 handshake
  • ping - Health check
  • logging/setLevel - Set log level
  • tools/list - List available tools (with output schemas)
  • tools/call - Execute a tool
  • Notifications (cancelled, etc.) - handled silently