# Connect Hark — Grok Bot

Grok Bot has no MCP config file: you ask it in chat to add the server. Because there's no browser for the OAuth step, authenticate with a Hark personal access token — create one at Connections → Tokens and start with a read-only token.

Paste into the chat:

```
Add the MCP server "hark" at https://harkstudio.io/mcp (streamable HTTP) using the header
Authorization: Bearer <your-hark-token>
Then call list_workspaces and tell me what you find.
```

> Treat the token like a password: it's pasted into a chat the bot can read. Revoke it in Connections → Tokens when you're done. A Hark marketplace plugin may replace this step later.

> xAI's remote MCP does not support require_approval, so writes run without a confirmation step. Start with a read-only Hark token (Connections → Tokens) and switch to read + write once you trust the flow.

> Grok Build and Grok Bot carry no separate app identity, so Hark labels their activity from the connection: OAuth connections show as Grok Build or Grok, and token-based runs show the token's name — name the token Grok so the activity log reads clearly.

## Verify it works

Ask your client: "List my Hark workspaces." Expected: your workspace names.

Then: "Create a project called Connection test in <workspace>." Expected: a new V-### appears in the app and the activity log shows the source ("via Claude Code", "via Codex", etc.). Delete the test venture afterward.

## Troubleshooting

- "Unauthorized request origin" — the client origin isn't allowlisted; retry from the latest app version, or email hello@harkstudio.io.
- Consent screen loops / stale token — remove the connector in the client, sign out of Hark, sign back in, re-add the connector.
- Tools list is empty — the connector isn't enabled for this chat (Claude and ChatGPT require enabling it per conversation).
- Plan cap error — you've hit the monthly agent-call cap for this workspace; see billing.
- Old endpoint — anything pointing at a lovable.app URL must be updated to harkstudio.io/mcp.
