Skip to content

Conversation

@fredzqm
Copy link
Contributor

@fredzqm fredzqm commented Apr 30, 2025

Description

Add the first FDC tool.

list_dataconnect_services talks to the backend API and returns the list of services available.

Scenarios Tested

image

Sample Commands

@fredzqm fredzqm changed the title Add a list_dataconnect_services tool Add a list_dataconnect_services MCP tool Apr 30, 2025
@fredzqm fredzqm changed the title Add a list_dataconnect_services MCP tool [MCP] Add a list_dataconnect_services MCP tool Apr 30, 2025
async (_, { projectId }) => {
if (!projectId) return mcpError("No current project detected.");
const services = await client.listAllServices(projectId);
return toContent(services, { format: "yaml" });
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the error handling.

Honestly, I think it should be the caller's responsibility to check for unchecked exception.

WIll send a follow-up PR to cleanup.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think you're probably right. I'll do a PR to do some universal error handling in the tool setup.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#8486

Here it is~

@fredzqm fredzqm requested a review from mbleigh April 30, 2025 20:23
async (_, { projectId }) => {
if (!projectId) return mcpError("No current project detected.");
const services = await client.listAllServices(projectId);
return toContent(services, { format: "yaml" });
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you're probably right. I'll do a PR to do some universal error handling in the tool setup.

fredzqm and others added 2 commits April 30, 2025 14:06
Co-authored-by: Michael Bleigh <bleigh@google.com>
@fredzqm fredzqm enabled auto-merge (squash) April 30, 2025 21:11
@fredzqm fredzqm merged commit 9f64df6 into master Apr 30, 2025
48 of 50 checks passed
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