Autonomous 0-DRC PCB Routing Foundry & Hardware MCP Server
v1.3.0Autonomous 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'.
| Parameter | Type | Description |
|---|---|---|
pcb_text | string | Raw UTF-8 KiCad .kicad_pcb S-expression text for remote calls. |
project_path | string | Local 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'.
| Parameter | Type | Description |
|---|---|---|
dsn_text | string | Raw UTF-8 Specctra .dsn S-expression text from ECAD export. |
project_path | string | Local 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.
| Parameter | Type | Description |
|---|---|---|
copper_weight_oz | number | Finished copper weight in oz/ft^2 (1.0 oz = 35 um). |
current_amps | number | Target continuous DC current in Amperes for IPC-2152 sizing. |
dielectric_height_mm | number | Dielectric height H in millimeters to nearest reference plane. |
er | number | Substrate relative dielectric constant Er / Dk (>= 1.0). |
max_temp_rise_c | number | Maximum allowed conductor temperature rise in degrees Celsius (IPC-2152). |
mode | string | Transmission line geometry: outer microstrip or inner stripline. |
trace_spacing_mm | number | Edge-to-edge differential pair spacing S in millimeters (>= 0.02). |
trace_width_mm | number | Copper 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'.
| Parameter | Type | Description |
|---|---|---|
fab_tier | string | Target fabrication rule tier (standard_2l, standard_4l, or fine_hdi). |
pcb_text | string | Raw UTF-8 .kicad_pcb or .dsn text with routed copper. |
project_path | string | Local 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.
| Parameter | Type | Description |
|---|---|---|
outer_copper_um | number | Finished outer copper thickness in micrometers (35.0 = 1 oz). |
pcb_text | string | Optional raw UTF-8 .kicad_pcb text for board context audit. |
prepreg_er | number | Relative permittivity Er of the top prepreg dielectric (>= 1.5). |
project_path | string | Optional local filesystem path to .kicad_pcb file (STDIO mode). |
top_prepreg_h1_mm | number | Top prepreg height H1 between F.Cu and In1.Cu (mm). |
transmission_line_mode | string | RF line mode: isolated_microstrip (3*H1 pullback) or cpwg waveguide. |
vippo_mode | string | Via-in-Pad policy: standard SMT disallow_via_in_paste or IPC-4761 allow_vippo_type_vii. |
calligraphy_list_gallery_boards List Verified 0-DRC Benchmark Gallery Boards
List verified 100%-routed, 0-DRC open-source benchmark PCBs, live Phase-1 commercial pricing tiers, and built-in demo board IDs ('2l_rp2040', '2l_stickhub', '4l_carrier'). Call for instant zero-upload evaluation or to inspect verified multi-layer proofs. Takes empty object {}; returns JSON corpus summary and sample_board_ids for calligraphy_preflight_audit. Example: {}.
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'.
| Parameter | Type | Description |
|---|---|---|
customer_email | string | Engineer contact email for ECO license matching and compliance. |
filename | string | Original CAD filename with extension used to select parser. |
include_eco_pass | boolean | Add optional +50% 30-Day Unlimited ECO Re-Spin License surcharge. |
pcb_text | string | Raw UTF-8 CAD source text (.kicad_pcb, .dsn, .ato, .tsx). |
preserve_existing_copper | boolean | Lock existing routed copper for surgical Rev-B ECO partial reroutes. |
project_path | string | Local workstation path to CAD file (STDIO) or sample_id. |
requested_sku | string | Target service tier SKU (vibe_micro, basic_2l, route_3d, turnkey_full). |
rush_delivery | boolean | Add optional +35% Priority Enclave Rush turnaround queue surcharge. |
sample_id | string | Built-in demo board ID ('2l_rp2040', '2l_stickhub', or '4l_carrier'). |
target_nets | array | Optional list of specific net names for Rev-B ECO reroutes. |
upload_b64 | string | Base64-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'.
| Parameter | Type | Description |
|---|---|---|
customer_email | string | Customer engineering email for receipts, ECO licenses, and invoicing. |
export_control_certified | boolean | Certify EAR99 commercial export compliance and non-sanctioned jurisdiction status. |
filename | string | Uploaded CAD filename with extension to select the parser. |
include_eco_pass | boolean | Enable +50% 30-Day Unlimited ECO Re-Spin License on 2L tiers. |
no_itar_certified | boolean | Certify uploaded PCB design contains no ITAR-controlled defense articles. |
pcb_text | string | Raw UTF-8 CAD source text (.kicad_pcb, .dsn, .ato, .tsx). |
preserve_existing_copper | boolean | Lock existing routed copper for surgical Rev-B ECO partial reroutes. |
project_path | string | Local filesystem path to CAD file (STDIO) or sample_id. |
promo_code | string | Optional grant or promo code ('OPENHW', 'PROTOTYPE1', 'FOUNDER100', 'XBUILDER'). |
requested_sku | string | Target synthesis tier SKU (vibe_micro, basic_2l, route_3d, turnkey_full). |
retention_policy | string | Enclave vault retention policy: auto_purge_on_download or expire_24h TTL. |
rush_delivery | boolean | Enable +35% Priority Enclave Rush synthesis queue turnaround. |
sample_id | string | Built-in demo board ID ('2l_rp2040', '2l_stickhub', or '4l_carrier'). |
showcase_opt_in | boolean | Opt in to anonymized raster showcase gallery (optional for cohort). |
social_or_repo_url | string | Public HTTPS GitHub or social URL for OPENHW grant verification. |
target_nets | array | Optional list of specific net names for Rev-B ECO reroutes. |
tos_accepted | boolean | Accept Calligraphy Systems Terms of Service and liability cap. |
upload_b64 | string | Base64-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'.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | Target compilation job identifier string returned by calligraphy_compile_board. |
promo_code * | string | Case-insensitive promo or grant code (OPENHW, PROTOTYPE1, FOUNDER100, XBUILDER). |
customer_email | string | Engineering email address associated with the job or invite. |
showcase_opt_in | boolean | Allow anonymized raster showcase preview for community gallery. |
social_or_repo_url | string | Public 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'.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | Unique 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'.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | Target compilation job identifier awaiting on-chain payment unlock. |
tx_hash * | string | 0x-prefixed 66-character hexadecimal EVM transaction hash of ERC-20 transfer. |
network | string | EVM settlement network: base, arbitrum, polygon, or ethereum. |
token | string | ERC-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.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | Unlocked compilation job identifier to retrieve fabrication outputs for. |
include_bundle_b64 | boolean | Inline Base64 .zip archive bytes and trigger immediate auto-purge. |
output_dir | string | Optional 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'.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | Target compilation job identifier for B2B invoice lookup. |
company_name | string | Optional legal entity or corporate buyer name for invoice. |
customer_email | string | Billing or engineering email address associated with the order. |
po_number | string | Optional 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'.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | Compiled 0-DRC job identifier requiring Coinbase checkout session. |
currency | string | Settlement stablecoin currency symbol ('USDC' or 'USDT') for checkout. |
network | string | Target 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'.
| Parameter | Type | Description |
|---|---|---|
customer_email | string | Engineering contact email for job receipt and license attribution. |
filename | string | CAD filename with extension used to select the parser. |
pcb_text | string | Raw UTF-8 .kicad_pcb or Specctra .dsn CAD text. |
preserve_existing_copper | boolean | Lock existing routed copper for surgical Rev-B ECO partial reroutes. |
project_path | string | Local workstation path to CAD file (STDIO) or sample_id. |
requested_sku | string | Target routing tier SKU (vibe_micro, basic_2l, route_3d, turnkey_full). |
sample_id | string | Built-in demo board ID ('2l_rp2040', '2l_stickhub', or '4l_carrier'). |
target_nets | array | Optional list of specific net names for Rev-B ECO reroutes. |
upload_b64 | string | Base64-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'.
| Parameter | Type | Description |
|---|---|---|
customer_email * | string | Corporate work email address of engineering lead requesting quota. |
organization_name * | string | Legal organization or hardware team name behind shared IP. |
reason * | string | Brief engineering justification for higher daily compilation quota limit. |
client_ip | string | IPv4 or IPv6 address to whitelist (auto-resolved over HTTP). |
requested_daily_limit | integer | Requested 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'.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | Target 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'.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | Compilation job identifier being unlocked by Base USDC transfer. |
tx_hash * | string | 0x-prefixed 66-character Base Mainnet (8453) USDC ERC-20 transfer tx_hash. |