Skip to content

Rename MCP tools for compatibility with Antigravity#94

Open
haroonc wants to merge 1 commit intomainfrom
rename-tools
Open

Rename MCP tools for compatibility with Antigravity#94
haroonc wants to merge 1 commit intomainfrom
rename-tools

Conversation

@haroonc
Copy link
Contributor

@haroonc haroonc commented Mar 15, 2026

Antigravity does not support dot(.) in tool names. General guidance for tool names is to remove namespace as agents automatically add MCP server as prefix to the tool. Only add product or namespace to avoid conflict in the same MCP server,

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request implements a significant refactoring of the naming convention for all MCP tools. The primary motivation is to remove service-specific prefixes and dot separators from tool names, which is crucial for ensuring compatibility with the Antigravity system. This change also adheres to a general guideline for simplifying tool names, as the MCP server automatically adds necessary prefixes. The update is comprehensive, affecting how tools are defined, documented, and invoked throughout the codebase and related assets.

Highlights

  • Tool Naming Convention Update: All MCP tools have been renamed to remove service-specific prefixes (e.g., cloudbuild.create_trigger is now create_build_trigger) and the dot separator.
  • Antigravity Compatibility: The renaming ensures compatibility with Antigravity, which does not support dots in tool names, aligning with recommended naming practices.
  • Widespread Reference Updates: References to the renamed tools have been updated across documentation, configuration files, source code, and integration tests to reflect the new convention.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • README.md
    • Updated tool names to remove service prefixes.
  • commands/devops/deploy.toml
    • Modified tool references within deployment configuration.
  • devops-mcp-server/REFERENCE.md
    • Renamed tool headings and updated tool references.
  • devops-mcp-server/artifactregistry/artifactregistry.go
    • Updated the registered tool name for Artifact Registry.
  • devops-mcp-server/bm25/bm25.go
    • Updated registered tool names for BM25 search functionalities.
  • devops-mcp-server/cloudbuild/cloudbuild.go
    • Updated registered tool names for Cloud Build operations.
  • devops-mcp-server/cloudrun/cloudrun.go
    • Updated registered tool names for Cloud Run deployment and listing.
  • devops-mcp-server/cloudstorage/cloudstorage.go
    • Updated registered tool names for Cloud Storage operations.
  • devops-mcp-server/devconnect/devconnect.go
    • Updated registered tool names for Developer Connect functionalities.
  • devops-mcp-server/integration_tests/main.go
    • Updated tool names in integration test calls.
  • devops-mcp-server/osv/osv.go
    • Updated the registered tool name for OSV secret scanning.
  • devops-mcp-server/prompts/deploy_prompt.md
    • Modified tool references within deployment prompt documentation.
  • skills/gcp-cicd-deploy/SKILL.md
    • Modified tool references within GCP CI/CD deployment skill definitions.
Activity
  • No human activity has been recorded on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the MCP tool names to ensure compatibility with Antigravity by removing dots. The changes are applied consistently across documentation, prompts, and Go source files. I've suggested a few minor adjustments to some of the new tool names in devops-mcp-server/cloudbuild/cloudbuild.go to further improve consistency and clarity, aligning them with the verb_product_noun pattern used for other tools. Overall, this is a solid improvement.

return &mcp.CallToolResult{}, map[string]any{"builds": res}, nil
}
mcp.AddTool(server, &mcp.Tool{Name: "cloudbuild.list_builds", Description: "Lists all Cloud Builds in a given location and project."}, listBuildsToolFunc)
mcp.AddTool(server, &mcp.Tool{Name: "list_builds", Description: "Lists all Cloud Builds in a given location and project."}, listBuildsToolFunc)
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

For consistency with other renamed tools like list_build_triggers and list_cloudrun_services, consider renaming this tool to list_cloud_builds. The current name list_builds is a bit generic and could lead to naming conflicts in the future. A more specific name improves clarity and maintainability.

Suggested change
mcp.AddTool(server, &mcp.Tool{Name: "list_builds", Description: "Lists all Cloud Builds in a given location and project."}, listBuildsToolFunc)
mcp.AddTool(server, &mcp.Tool{Name: "list_cloud_builds", Description: "Lists all Cloud Builds in a given location and project."}, listBuildsToolFunc)

return &mcp.CallToolResult{}, res, nil
}
mcp.AddTool(server, &mcp.Tool{Name: "cloudbuild.get_build_info", Description: "Gets information about a specific Cloud Build."}, getBuildInfoToolFunc)
mcp.AddTool(server, &mcp.Tool{Name: "get_build_details", Description: "Gets information about a specific Cloud Build."}, getBuildInfoToolFunc)
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

To maintain consistency with the naming convention of other tools (e.g., verb_product_noun), it would be clearer to rename this tool to get_cloud_build_details. This makes it explicit that it operates on Cloud Build resources.

Suggested change
mcp.AddTool(server, &mcp.Tool{Name: "get_build_details", Description: "Gets information about a specific Cloud Build."}, getBuildInfoToolFunc)
mcp.AddTool(server, &mcp.Tool{Name: "get_cloud_build_details", Description: "Gets information about a specific Cloud Build."}, getBuildInfoToolFunc)

return &mcp.CallToolResult{}, res, nil
}
mcp.AddTool(server, &mcp.Tool{Name: "cloudbuild.start_build", Description: "Starts a new Cloud Build from a source in Google Cloud Storage."}, startBuildToolFunc)
mcp.AddTool(server, &mcp.Tool{Name: "start_build", Description: "Starts a new Cloud Build from a source in Google Cloud Storage."}, startBuildToolFunc)
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

For better consistency with other tool names, consider renaming start_build to start_cloud_build. This makes it clear that this tool starts a Cloud Build, which helps avoid potential ambiguity with other types of builds.

Suggested change
mcp.AddTool(server, &mcp.Tool{Name: "start_build", Description: "Starts a new Cloud Build from a source in Google Cloud Storage."}, startBuildToolFunc)
mcp.AddTool(server, &mcp.Tool{Name: "start_cloud_build", Description: "Starts a new Cloud Build from a source in Google Cloud Storage."}, startBuildToolFunc)

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.

1 participant