Skip to content

feat(mcp): add project create tool#2123

Merged
jonaro00 merged 7 commits intomainfrom
feat/mcp-upgrade
Sep 30, 2025
Merged

feat(mcp): add project create tool#2123
jonaro00 merged 7 commits intomainfrom
feat/mcp-upgrade

Conversation

@dcodesdev
Copy link
Collaborator

@dcodesdev dcodesdev commented Sep 30, 2025

Adds project_create tool to the MCP server for creating new projects on Shuttle.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greptile Overview

Summary

This PR adds a new `project_create` tool to the Shuttle MCP (Model Context Protocol) server, extending its project management capabilities. The MCP server appears to be a structured interface that exposes Shuttle CLI operations for use by AI assistants or other automated tools.

The implementation follows the established patterns in the codebase by:

  1. Adding a ProjectCreateArgs struct in mcp/src/tools/project.rs with JSON schema annotations for proper serialization and API documentation
  2. Implementing a project_create function that constructs the appropriate CLI command arguments and delegates to the existing execute_command utility
  3. Registering the new tool in mcp/src/mcp.rs with proper instrumentation (#[instrument]) and the #[tool] macro for automatic registration

The change integrates seamlessly with the existing MCP architecture, which already includes other project management tools like project_status and project_list. This addition creates a more complete project management suite through the MCP interface, allowing users to not only query existing projects but also create new ones programmatically.

The implementation mirrors the structure of existing tools in the codebase, using the same error handling pattern (Result<String, String>) and following the delegation pattern where the MCP server method calls through to a corresponding function in the tools module.

Important Files Changed

Changed Files
Filename Score Overview
mcp/src/tools/project.rs 5/5 Added ProjectCreateArgs struct and project_create function following established patterns
mcp/src/mcp.rs 5/5 Registered new project_create tool with proper instrumentation and error handling

Confidence score: 5/5

  • This PR is safe to merge with minimal risk
  • Score reflects simple, well-structured changes that follow existing codebase patterns consistently
  • No files require special attention as both changes are straightforward additions using established conventions

2 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@jonaro00 jonaro00 merged commit 78945dd into main Sep 30, 2025
21 of 22 checks passed
@jonaro00 jonaro00 deleted the feat/mcp-upgrade branch September 30, 2025 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants