Upgrade codegen MCP server - remove codemods, add docs#1162
Merged
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.
Contributor
Author
|
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:
|
Contributor
Author
|
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
Contributor
Author
|
✅ 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.
Contributor
Author
|
✅ 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 👎 |
jayhack
approved these changes
Jun 30, 2025
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.
This PR upgrades the
codegen mcpcommand as requested in CG-18866:Changes Made
🧹 Cleanup
ask_codegen_sdktoolgenerate_codemodtoolimprove_codemodtoolsystem_prompt.pysystem_setup_instructions.pyresources/directory🚀 Improvements
📚 Documentation
docs/integrations/mcp.mdxdocs.jsonto include MCP in the integrations section🔧 Configuration
ruff.toml- removed exception for deletedsystem_prompt.pyTesting
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