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

Function addServer

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

Source from the content-addressed store, hash-verified

150 }
151
152 function addServer() {
153 if (!newServer.name.trim() || !newServer.command.trim()) return;
154 updateSettings({
155 mcpServers: [...settings.mcpServers, { ...newServer, id: nanoid() }],
156 });
157 setNewServer({ name: "", command: "", args: [], env: {}, enabled: true });
158 setShowAddForm(false);
159 }
160
161 return (
162 <div>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected