MCPcopy
hub / github.com/codeaashu/claude-code / getMcpStatus

Function getMcpStatus

src/commands/plugin/ManagePlugins.tsx:513–519  ·  view source on GitHub ↗
(client: MCPServerConnection)

Source from the content-addressed store, hash-verified

511
512 // Helper to get MCP status
513 const getMcpStatus = (client: MCPServerConnection): 'connected' | 'disabled' | 'pending' | 'needs-auth' | 'failed' => {
514 if (client.type === 'connected') return 'connected';
515 if (client.type === 'disabled') return 'disabled';
516 if (client.type === 'pending') return 'pending';
517 if (client.type === 'needs-auth') return 'needs-auth';
518 return 'failed';
519 };
520
521 // Derive unified items from plugins and MCP servers
522 const unifiedItems = useMemo(() => {

Callers 1

ManagePluginsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected