Autonomous 0-DRC PCB Routing Foundry & Hardware MCP Server

v1.3.0
io.github.calligraphysystems/vibe-hardware-mcp Checked 1 day ago Published 22 days ago

Autonomous 0-DRC PCB Routing, RF/DFM Pre-Flight & KiCad MCP Server (calligraphyeda.com).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

analyze_kicad_pcb Analyze KiCad PCB Layout

Parse a KiCad .kicad_pcb layout to extract copper layers, board outline, SMD/THT pads, routed segments, arcs, and vias. Call first before DFM audits or cloud routing. Accepts raw pcb_text or local project_path; falls back to built-in 2l_rp2040 if omitted. Returns JSON layer, pad, and track counts. Example: project_path='board.kicad_pcb'.

ParameterTypeDescription
pcb_textstringRaw UTF-8 KiCad .kicad_pcb S-expression text for remote calls.
project_pathstringLocal filesystem path to a .kicad_pcb file (STDIO mode).

analyze_specctra_dsn Analyze Specctra DSN Autorouter File

Parse a Specctra .dsn autorouter file from KiCad, Altium, Allegro, or EasyEDA to extract resolution units, copper layers, and netlist pin counts. Call during pre-flight inspection for .dsn exports instead of native .kicad_pcb files. Accepts dsn_text or project_path; returns JSON unit, resolution, layer_count, and net_count. Example: project_path='design.dsn'.

ParameterTypeDescription
dsn_textstringRaw UTF-8 Specctra .dsn S-expression text from ECAD export.
project_pathstringLocal filesystem path to a Specctra .dsn file (STDIO).

calculate_pcb_trace_impedance Calculate PCB Trace Impedance & IPC-2152 Current

Compute single-ended Z0 (Ohms), differential Zdiff (Ohms), copper thickness (mm), and IPC-2152 current sizing for outer microstrip or inner stripline traces. Call during stackup planning for USB, PCIe, Ethernet, or RF nets. Inputs use mm, oz, and Er; returns JSON impedance metrics. Example: mode='microstrip', trace_width_mm=0.25, dielectric_height_mm=0.19.

ParameterTypeDescription
copper_weight_oznumberFinished copper weight in oz/ft^2 (1.0 oz = 35 um).
current_ampsnumberTarget continuous DC current in Amperes for IPC-2152 sizing.
dielectric_height_mmnumberDielectric height H in millimeters to nearest reference plane.
ernumberSubstrate relative dielectric constant Er / Dk (>= 1.0).
max_temp_rise_cnumberMaximum allowed conductor temperature rise in degrees Celsius (IPC-2152).
modestringTransmission line geometry: outer microstrip or inner stripline.
trace_spacing_mmnumberEdge-to-edge differential pair spacing S in millimeters (>= 0.02).
trace_width_mmnumberCopper trace width W in millimeters (>= 0.02 mm).

audit_pcb_dfm_rules Audit PCB DFM Fabrication Rules

Audit routed traces and arcs in a .kicad_pcb or .dsn board against commercial fab minimum trace width limits (JLCPCB, PCBWay, Sierra). Call before Gerber export or after manual edits. Accepts pcb_text or project_path plus fab_tier ('standard_2l', 'standard_4l', 'fine_hdi'). Returns JSON dfm_passed and min_observed_trace_width_mm. Example: fab_tier='standard_4l'.

ParameterTypeDescription
fab_tierstringTarget fabrication rule tier (standard_2l, standard_4l, or fine_hdi).
pcb_textstringRaw UTF-8 .kicad_pcb or .dsn text with routed copper.
project_pathstringLocal filesystem path to .kicad_pcb or .dsn (STDIO mode).

audit_pre_route_rf_and_fab_stackup Audit Pre-Route Vendor Stackup, 50-Ohm RF & VIPPO Rules

Validate multi-layer vendor stackup before routing to compute exact 50-Ohm RF width (mm), 3*H1 top ground-pour pullback (mm), reference-plane corridor half-width, and VIPPO policy. Call before routing BLE, Wi-Fi, LoRa, cellular, or GNSS boards. Accepts H1 (mm), Er, and outer copper (um); returns JSON RF constraints. Example: top_prepreg_h1_mm=0.19, prepreg_er=4.29.

ParameterTypeDescription
outer_copper_umnumberFinished outer copper thickness in micrometers (35.0 = 1 oz).
pcb_textstringOptional raw UTF-8 .kicad_pcb text for board context audit.
prepreg_ernumberRelative permittivity Er of the top prepreg dielectric (>= 1.5).
project_pathstringOptional local filesystem path to .kicad_pcb file (STDIO mode).
top_prepreg_h1_mmnumberTop prepreg height H1 between F.Cu and In1.Cu (mm).
transmission_line_modestringRF line mode: isolated_microstrip (3*H1 pullback) or cpwg waveguide.
vippo_modestringVia-in-Pad policy: standard SMT disallow_via_in_paste or IPC-4761 allow_vippo_type_vii.

calligraphy_preflight_audit Run Pre-Flight CAD Doctor & Instant Tier Quote

Run a free $0 read-only Pre-Flight CAD Doctor audit on a PCB (.kicad_pcb, .dsn, .ato, .tsx, or sample_id) and return a binding NRE quote without launching a billable job. Call before calligraphy_compile_board to verify outline, overlaps, and effective SKU pricing. Returns JSON effective_sku, final_price_usd, and pad counts. Example: sample_id='2l_rp2040', requested_sku='vibe_micro'.

ParameterTypeDescription
customer_emailstringEngineer contact email for ECO license matching and compliance.
filenamestringOriginal CAD filename with extension used to select parser.
include_eco_passbooleanAdd optional +50% 30-Day Unlimited ECO Re-Spin License surcharge.
pcb_textstringRaw UTF-8 CAD source text (.kicad_pcb, .dsn, .ato, .tsx).
preserve_existing_copperbooleanLock existing routed copper for surgical Rev-B ECO partial reroutes.
project_pathstringLocal workstation path to CAD file (STDIO) or sample_id.
requested_skustringTarget service tier SKU (vibe_micro, basic_2l, route_3d, turnkey_full).
rush_deliverybooleanAdd optional +35% Priority Enclave Rush turnaround queue surcharge.
sample_idstringBuilt-in demo board ID ('2l_rp2040', '2l_stickhub', or '4l_carrier').
target_netsarrayOptional list of specific net names for Rev-B ECO reroutes.
upload_b64stringBase64-encoded binary CAD file or multi-file .zip project archive.

calligraphy_compile_board Compile & Route PCB in Cloud Enclave

Primary full-featured synthesis tool: compile and route a PCB (.kicad_pcb, .dsn, .ato, .tsx, or sample_id) to 100% completion and 0 native KiCad DRC errors, supporting ECO passes, rush delivery, and inline promo/grant codes. Call after calligraphy_preflight_audit. Returns JSON job_id, status, pricing, and Stripe/USDC payment links. Example: sample_id='2l_rp2040', requested_sku='vibe_micro'.

ParameterTypeDescription
customer_emailstringCustomer engineering email for receipts, ECO licenses, and invoicing.
export_control_certifiedbooleanCertify EAR99 commercial export compliance and non-sanctioned jurisdiction status.
filenamestringUploaded CAD filename with extension to select the parser.
include_eco_passbooleanEnable +50% 30-Day Unlimited ECO Re-Spin License on 2L tiers.
no_itar_certifiedbooleanCertify uploaded PCB design contains no ITAR-controlled defense articles.
pcb_textstringRaw UTF-8 CAD source text (.kicad_pcb, .dsn, .ato, .tsx).
preserve_existing_copperbooleanLock existing routed copper for surgical Rev-B ECO partial reroutes.
project_pathstringLocal filesystem path to CAD file (STDIO) or sample_id.
promo_codestringOptional grant or promo code ('OPENHW', 'PROTOTYPE1', 'FOUNDER100', 'XBUILDER').
requested_skustringTarget synthesis tier SKU (vibe_micro, basic_2l, route_3d, turnkey_full).
retention_policystringEnclave vault retention policy: auto_purge_on_download or expire_24h TTL.
rush_deliverybooleanEnable +35% Priority Enclave Rush synthesis queue turnaround.
sample_idstringBuilt-in demo board ID ('2l_rp2040', '2l_stickhub', or '4l_carrier').
showcase_opt_inbooleanOpt in to anonymized raster showcase gallery (optional for cohort).
social_or_repo_urlstringPublic HTTPS GitHub or social URL for OPENHW grant verification.
target_netsarrayOptional list of specific net names for Rev-B ECO reroutes.
tos_acceptedbooleanAccept Calligraphy Systems Terms of Service and liability cap.
upload_b64stringBase64-encoded binary CAD file or .zip project bundle.

calligraphy_apply_promo Apply Promo, Open-Hardware Grant, or VIP Beta Pass to Job

Apply a promo or grant code ('OPENHW' $0 open-hardware grant, 'PROTOTYPE1' $1 pass, 'FOUNDER100' -$100 credit, or 'XBUILDER' $0 VIP pass) to an unpaid compiled job_id. Call after calligraphy_compile_board when redeeming a code. Requires job_id and promo_code; returns JSON unlocked status and updated final_price_usd. Example: job_id='job_01', promo_code='OPENHW'.

ParameterTypeDescription
job_id *stringTarget compilation job identifier string returned by calligraphy_compile_board.
promo_code *stringCase-insensitive promo or grant code (OPENHW, PROTOTYPE1, FOUNDER100, XBUILDER).
customer_emailstringEngineering email address associated with the job or invite.
showcase_opt_inbooleanAllow anonymized raster showcase preview for community gallery.
social_or_repo_urlstringPublic HTTPS GitHub or social URL verifying OPENHW project status.

calligraphy_get_job_status Get PCB Synthesis Job Status

Query live physical synthesis progress, geometric DRC completion telemetry, unlock state, and payment instructions for an existing job_id. Call this read-only polling tool after calligraphy_compile_board or human checkout to verify unlocked is true. Requires job_id; returns JSON status, unconnected_count, drc_errors, and payment instructions. Example: job_id='job_a1b2c3d4'.

ParameterTypeDescription
job_id *stringUnique synthesis job identifier from calligraphy_compile_board or calligraphy_route_pcb.

calligraphy_verify_stablecoin_payment Verify On-Chain Stablecoin Payment

Verify a multi-chain ERC-20 USDT or USDC transfer (Base, Arbitrum, Polygon, or Ethereum) sent to a job's BIP-44 watch-only deposit_address and unlock the bundle. Use for multi-chain or USDT payments (use calligraphy_verify_crypto_payment for x402 Base USDC treasury transfers). Requires job_id and tx_hash; returns JSON unlocked=True. Example: job_id='job_01', token='USDC', network='base'.

ParameterTypeDescription
job_id *stringTarget compilation job identifier awaiting on-chain payment unlock.
tx_hash *string0x-prefixed 66-character hexadecimal EVM transaction hash of ERC-20 transfer.
networkstringEVM settlement network: base, arbitrum, polygon, or ethereum.
tokenstringERC-20 stablecoin symbol transferred ('USDC' or 'USDT', 6 decimals).

calligraphy_download_fab_bundle Download Unlocked Turnkey Fabrication Bundle

Retrieve the unlocked routed .kicad_pcb layout and turnkey manufacturing .zip bundle (Gerber X2, Excellon drills, IPC-D-356A netlist, BOM/CPL, and 3D IR-drop report) for a paid job_id. Call after payment confirmation via Stripe or on-chain verification. Requires job_id; returns JSON download_zip_url and deletion_receipt_sha256. Example: job_id='job_01', include_bundle_b64=False.

ParameterTypeDescription
job_id *stringUnlocked compilation job identifier to retrieve fabrication outputs for.
include_bundle_b64booleanInline Base64 .zip archive bytes and trigger immediate auto-purge.
output_dirstringOptional local filesystem directory to write outputs (STDIO mode).

calligraphy_lookup_b2b_invoice Look Up B2B Tax Invoice & Custody Certificate

Generate a formal B2B tax invoice (with buyer PO and company metadata) plus the SHA-256 Chain-of-Custody & Zero-Retention Certificate for a job_id. Call for corporate accounting, P-card expensing, or compliance auditing after job creation or payment. Requires job_id; returns JSON invoice_number, line_items, and chain_of_custody_sha256. Example: job_id='job_01', po_number='PO-104'.

ParameterTypeDescription
job_id *stringTarget compilation job identifier for B2B invoice lookup.
company_namestringOptional legal entity or corporate buyer name for invoice.
customer_emailstringBilling or engineering email address associated with the order.
po_numberstringOptional corporate Purchase Order number for invoice header.

calligraphy_create_coinbase_checkout Create Coinbase Base L2 USDC Checkout Session

Create a hosted Coinbase Onchain Payment & x402 browser/QR checkout session settling in USDC or USDT on Base L2 or Ethereum for a human operator. Use for clickable hosted Coinbase Pay URLs (use calligraphy_get_crypto_payment_intent for headless agent transfers). Requires job_id; returns JSON coinbase_checkout_url and deposit_address. Example: job_id='job_01', currency='USDC'.

ParameterTypeDescription
job_id *stringCompiled 0-DRC job identifier requiring Coinbase checkout session.
currencystringSettlement stablecoin currency symbol ('USDC' or 'USDT') for checkout.
networkstringTarget blockchain network: 'base' (L2 8453) or 'ethereum' (1).

calligraphy_route_pcb Synthesize & Route Multi-Layer PCB

Streamlined 1-step Specctra .dsn and .kicad_pcb autorouting entry point using standard enclave defaults to achieve 100% completion and 0 KiCad DRC errors, with optional Rev-B ECO partial rerouting. Use calligraphy_compile_board when you need promo codes or rush options. Accepts sample_id, pcb_text, or upload_b64; returns JSON job_id and pricing. Example: sample_id='2l_rp2040'.

ParameterTypeDescription
customer_emailstringEngineering contact email for job receipt and license attribution.
filenamestringCAD filename with extension used to select the parser.
pcb_textstringRaw UTF-8 .kicad_pcb or Specctra .dsn CAD text.
preserve_existing_copperbooleanLock existing routed copper for surgical Rev-B ECO partial reroutes.
project_pathstringLocal workstation path to CAD file (STDIO) or sample_id.
requested_skustringTarget routing tier SKU (vibe_micro, basic_2l, route_3d, turnkey_full).
sample_idstringBuilt-in demo board ID ('2l_rp2040', '2l_stickhub', or '4l_carrier').
target_netsarrayOptional list of specific net names for Rev-B ECO reroutes.
upload_b64stringBase64-encoded binary payload of .kicad_pcb, .dsn, or .zip.

calligraphy_request_ip_whitelist Request Enterprise IP Whitelist Quota

Submit an enterprise IP whitelist request to raise the daily unpaid compilation quota from 3 jobs/24h up to 25-100 jobs/day for a shared corporate NAT or CI/CD runner IP. Call when calligraphy_compile_board returns HTTP 429 rate-limit errors. Requires customer_email, organization_name, and reason; returns JSON request_id and status. Example: organization_name='Apex Robotics'.

ParameterTypeDescription
customer_email *stringCorporate work email address of engineering lead requesting quota.
organization_name *stringLegal organization or hardware team name behind shared IP.
reason *stringBrief engineering justification for higher daily compilation quota limit.
client_ipstringIPv4 or IPv6 address to whitelist (auto-resolved over HTTP).
requested_daily_limitintegerRequested maximum daily compilations per 24h window (10 to 100).

calligraphy_get_crypto_payment_intent Get Agentic Base USDC Payment Intent (HTTP 402 / x402)

Retrieve the machine-readable HTTP 402 / x402 Base Mainnet (Chain ID 8453) USDC payment intent for an unpaid job_id so an autonomous wallet (AgentKit, OpenClaw, EVM signer) can settle on-chain without a browser. Call after calligraphy_compile_board for Base USDC treasury settlement. Requires job_id; returns JSON recipient_wallet and erc681_uri. Example: job_id='job_01'.

ParameterTypeDescription
job_id *stringTarget compilation job identifier requiring Base USDC x402 settlement.

calligraphy_verify_crypto_payment Verify Agentic Base USDC On-Chain Payment & Unlock Bundle

Verify an autonomous x402 Base Mainnet (Chain ID 8453) USDC ERC-20 transfer tx_hash to the Calligraphy Treasury Wallet with strict anti-replay protection and immediately unlock bundle downloads. Use after calligraphy_get_crypto_payment_intent (use calligraphy_verify_stablecoin_payment for multi-chain or USDT). Requires job_id and tx_hash; returns JSON unlocked=True. Example: job_id='job_01'.

ParameterTypeDescription
job_id *stringCompilation job identifier being unlocked by Base USDC transfer.
tx_hash *string0x-prefixed 66-character Base Mainnet (8453) USDC ERC-20 transfer tx_hash.