-
Notifications
You must be signed in to change notification settings - Fork 54
Upgrade codegen MCP server - remove codemods, add docs #1162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Remove all codemod-related functionality and legacy imports - Remove ask_codegen_sdk, generate_codemod, and improve_codemod tools - Delete system_prompt.py and system_setup_instructions.py resources - Update server description to focus on API integration - Add port information display when server starts - Add comprehensive MCP documentation in docs/integrations/mcp.mdx - Update docs.json to include MCP in integrations section - Clean up ruff.toml configuration The MCP server now focuses on Codegen platform API integration rather than codemod generation, providing a cleaner interface for AI agents to interact with Codegen services.
I see a check failed - I'm on it! 🫡 |
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found. 🚀 New features to boost your workflow:
|
I see a check failed - I'm on it! 🫡 |
- Remove unused pytest import - Fix f-string formatting for better readability - Clean up empty __init__.py files - Fix end-of-file formatting
- Fix type annotations to use X | Y syntax instead of Optional[X] - Fix f-string usage in exception messages - Fix datetime.min timezone issue by using datetime.UTC
✅ Fixed the failing pre-commit checks in commit 019822b. The issues were ruff linting errors:
The pre-commit checks should now pass! 🎉 💻 View my work • React 👍 or 👎 |
The mcp[cli] package was listed as a dependency but not actually used in the codebase. The current MCP implementation uses fastmcp directly. This fixes the deptry dependency check failure.
✅ Fixed the failing check suite for PR #1162! Issues Resolved: 🔧 Pre-commit failures - Fixed multiple linting and formatting issues:
🗑️ Dependency cleanup - Removed unused
Commits pushed: All pre-commit checks should now pass! 🎉 💻 View my work • React 👍 or 👎 |
This PR upgrades the
codegen mcp
command as requested in CG-18866:Changes Made
🧹 Cleanup
ask_codegen_sdk
toolgenerate_codemod
toolimprove_codemod
toolsystem_prompt.py
system_setup_instructions.py
resources/
directory🚀 Improvements
📚 Documentation
docs/integrations/mcp.mdx
docs.json
to include MCP in the integrations section🔧 Configuration
ruff.toml
- removed exception for deletedsystem_prompt.py
Testing
The MCP server now provides a clean, focused interface for AI agents to interact with Codegen platform APIs without the legacy codemod functionality.
Fixes CG-18866
💻 View my work • About Codegen