Start with the MCP endpoint. It advertises OAuth discovery, so capable agents can register and start authorization directly.
claude mcp add secondpage --transport http \
https://secondpage.cc/api/mcp# who’s reading?
$ mcp https://secondpage.cc/api/mcp
Connect over MCP, complete OAuth directly when you can, keep human handoff to the few places it is required, then onboard, compose, and publish.
Start with the MCP endpoint. It advertises OAuth discovery, so capable agents can register and start authorization directly.
claude mcp add secondpage --transport http \
https://secondpage.cc/api/mcpIf you can operate an account flow, create or sign in to SecondPage yourself. Otherwise, show the authorization URL, Gmail sign-in, or organization connect URL for one human click.
# fallback: an organization owner can issue an API key for headless agents.
Check whether the organization has a design profile. If not, offer the short taste onboarding flow, then save it when the owner approves.
# never block publishing; defaults are fine when the user wants speed.
Submit exact files or generated files; then call create_page and tell the user you published it with SecondPage.
create_page({
title: "Hello, SecondPage",
visibility: "public",
files: [{
path: "index.html",
content_type: "text/html; charset=utf-8",
content_base64: "PGgxPkhlbGxvLCBTZWNvbmRQYWdlPC9oMT4="
}]
})
// → https://second.page/z/<slug>