This repository contains a helper script to manually install the TypeSpec VS Code extension in Cursor, which currently does not support installing it natively via the Cursor extension marketplace.
Cursor does not include the TypeSpec extension in its extension gallery. This setup circumvents that by:
- Installing the TypeSpec extension in regular Visual Studio Code
- Copying the extension files and configuration to the Cursor extension environment
- Making TypeSpec available inside Cursor, with basic language support
- Do NOT use the latest version of the TypeSpec extension — Cursor's engine is behind the latest VS Code API, and may break with newer versions.
- The script uses TypeSpec extension v1.0.0, which is known to work with recent Cursor builds.
- Autoupdate is not supported after installation. You will need to repeat this process manually if you want to upgrade later.
The script:
- Installs the TypeSpec compiler globally via
npm - Installs a compatible version of the TypeSpec extension in VS Code
- Copies the extension files to the Cursor extensions directory
- Appends the extension configuration to Cursor’s internal
extensions.json - Ensures
jqis installed if not already available (via Homebrew)
- macOS
- Homebrew (for installing
jq) npminstalled- Visual Studio Code installed (not just Cursor)
jq(automatically installed if missing)
curl -sSL https://raw.githubusercontent.com/lucascust2/typespec-setup/main/enable-typespec.sh | bash