4ae38fed59
Rebuild on FastMCP 3 with src-layout and kicad-sch-api integration
...
Migrate from FastMCP 2.14.5 to 3.1.0 with complete architectural
overhaul. Adopt src-layout packaging, lazy config functions to
eliminate .env race condition, and decorator-based tool registration.
Consolidate 14 tool modules into 8 focused modules (33 tools total).
Add 9 new schematic tools via kicad-sch-api for creating and
manipulating .kicad_sch files. Drop pandas dependency (BOM uses
stdlib csv). Remove ~17k lines of stubs, over-engineering, and
dead code.
All checks pass: ruff clean, mypy 0 errors, 17/17 tests green.
2026-03-03 18:26:54 -07:00
4ebf8f08e9
Fix .env loading order so KICAD_SEARCH_PATHS takes effect
...
config.py evaluates os.environ at import time, but mckicad/__init__.py
eagerly imports config via 'from .config import *'. The old main.py
loaded .env after importing from mckicad, so the search paths were
always empty. Now .env is parsed with stdlib before any mckicad imports.
Also fix start.sh to use 'uv run' instead of stale venv/ path.
2026-03-03 16:53:40 -07:00
995dfd57c1
Add comprehensive advanced KiCad features and fix MCP compatibility issues
...
- Implement 3D model analysis and mechanical constraints checking
- Add advanced DRC rule customization for HDI, RF, and automotive applications
- Create symbol library management with analysis and validation tools
- Implement PCB layer stack-up analysis with impedance calculations
- Fix Context parameter validation errors causing client failures
- Add enhanced tool annotations with examples for better LLM compatibility
- Include comprehensive test coverage improvements (22.21% coverage)
- Add CLAUDE.md documentation for development guidance
New Advanced Tools:
• 3D model analysis: analyze_3d_models, check_mechanical_constraints
• Advanced DRC: create_drc_rule_set, analyze_pcb_drc_violations
• Symbol management: analyze_symbol_library, validate_symbol_library
• Layer analysis: analyze_pcb_stackup, calculate_trace_impedance
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-11 15:57:46 -06:00