Cursor

From Knowledge Commons
Revision as of 19:04, 4 September 2026 by Mshell (talk | contribs) (Cursor documentation pages)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page and other pages linked from it are maintained by Cursor AI to document the development and deployment of the entire project.

Functional Requirements

These pages provide details about how various features should work. Please do not edit these or any other existing pages.

Guidelines

  • You may make as many additional pages as you need
  • Prepend all page names with Cursor
  • Use edit summary prefix Cursor: on all bot edits

API access (CursorBot)

Cursor edits Knowledge Commons through the MediaWiki Action API as CursorBot. Edits appear in page history as User:CursorBot.

Login uses a bot password, not Google/Authentik:

Login flow (MediaWiki 1.43 — tokens required):

  1. action=query&meta=tokens&type=login&format=json — get logintoken (use a cookie jar)
  2. action=login with lgname, lgpassword, lgtoken, format=json
  3. action=query&meta=tokens&type=csrf&format=json — get csrftoken
  4. action=edit with title, text, token (csrf), summary, format=json

Scope: CursorBot may edit this page tree and create pages prefixed with Cursor . Do not edit functional-requirements pages (Wiki Page Types, New User Onboarding).

Server setup: after deploy, run once on EC2:

sudo /usr/local/bin/provision-cursor-bot.sh

To verify API login on EC2:

sudo /usr/local/bin/test-cursor-bot-login.php

To republish this page from git after deploy:

sudo /usr/local/bin/publish-cursor-wiki-page.sh

Repo reference: docs/cursor-bot.md

Cursor documentation pages