Skip to content

Commit fb4e9ec

Browse files
authored
Merge pull request #17 from mannie-exe/publish-pip
fix: migrate to uv; pydantic schema error
2 parents d866184 + 639b54d commit fb4e9ec

File tree

4 files changed

+955
-21
lines changed

4 files changed

+955
-21
lines changed

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.10

kicad_mcp/tools/export_tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def register_export_tools(mcp: FastMCP) -> None:
2020
"""
2121

2222
@mcp.tool()
23-
async def generate_pcb_thumbnail(project_path: str, ctx: Context) -> Optional[Image]:
23+
async def generate_pcb_thumbnail(project_path: str, ctx: Context):
2424
"""Generate a thumbnail image of a KiCad PCB layout using kicad-cli.
2525
2626
Args:
@@ -88,14 +88,14 @@ async def generate_pcb_thumbnail(project_path: str, ctx: Context) -> Optional[Im
8888
return None
8989

9090
@mcp.tool()
91-
async def generate_project_thumbnail(project_path: str, ctx: Context) -> Optional[Image]:
91+
async def generate_project_thumbnail(project_path: str, ctx: Context):
9292
"""Generate a thumbnail of a KiCad project's PCB layout (Alias for generate_pcb_thumbnail)."""
9393
# This function now just calls the main CLI-based thumbnail generator
9494
print(f"generate_project_thumbnail called, redirecting to generate_pcb_thumbnail for {project_path}")
9595
return await generate_pcb_thumbnail(project_path, ctx)
9696

9797
# Helper functions for thumbnail generation
98-
async def generate_thumbnail_with_cli(pcb_file: str, ctx: Context) -> Optional[Image]:
98+
async def generate_thumbnail_with_cli(pcb_file: str, ctx: Context):
9999
"""Generate PCB thumbnail using command line tools.
100100
This is a fallback method when the kicad Python module is not available or fails.
101101

pyproject.toml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,23 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "kicad-mcp"
77
version = "0.1.0"
8-
authors = [
9-
{ name="Lama Al Rajih", email="[email protected]" },
10-
]
8+
authors = [{ name = "Lama Al Rajih", email = "[email protected]" }]
119
description = "Model Context Protocol server for KiCad on Mac, Windows, and Linux"
1210
readme = "README.md"
1311
requires-python = ">=3.10"
1412
classifiers = [
15-
"Programming Language :: Python :: 3",
16-
"Programming Language :: Python :: 3.10",
17-
"Programming Language :: Python :: 3.11",
18-
"Programming Language :: Python :: 3.12",
19-
"License :: OSI Approved :: MIT License",
20-
"Operating System :: OS Independent",
21-
"Development Status :: 4 - Beta",
22-
"Intended Audience :: Developers",
23-
"Topic :: Software Development :: Libraries :: Python Modules",
24-
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
25-
]
26-
dependencies = [
27-
"mcp[cli]",
28-
"pandas",
13+
"Programming Language :: Python :: 3",
14+
"Programming Language :: Python :: 3.10",
15+
"Programming Language :: Python :: 3.11",
16+
"Programming Language :: Python :: 3.12",
17+
"License :: OSI Approved :: MIT License",
18+
"Operating System :: OS Independent",
19+
"Development Status :: 4 - Beta",
20+
"Intended Audience :: Developers",
21+
"Topic :: Software Development :: Libraries :: Python Modules",
22+
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
2923
]
30-
keywords = ["kicad", "mcp", "model-context-protocol", "eda", "pcb"]
24+
dependencies = ["mcp[cli]>=1.11.0", "pandas>=2.3.1", "pytest>=8.4.1"]
3125

3226
[project.urls]
3327
"Homepage" = "https://github.com/lamaalrajih/kicad-mcp"

0 commit comments

Comments
 (0)