Clean up codebase: consolidate servers, remove dev/test files, add project standards#17
Merged
Merged
Conversation
Co-authored-by: jango-blockchained <16127070+jango-blockchained@users.noreply.github.com>
Co-authored-by: jango-blockchained <16127070+jango-blockchained@users.noreply.github.com>
Co-authored-by: jango-blockchained <16127070+jango-blockchained@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Clean up codebase and streamline file structure
Clean up codebase: consolidate servers, remove dev/test files, add project standards
Nov 6, 2025
There was a problem hiding this comment.
Pull Request Overview
This PR represents a major cleanup and consolidation of the MCP-FreeCAD project, removing numerous test and validation scripts while introducing a unified server architecture and bumping to version 1.0.0.
Key Changes:
- Consolidated server architecture with new
mcp_server.pysupporting both FastMCP and standard modes - Removed 50+ test/validation/diagnostic scripts that were likely temporary development utilities
- Version bump from 0.7.11 to 1.0.0 indicating a major release
- Code formatting improvements across bridge and connection modules
- Simplified test structure with streamlined test_fastmcp_server.py
- Added CLI entry points in pyproject.toml
Reviewed Changes
Copilot reviewed 96 out of 97 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| mcp_server.py | New unified server supporting both FastMCP and standard MCP modes with CLI arguments |
| src/mcp_freecad/init.py | Version bump to 1.0.0, marking a major release |
| pyproject.toml | Added project.scripts for mcp-freecad and mcp-freecad-server CLI commands |
| tests/test_fastmcp_server.py | Drastically simplified from 271 to 61 lines, focusing on basic functionality |
| src/mcp_freecad/server/*.py | Code formatting improvements (string quotes, line spacing) |
| src/mcp_freecad/connections/*.py | Code formatting improvements for consistency |
| src/mcp_freecad/client/*.py | Code formatting improvements |
| verify_freecad_ai_fixes.py | Removed 103-line verification script |
| validate_all_fixes.py | Removed 258-line validation script |
| test_*.py (multiple) | Removed various test scripts (40+ files) |
| scripts/* | Removed numerous diagnostic and validation scripts |
| run_tests.py | Removed 120-line test runner |
| example_fastmcp_usage.py | Removed 171-line example script |
| cursor_mcp_server_old.py | Removed 199-line legacy server |
| freecad_ai_diagnostic_*.txt | Removed diagnostic report files |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Description
Repository contained scattered test files, multiple MCP server implementations, and missing project standards. Consolidated into production-ready structure with unified server, proper documentation, and CI/CD automation.
Key Changes:
mcp_server.py) with CLI args for FastMCP/standard modes, replacingcursor_mcp_server.pyandcursor_mcp_server_old.pyServer Usage:
Net: 97 files changed, 1,016 insertions(+), 12,186 deletions(-)
Type of Change
Related Issue
Addresses cleanup requirements for release readiness.
How Has This Been Tested?
Checklist
Screenshots (if applicable)
N/A - CLI and infrastructure changes only.
Additional Notes
Migration Guide:
cursor_mcp_server.pyimports withmcp_server.py--mode fastmcpflag for previous cursor_mcp_server behaviortests/directoryscripts/for utilitiesOriginal prompt
Created from VS Code via the GitHub Pull Request extension.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.