-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[MCP] Add a list_dataconnect_services MCP tool #8485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| async (_, { projectId }) => { | ||
| if (!projectId) return mcpError("No current project detected."); | ||
| const services = await client.listAllServices(projectId); | ||
| return toContent(services, { format: "yaml" }); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here it is~
| async (_, { projectId }) => { | ||
| if (!projectId) return mcpError("No current project detected."); | ||
| const services = await client.listAllServices(projectId); | ||
| return toContent(services, { format: "yaml" }); |
There was a problem hiding this comment.
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.
Co-authored-by: Michael Bleigh <bleigh@google.com>
Description
Add the first FDC tool.
list_dataconnect_servicestalks to the backend API and returns the list of services available.Scenarios Tested
Sample Commands