(queryClient: QueryClient)
| 2023 | }; |
| 2024 | |
| 2025 | export const updateMCPServerConfig = (queryClient: QueryClient) => ({ |
| 2026 | mutationFn: ({ id, req }: UpdateMCPServerConfigMutationArgs) => |
| 2027 | API.experimental.updateMCPServerConfig(id, req), |
| 2028 | onSuccess: async () => { |
| 2029 | await invalidateMCPServerConfigQueries(queryClient); |
| 2030 | }, |
| 2031 | }); |
| 2032 | |
| 2033 | export const deleteMCPServerConfig = (queryClient: QueryClient) => ({ |
| 2034 | mutationFn: (id: string) => API.experimental.deleteMCPServerConfig(id), |
no test coverage detected