PugBase/Docs

OAuth & Directory

PugBase connects to an AI client in three ways, all set out on the Installation page: a connector, a config file with an API key, or another way. This page explains the two ways of signing in underneath them: an API key, and OAuth (the Connect button).

Two ways to sign in

API key (manual)

Create a pgb_ key in Settings -> Developer and paste it into a .mcp.json or the claude mcp add command. Best for a project you wire up yourself; the key is scoped to one workspace. See Installation.

OAuth (Connect button)

In Claude, install PugBase from the Connectors Directory and press Connect. In ChatGPT, install it from the plugin directory. Other MCP clients that support OAuth add the server URL and press Connect. Either way there is no key to copy: you sign in to PugBase, pick a workspace and approve.

Connecting over OAuth

  1. 1In Claude, open PugBase in the Connectors Directory and press Connect. In ChatGPT, open PugBase on the Plugins page and press Install plugin. In another MCP client, add PugBase and press Connect. A PugBase page opens in the browser.
  2. 2Sign in to PugBase if you are not already - your normal account, no separate password.
  3. 3Choose which workspace to grant, then press Allow. The client receives access and the connection goes live.
  4. 4The grant is scoped to that one workspace and can be revoked anytime.

Manage connected apps

Every app you authorize over OAuth appears under Connected apps in Settings -> Developer, with the workspace it can reach. Press Disconnect to revoke its access immediately.

For developers

PugBase is a standards-compliant OAuth 2.1 server, so any MCP client connects with the normal Connect flow - it registers itself automatically (using PKCE), with nothing to set up by hand. Tokens are short-lived and refresh on their own. You sign in with your normal PugBase account; OAuth just lets the client act on your behalf until you disconnect it.

MCP server URLs

https://pugbase.io/api/mcp/app
https://pugbase.io/api/mcp

/api/mcp/app is the connector: the tools for notes, plans and diagrams. /api/mcp has every tool. Both sign in with OAuth.

Discovery endpoints

https://pugbase.io/.well-known/oauth-protected-resource
https://pugbase.io/.well-known/oauth-authorization-server
PugBase x Claude Code - plan it in PugBase, build it with Claude, review it together.