Cursor Extension
Document code directly from Cursor IDE with the BlockForge extension.
Overview
The BlockForge Cursor extension allows you to:
- Document code directly from Cursor
- Link GitHub repositories
- Sync GitHub issues to BlockForge pages
- Document pull requests
- Generate project dashboards
Installation
Prerequisites
- Cursor installed (or VS Code 1.80.0+)
- Node.js 18+ installed
- BlockForge account and workspace
Step 1: Navigate to Extension Folder
The extension is in the BlockForge project:
cursor-blockforge-extension/Step 2: Install Dependencies
bash
cd cursor-blockforge-extension
npm install
npm run compileStep 3: Launch Extension
For Development:
- Press
F5in Cursor - A new window opens with the extension loaded
For Production:
bash
npm run packageThen install the .vsix file via Command Palette → "Extensions: Install from VSIX..."
Configuration
Get Workspace ID
- Open BlockForge in browser
- Open browser console (F12)
- Run:
localStorage.getItem("active-workspace-id") - Copy the workspace ID
Configure Settings
- Open Cursor Settings (
Cmd+,) - Search for "BlockForge"
- Set these values:
- BlockForge: Workspace Id - Your workspace ID
- BlockForge: Api Url - API endpoint (default configured)
- BlockForge: Supabase Anon Key - Anon key (default configured)
Or edit settings JSON:
json
{
"blockforge.workspaceId": "your-workspace-id",
"blockforge.apiUrl": "https://your-project.supabase.co/functions/v1/cursor-api",
"blockforge.autoSync": false
}Features
Document Code
- Select code in editor
- Right-click → "BlockForge: Document Selected Code"
- Or use Command Palette → "BlockForge: Document Selected Code"
- Code is sent to BlockForge as documentation
Link GitHub Repository
- Open folder with GitHub repo
- Command Palette → "BlockForge: Link GitHub Repository"
- Extension detects repo from git remote
- Repository is linked to your workspace
Sync GitHub Issues
- Ensure repo is linked
- Command Palette → "BlockForge: Sync GitHub Issues"
- Choose: Open, Closed, or All Issues
- Issues sync as pages in BlockForge
Document Pull Request
- Ensure repo is linked
- Command Palette → "BlockForge: Document Pull Request"
- Enter PR number
- PR documentation is created in BlockForge
Generate Project Dashboard
- Ensure repo is linked
- Command Palette → "BlockForge: Generate Project Dashboard"
- Dashboard page is created with:
- Repository information
- Recent issues
- Recent pull requests
- Project overview
Usage Tips
- Auto-sync: Enable auto-sync to automatically sync code changes
- Workspace selection: Use the correct workspace ID for organization
- Batch operations: Sync multiple issues or PRs at once
- Link before sync: Always link repository before syncing issues/PRs
Troubleshooting
Extension Not Appearing
- Verify compilation succeeded (
npm run compile) - Check extension is loaded in Extension Development Host
- Restart Cursor if needed
Configuration Errors
- Verify workspace ID is correct
- Check API URL is accessible
- Ensure Supabase anon key is valid
GitHub Integration Issues
- Verify git remote is configured
- Check GitHub authentication
- Ensure repository is accessible