Download src/hooks/mutation/use-test-mcp-server.ts from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 317 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/hooks/mutation/use-test-mcp-server.ts
- Command line
-
hf download hf://SaylorTwift/openhands/src/hooks/mutation/use-test-mcp-server.ts
-
curl -L -o use-test-mcp-server.ts https://huggingface.co/SaylorTwift/openhands/resolve/main/src/hooks/mutation/use-test-mcp-server.ts
317 Bytes
| import { useMutation } from "@tanstack/react-query"; | |
| import McpService from "#/api/mcp-service/mcp-service.api"; | |
| import type { MCPServerConfig } from "#/types/mcp-server"; | |
| export function useTestMcpServer() { | |
| return useMutation({ | |
| mutationFn: (server: MCPServerConfig) => McpService.testServer(server), | |
| }); | |
| } | |