autoseo_connect_site
START HERE for AutoSEO on a new site. Connects ONE of four connector kinds (least intrusive first) and returns { id, kind, publicToken, capabilities } (plus hostedUrl for "hosted"). Pick the kind: "hosted" is the ZERO-SETUP DEFAULT and needs only name; TimeToPost hosts and server-renders the blog (JSON-LD, sitemap, robots AI-crawler allow-list), nothing to install, works for ANY site, pick it when unsure. "wp_rest" connects WordPress over its REST API (no plugin); connect runs the real capability probe, so a bad credential fails here with the exact reason. "git_pr" commits Markdown/MDX articles to a GitHub repo for the user's own CI to deploy (a pull request per article by default); connect verifies write access and auto-detects the site generator, returned as capabilities.detected (confirm contentDir with the user if ssg is "unknown"). "webhook" is the most-control path for any stack: TimeToPost POSTs HMAC-signed payloads to your endpoint; then call autoseo_integration_kit, install the /autoseo-publish endpoint in the user's codebase, and confirm with autoseo_verify_site. Required fields per kind are on the matching inputs. After ANY kind: autoseo_configure, then autoseo_propose_topics or autoseo_generate_post. capabilities refreshes on every autoseo_verify_site; publicToken is only needed for autoseo_integration_kit renderMode "ssr-hosted" (set as AUTOSEO_PUBLIC_TOKEN). CAPABILITY: draft: creates content that cannot reach an audience on its own. Safe for a draft-only agent token.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"kind": "<kind>",
"name": "<name>"
},
"name": "autoseo_connect_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Required for kind "wp_rest": the WordPress site URL (a bare domain is fine) | |
| kind | Yes | Connector kind: "hosted" (zero-setup default, only name needed, we host the blog), "wp_rest" (WordPress REST, url + username + appPassword), "git_pr" (GitHub repo, token + repo, optional branch/contentDir/mode), "webhook" (signed receiving endpoint, endpointUrl + optional signingSecret) | |
| mode | No | git_pr: "pr" (default) opens a pull request per article, a git-native approval gate; "direct" commits straight to the branch | |
| name | Yes | Human-readable label for this site, shown in the dashboard | |
| repo | No | Required for kind "git_pr": the repository as "owner/name" (a github.com URL also works) | |
| token | No | Required for kind "git_pr": a GitHub fine-grained PAT or App installation token with contents:write on the repo | |
| branch | No | git_pr: base branch for commits/PRs; omit to use the repo's default branch | |
| username | No | Required for kind "wp_rest": the WP username the Application Password belongs to | |
| contentDir | No | git_pr: directory article files land in; omit to auto-detect from the repo (e.g. content/blog, _posts) | |
| appPassword | No | Required for kind "wp_rest": a WordPress Application Password (WP Admin → Users → Profile → Application Passwords) | |
| endpointUrl | No | Required for kind "webhook": URL TimeToPost will POST signed articles to | |
| signingSecret | No | webhook: HMAC secret used to sign payloads; omit to let the backend generate one |