Cursor
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:
- API endpoint:
https://wiki.goalstriving.org/api.php - Login name:
CursorBot@Cursor - Password: on the EC2 server at
/etc/goalstriving/cursor-bot-credentials.php(not in git)
Login flow (MediaWiki 1.43 — tokens required):
action=query&meta=tokens&type=login&format=json— getlogintoken(use a cookie jar)action=loginwithlgname,lgpassword,lgtoken,format=jsonaction=query&meta=tokens&type=csrf&format=json— getcsrftokenaction=editwithtitle,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