We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mixelpixx/KiCAD-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
export.cpython-311.pyc•21.5 KiB
�
�Mh�I � � � d Z ddlZddlZddlZddlmZmZmZmZm Z ddl
Z
ej d� � Z G d� d� � Z
dS )z4
Export command implementations for KiCAD interface
� N)�Dict�Any�Optional�List�Tuple�kicad_interfacec �� � e Zd ZdZddeej fd�Zdee e
f dee e
f fd�Zdee e
f dee e
f fd�Zdee e
f dee e
f fd �Z
dee e
f dee e
f fd
�Zdee e
f dee e
f fd�Zde d
eee e
f ddfd�Zde d
eee e
f ddfd�Zde d
eee e
f ddfd�Zde d
eee e
f ddfd�ZdS )�ExportCommandsz'Handles export-related KiCAD operationsN�boardc � � || _ dS )z'Initialize with optional board instanceN)r )�selfr s �+C:\repo\KiCAD-MCP\python\commands\export.py�__init__zExportCommands.__init__ s
� ���
�
�
� �params�returnc �P � | j sdddd�S |� d� � }|� dg � � }|� dd� � }|� dd � � }|� d
d� � }|� dd� � }|sddd
d�S t j � t j � |� � � � }t j |d �� � t j | j � � }|� � � } | �
|� � | � t j � � | �
|� � | � |� � | � |� � | � d � � g }
|rP|D ]L}| j � |� � }|dk r*|� |� � |
� |� � �Mnzt) t j � � D ]`}| j � |� � rD| j � |� � }|� |� � |
� |� � �ag }
|r�t j | j � � }|� d � � |� t j � � d}|� |� � |� |d |� � t j |� � D ]A}|� d� � s|� d� � r|
� |� � �Bd d|
|
|rdgng d�|d�S # t<