cursor

package
v0.14.4-dev.40 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LoginMethods = []base.LoginMethod{{ID: "cursor", Label: "Cursor account"}}

LoginMethods are the ways the web UI signs Cursor in.

Functions

func Account added in v0.14.1

func Account(context.Context) base.Account

Account looks for the token Cursor CLI keeps, the same one the usage probe reads.

func Login added in v0.14.1

func Login(string) (base.LoginFlow, error)

Login runs `cursor-agent login` with the real HOME, where Cursor keeps its login. With NO_OPEN_BROWSER it prints the link and waits for the browser sign-in; nothing is pasted back.

func Logout added in v0.14.1

func Logout(ctx context.Context) error

Logout runs `cursor-agent logout` with the real HOME, where Cursor keeps its login.

func MergeMCPFilesData added in v0.9.0

func MergeMCPFilesData(packData, userData []byte) ([]byte, error)

func New

func New() base.Harness

func ReadLimits added in v0.11.0

func ReadLimits(ctx context.Context) base.LimitSnapshot

ReadLimits uses the same read-only usage RPC and credential store as Cursor CLI. It never starts an agent or sends an inference request.

func RenderMCP added in v0.9.0

func RenderMCP(entries mcp.Entries) ([]byte, []string, error)

func Support

func Support(event hooks.Event, handler hooks.Handler) hooks.Support

func WriteMCP

func WriteMCP(path string, entries mcp.Entries) error

WriteMCP writes the servers as Cursor's mcp.json. A remote server keeps its headers and its OAuth client, which Cursor spells auth.CLIENT_ID, auth.CLIENT_SECRET and auth.scopes. Cursor documents no working directory for a stdio server and a fixed OAuth callback, so a cwd and a callback port are left out with a warning.

Types

type HookRenderer

type HookRenderer struct{}

func (HookRenderer) Render

func (HookRenderer) Render(bundle hooks.Bundle, context hooks.RenderContext) (hooks.RenderOutput, error)

func (HookRenderer) Target

func (HookRenderer) Target() harness.Target

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL