MCPcopy Create free account
hub / github.com/codeaashu/claude-code / testConnection

Function testConnection

web/components/settings/McpSettings.tsx:33–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 const [testStatus, setTestStatus] = useState<TestStatus>("idle");
32
33 async function testConnection() {
34 setTestStatus("testing");
35 // Simulate connection test — in real impl this would call an API
36 await new Promise((r) => setTimeout(r, 800));
37 setTestStatus(Math.random() > 0.3 ? "ok" : "error");
38 }
39
40 const statusDot = {
41 idle: <Circle className="w-2 h-2 text-surface-600" />,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected