1. Install from your project folder
Use macOS or Linux with curl and a shell; Windows requires WSL with Cursor able to launch the installed command in that environment. Use an existing Ricursor project and a workspace key from Connections. Run the installer from the repository root with the exact project name. It checks access before writing agent settings and installs Bun if needed. Installation also configures Claude Code and Codex; it does not change Cursor’s selected model.
curl -fsSL https://ricursor.com/install.sh | sh -s -- rcsk_YOUR_KEY "YOUR_PROJECT_NAME"Replace the example values locally. The key is saved in ~/.ricursor/config.json, not in the repository. Never commit it or paste it into Cursor chat; the install command can remain in shell history, so treat that history as sensitive.
2. Discover ricursor_broker in Cursor
Open the same repository in Cursor and restart Cursor after installation. In Cursor’s MCP settings, confirm the project server ricursor_broker is available and enabled. The installer merges .cursor/mcp.json while preserving other server entries. Its command points to your installed executable; no key belongs in this file. The example below uses a placeholder home directory, not a configuration to paste unchanged.
{"mcpServers":{"ricursor_broker":{"command":"/YOUR_HOME/.ricursor/bin/ricursor","args":["mcp"]}}}Discovery should include write_file, delete_file and apply_changes. When the hosted connection works, it also includes ricursor_context, ricursor_workspaces and other hosted tools. Local write tools alone do not prove the remote memory connection works.
3. Request project context before a change
Ask Cursor’s agent to invoke the actual ricursor_context tool from ricursor_broker, not merely explain how it would call it. Keep the request descriptive and avoid source code or secrets in task. Explicitly use your configured project name. The workspace is selected by the saved key; a workspace argument cannot grant access elsewhere. Cursor may ask permission to run an MCP tool according to its own settings.
Call ricursor_context from ricursor_broker with these arguments. Show the returned workspace and constraints; do not edit files.
{"project":"YOUR_PROJECT_NAME","task":"implement authentication using the saved architecture rules"}The broker fills in the configured project when omitted, but using it explicitly makes this check easier to audit. A successful text answer without a tool invocation is not evidence that rules were fetched.
4. Check the returned memory
The MCP result includes a text JSON payload and structuredContent. Expect workspace, constraints, recent_state, intent_alerts, retrieval, cursor, delta and tokens. Confirm the workspace matches your key and that any returned rules apply to the intended project or shared workspace scope. Empty constraints can be valid when no applicable rules are saved; that is not proof of an installation failure. Retrieval can fall back to recent rules while semantic indexing is unavailable or pending.
Fields to inspect:
workspace: your key’s workspace name
constraints: retrieved rule objects
recent_state / intent_alerts: scoped activity
retrieval: retrieval mode
cursor: next refresh token
delta: upsert and removed IDs
tokens: context payload measurement, not model billingKeep cursor and send it as since on the next request with the same key, project and task. Then constraints contains changed rules; apply delta.removed to the cached selection. Fetch without since if the cursor expires or the scope changes. Context retrieval is a selected set, not the entire rule inventory.
5. Troubleshoot discovery and retrieval
Server missing: confirm Cursor opened the repository containing .cursor/mcp.json and restart it. Server cannot start: check that its command exists and is executable, and that Cursor uses the same machine/WSL environment as installation. Wrong project: inspect .ricursor.json and re-run the installer with the correct name. Authentication rejected: verify the key is active and its creator still belongs to the workspace; re-run setup with an authorized key. Never share the machine configuration when asking for help.
Test the saved key and configured project without Cursor:
~/.ricursor/bin/ricursor rules export
Override only the project for this diagnostic:
~/.ricursor/bin/ricursor rules export "YOUR_PROJECT_NAME"If only local write tools appear, remote tool discovery may have failed: check api.ricursor.com connectivity and the saved key. If export works but Cursor does not discover tools, focus on Cursor’s MCP process/environment. For Invalid arguments, use project/task only first; omit since rather than inventing a cursor. Export reads the full applicable inventory and does not prove semantic ranking works. Exported rules may be private: do not publish the output.
Compatibility and security limits
Cursor authentication and Ricursor authentication are separate. The rcsk_ key authorizes Ricursor tools; it is not a Cursor login, Cursor API key or replacement for Cursor’s model access. The installer configures broker MCP only for Cursor. Automatic Cursor → Ricursor → Cloudflare Qwen routing remains a product requirement, but no supported automatic configuration or successful real Cursor coding session has established it. Do not use Cursor’s service endpoint override as an OpenAI provider URL.
Supported configuration: local ricursor_broker over stdio
Memory access: hosted Ricursor tools through the broker
Checked changes: supported JS/TS broker operations
Not verified: automatic Qwen routing in Cursor
Not guaranteed: checks on Cursor’s native edits or shell writesOnly operations actually sent through write_file, delete_file or apply_changes receive broker checks. Tool discovery or reading rules does not establish mandatory enforcement of all Cursor edits. These checks cover tracked structure and applicable policies, not arbitrary code correctness. Source is parsed locally; the documented hosted AI relay is separate from this Cursor MCP setup. Remote/WSL launch behavior must be checked in your own Cursor environment.