# Claude Code

With an API key (works everywhere, including CI):

```sh
export POSTFLOW_API_KEY=pf_...
claude mcp add --transport http postflow https://postflow.biz.id/api/mcp \
  --header "Authorization: Bearer $POSTFLOW_API_KEY"
```

Or sign in with OAuth instead of a key: add it without the header, then run `/mcp` in Claude Code, pick **postflow** and
choose **Authenticate**.

```sh
claude mcp add --transport http postflow https://postflow.biz.id/api/mcp
```

## Share with your team

Commit a `.mcp.json` at the project root. Claude Code expands `${VAR}` from each person's environment:

```json title=".mcp.json"
{
  "mcpServers": {
    "postflow": {
      "type": "http",
      "url": "https://postflow.biz.id/api/mcp",
      "headers": { "Authorization": "Bearer ${POSTFLOW_API_KEY}" }
    }
  }
}
```

Check it with `claude mcp list`. To give Claude Code PostFlow's workflow without MCP, install the [Agent Skill](/agents/skill/).