Claude Code already has a server mode. The difference is that it connects through Anthropic rather than via a local socket.