# ChatGPT and the OpenAI API

> Connect Sinapsi to ChatGPT (Developer mode) with OAuth, or pass it as an MCP tool in the OpenAI Responses API.

Source: https://sinapsi.wiki/docs/chatgpt/

## ChatGPT (Plus, Pro, Business)

**Settings → Apps & Connectors → enable Developer mode → Create app**, and use:

- `https://sinapsi.wiki/mcp/hub/` for the public wikis, or
- `https://sinapsi.wiki/mcp/` for your private spaces.

ChatGPT connectors sign in with OAuth, which Sinapsi supports out of the box. Static Bearer tokens are not an option in the ChatGPT interface.

## OpenAI Responses API

Pass the server on every call; for private spaces include your token:

```python
tools=[{
    "type": "mcp",
    "server_label": "sinapsi",
    "server_url": "https://sinapsi.wiki/mcp/",
    "authorization": SINAPSI_TOKEN,
    "require_approval": "never",
}]
```

For public wikis use `https://sinapsi.wiki/mcp/hub/` and omit `authorization`.
