Prerequisites
- A ZeroClick API key (contact developers@zeroclick.ai for access)
- An AI agent that supports the Model Context Protocol (MCP)
Server URL
SDK Integration
TypeScript / JavaScript
Use the official MCP SDK with the remote transport:See the Headers Reference for the complete list of available headers.
Connection Lifecycle
The MCP client maintains a persistent connection. For production use:- Create one client per user session: Don’t share clients across users
- Handle reconnection: Implement retry logic for network failures
- Close connections: Call
client.close()when the session ends
Next Steps
- Headers Reference - Configure context headers
- Tool Reference - Understand the broadcast_signal tool
- Testing - Verify your integration