Docs
MCP
Quillyn MCP at POST /mcp — same operations as the public API. Use a qyn_live_… API token. Clerk OAuth only when discovery returns 200.
Quillyn exposes an MCP server so an assistant can use the same operations as the public API without a second permission model.
Endpoints
POST https://api.quillyn.com/mcpPOST https://api.quillyn.com/api/public/v1/mcp(same handler)- OAuth discovery (optional):
GET https://api.quillyn.com/.well-known/oauth-protected-resource/mcp
Auth (actual)
Working path today: create an org API token under Settings → Developer and call MCP with:
Authorization: Bearer qyn_live_…
That is the same token family and scope allow-list as public REST. A tool your token lacks is absent from tools/list, not listed and then refused. qyn_ tokens stay bound to the organization that minted them.
Clerk OAuth (conditional): the server can also accept a Clerk OAuth access token (not a Clerk session JWT) when MCP OAuth is configured — specifically when the Clerk issuer is set and Protected Resource Metadata is available. In that state, GET /.well-known/oauth-protected-resource/mcp returns 200 and lists authorization_servers plus scopes_supported. If the issuer is unset, that discovery endpoint returns 503 oauth_unavailable, and MCP auth is API-token only. This docs page does not claim OAuth setup, account creation, or that discovery is live on every deployment.
OAuth-granted scopes map onto the same public API allow-list (jobs:approve stays explicit). When OAuth is configured, MCP follows the caller’s active organization via a shadow token; qyn_ tokens do not.
Tools and scopes
Examples (same scopes as REST):
| Tool | Needs |
|---|---|
get_me |
any authenticated token |
list_sites / get_site |
sites:read |
create_job |
jobs:write |
approve_job |
jobs:approve (separate from write) |
retry_publish_job |
jobs:approve (retry failed destinations on a published job) |
list_webhooks |
webhooks:manage |
approve_job is marked destructive because Approve publishes. Spending tool calls derive an Idempotency-Key from the tool name and arguments so retries do not double-spend.
Not included
- MCP resources or prompts (tools only)
- Keyword research and schedule as public MCP tools
- Calling third-party MCP servers from Quillyn (separate product flag)
- Guaranteeing Clerk OAuth discovery on every deployment