Skip to content

Conversation

dsjadaun-google
Copy link
Contributor

@dsjadaun-google dsjadaun-google commented May 12, 2025

Created a new MCP tool for remote config to get the template

  • Added MCP tool get_template to get the remote config template. User can also pass versionNumber to get a specific version of the template.

@firebase firebase deleted a comment May 12, 2025
@dsjadaun-google dsjadaun-google requested review from fredzqm and joehan May 13, 2025 08:46
@dsjadaun-google dsjadaun-google changed the title Exposing RemoteConfig operation as MCP tool [MCP] Exposing RemoteConfig operation as MCP tool May 13, 2025
@dsjadaun-google dsjadaun-google self-assigned this May 13, 2025
Copy link
Contributor

@fredzqm fredzqm left a comment

Choose a reason for hiding this comment

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

Nice!

},
},
async ({ versionNumber }, { projectId }) => {
if (projectId === undefined) {
Copy link
Contributor

Choose a reason for hiding this comment

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

If you have requiresProject: true set above, it would validate projectId for you in the caller.

if (tool.mcp._meta?.requiresProject && !projectId) return NO_PROJECT_ERROR;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for pointing this out. I have updated this.

@dsjadaun-google dsjadaun-google enabled auto-merge (squash) May 14, 2025 07:43
@dsjadaun-google dsjadaun-google removed the request for review from joehan May 14, 2025 07:43
@dsjadaun-google dsjadaun-google changed the title [MCP] Exposing RemoteConfig operation as MCP tool [MCP] Exposing RemoteConfig get_template operation as MCP tool May 14, 2025
@dsjadaun-google dsjadaun-google merged commit ff99519 into master May 14, 2025
48 of 50 checks passed
@github-project-automation github-project-automation bot moved this from Approved [PR] to Done in [Cloud] Extensions + Functions May 14, 2025
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.

3 participants