# Connect a WordPress site to Sightkick

Your user wants Sightkick to publish pages on their WordPress site: blog posts, and comparison, alternatives, integration and use-case pages. Sightkick publishes the pages, whoever writes them (Sightkick, you or your user), each on its day. About 2 minutes.

## 1. Connect to Sightkick

- Sightkick's MCP server is https://app.sightkick.so/mcp (streamable HTTP, OAuth). If it isn't connected yet, connect it by https://sightkick.so/connect/agent.md. Its sign-in picks your user's workspace.
- Call get_settings with view: sites. If a WordPress connection for this site is there with status connected, tell your user it's connected already and stop.
- A site has one publishing destination, so a second connection is refused. If another one is there, ask your user whether to move. Only on their yes, remove it (update_connections with action: remove), then go on.

## 2. Install the Sightkick plugin

- With shell access to the site (WP-CLI): `wp plugin install sightkick --activate`
- Otherwise ask your user: in the WordPress admin, Plugins → Add New, search "Sightkick", Install, then Activate. The page is https://<their-site>/wp-admin/plugin-install.php?s=sightkick&tab=search

## 3. Get the plugin's token

- WP-CLI: `wp option get sightkick_token`
- Otherwise ask your user to open Settings → Sightkick (https://<their-site>/wp-admin/options-general.php?page=sightkick) and paste you the token it shows.

It is a secret: keep it out of code, commits and anything you share.

## 4. Connect

Call update_connections with action: connect_wordpress, siteUrl (the site's address) and token.

- It publishes as the site's first author, in its default category. To let your user choose, call it with check: true first: it lists the authors and categories and stores nothing. Then call again with authorId and categoryId.
- "Connected already" means this site is in the workspace: go to step 5.

## 5. Test

Call update_connections with action: test and the connectionId. It reads the plugin back, so ok: true means Sightkick can publish.

## Tell your user

Sightkick publishes each page to their WordPress site on its day, as the author and in the category connect_wordpress named. They see the connection in Sightkick under Settings → Publishing, and change or remove it there.

If a step fails, its error says what to fix. Your user can also connect by hand: Settings → Publishing in Sightkick, "Set it up yourself".
