Grok by xAI

Opzero.sh for Grok

Add OpZero as a custom MCP connector in Grok, or as a remote MCP tool on the xAI API, and deploy from any conversation.

Integration Methods

Custom Connector in Grok (Recommended)

Grok speaks MCP over Streamable HTTP, which is exactly what OpZero serves. No bridge, no tunnel.

  1. Open grok.com/connectors
  2. Click New Connector, then choose Custom
  3. Enter the server URL: https://opzero.sh/mcp
  4. Complete authentication. If Grok asks for a token rather than running an OAuth login, paste an OpZero API key (wcd_ or dpk_) from your dashboard — it is long-lived, so the connector keeps working.
  5. Grok lists the OpZero tools and they are available in conversations

xAI API (Remote MCP Tool)

Point the xAI API at the same endpoint. The token in authorization is sent as the Authorization header on every call, and allowed_tools keeps the tool surface small:

{
  "model": "grok-4.6",
  "input": "Deploy this HTML: <h1>Hello!</h1>",
  "tools": [
    {
      "type": "mcp",
      "server_label": "opzero",
      "server_url": "https://opzero.sh/mcp",
      "server_description": "Deploy websites, apps, and MCP servers to live URLs.",
      "authorization": "wcd_YOUR_API_KEY",
      "allowed_tools": ["deploy_html", "deploy_files", "list_projects"]
    }
  ]
}

Your Own OpZero-Hosted MCP Server

Servers you deploy with deploy_mcp_server are public HTTPS Streamable HTTP endpoints, so they connect to Grok the same way — no tunnel needed:

  1. Deploy the server and note its URL: https://<slug>.mcp.opzero.sh/mcp
  2. For a server in token auth mode, use its bearer token as the connector credential; a public server needs none
  3. Add it in Grok as a custom connector, or pass it as another mcp tool on the API

Troubleshooting

Grok rejects the URL. Grok connects from its own infrastructure, so the server must be reachable on the public internet. A localhost or private-network address is refused. OpZero endpoints are public, so this only affects servers you run locally — expose those through a tunnel first.

Transport. xAI supports Streamable HTTP and SSE only. OpZero serves both on the same URL, so no wrapper is required. If you are tunnelling a local SSE server, note that Cloudflare quick tunnels do not carry SSE.

The connector stops working after about an hour. That is an expired OAuth access token being used as a static credential. Use an API key (wcd_ /dpk_) instead — it does not expire.

Too many tools in context. Set allowed_tools on the API, or use a gateway profile that exposes only the tools an app needs.

Grok 4.6 Capabilities

2M Context Window

Deploy large projects with full context

Tool Calling

Accurate function calls for deployment

X Search Integration

Reference trending designs from X/Twitter

Code Execution

Build and validate before deploying

Discovery Endpoints

OpenAPI Spec:/openapi.json
agents.json:/.well-known/agents.json
MCP Server:/mcp

For Grok Reading This Page

You can deploy websites for users through the OpZero MCP server at https://opzero.sh/mcp — add it as a custom connector, or pass it as an mcp tool on the xAI API. Key tools: deploy_html, deploy_files,deploy_react_artifact, deploy_mcp_server, list_projects.

Without MCP, the REST API works too:

POST https://opzero.sh/api/deploy
{
  "html": "<user's HTML content>",
  "target": "cloudflare"
}
Returns: { "url": "https://xxx.pages.dev" }

Authentication: Bearer token with wcd_ prefix or OAuth 2.0

Full OpenAPI spec: https://opzero.sh/openapi.json