mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-11 09:18:26 +00:00
325 lines
12 KiB
Plaintext
325 lines
12 KiB
Plaintext
---
|
|
title: "Cursor"
|
|
description: "Connect your Cursor Desktop app to CORE's memory system"
|
|
---
|
|
|
|

|
|
|
|
### Prerequisites
|
|
|
|
- Cursor
|
|
- CORE account (sign up at [core.heysol.ai](https://core.heysol.ai))
|
|
|
|
### Step 1: Add CORE MCP in Cursor
|
|
|
|
1. Open Cursor Desktop app
|
|
2. Navigate to **Settings** → **Tools & Integrations** → Click **Add Custom MCP**
|
|

|
|
3. Enter the below into mcp.json file:
|
|
```
|
|
"core_memory": {
|
|
"url": "https://core.heysol.ai/api/v1/mcp?source=Cursor"
|
|
}
|
|
```
|
|

|
|
4. After saving mcp.json file, **core_memory** MCP will appear in Tools & Integration.
|
|
|
|
### Step 2: Authenticate with CORE
|
|
|
|
1. Sign in to your CORE account (if not done already)
|
|
2. Click **Need Login** in core_memory MCP tool
|
|

|
|
3. Cursor will prompt you to open a website for authentication. Click **Open**
|
|

|
|
4. When the authentication window opens, Grant Cursor permission to access your CORE memory
|
|

|
|
5. Close the authentication window and click **Open** to allow Cursor to access this URL.
|
|

|
|
|
|
### Step 3: Verify Connection
|
|
|
|
1. Go to **Tools & Integrations** in Cursor settings
|
|
2. Confirm the core_memory MCP shows as **Active** with green dot indicator
|
|

|
|
|
|
## Enable Automatic Memory Integration (Recommended)
|
|
|
|
### Option 1: Using Agents.md (Recommended)
|
|
|
|
This approach provides comprehensive memory instructions that work across multiple AI tools.
|
|
|
|
1. **Create Agents configuration** in your project root:
|
|
```bash
|
|
mkdir -p .cursor
|
|
touch .cursor/Agents.md
|
|
```
|
|
|
|
2. **Add memory instructions** - Open `.cursor/Agents.md` and add the following:
|
|
|
|
```markdown
|
|
I am an AI coding assistant with access to a sophisticated memory system. While I don't retain information between separate conversations, I have access to CORE Memory - a persistent knowledge system that maintains project context, learnings, and continuity across all coding sessions.
|
|
|
|
**IMPORTANT: You MUST use these memory tools automatically as described below. This is not optional.**
|
|
|
|
## Memory Tools Integration
|
|
|
|
### Memory Search (`memory_search`)
|
|
|
|
**AUTOMATIC BEHAVIOR:** At the start of EVERY conversation, BEFORE responding to the user, you MUST search memory for:
|
|
- Previous discussions about the current topic
|
|
- Related project context and decisions
|
|
- User preferences and patterns
|
|
- Similar problems solved before
|
|
|
|
**Also search when:**
|
|
- User mentions past work or previous discussions
|
|
- Working on ongoing projects that have history
|
|
- You need context to provide better assistance
|
|
|
|
**Cognitive approach:**
|
|
- **Surface Layer**: Query for specific knowledge about the topic
|
|
- **Pattern Layer**: Search for how the user usually thinks, works, or prefers things
|
|
- **Wisdom Layer**: Look for lessons learned from similar situations
|
|
|
|
**Search triggers:**
|
|
- Starting any new conversation or task
|
|
- User mentions past work or previous discussions
|
|
- Working on ongoing projects that have history
|
|
- Maintaining continuity across sessions
|
|
|
|
**Quality questions to ask yourself:**
|
|
- "What don't I know that I should?"
|
|
- "What does this user care about that I might miss?"
|
|
- "What went right/wrong in similar situations?"
|
|
|
|
### Memory Ingest (`memory_ingest`)
|
|
|
|
**AUTOMATIC BEHAVIOR:** At the END of EVERY conversation, AFTER fully responding to the user, you MUST store the conversation in memory. This is the FINAL action before completing your response.
|
|
|
|
**Storage protocol:**
|
|
- MANDATORY: Execute after completing every interaction
|
|
- This is NON-NEGOTIABLE - you must always store conversation context
|
|
- Memory storage happens as the last step, not during the conversation
|
|
|
|
**What to capture:**
|
|
|
|
FROM USER:
|
|
- Their specific question, request, or problem statement
|
|
- Project context and situation they provided
|
|
- What they're trying to accomplish
|
|
- Technical challenges or constraints mentioned
|
|
|
|
FROM ASSISTANT:
|
|
- Detailed explanation of solution/approach taken
|
|
- Step-by-step processes and methodologies
|
|
- Technical concepts and principles explained
|
|
- Reasoning behind recommendations and decisions
|
|
- Alternative approaches discussed
|
|
- Problem-solving methodologies applied
|
|
|
|
**Exclude from storage:**
|
|
- Code blocks and code snippets
|
|
- File contents or file listings
|
|
- Command examples or CLI commands
|
|
- Raw data or logs
|
|
|
|
**Include in storage:**
|
|
- All conceptual explanations and theory
|
|
- Technical discussions and analysis
|
|
- Problem-solving approaches and reasoning
|
|
- Decision rationale and trade-offs
|
|
- Implementation strategies (described conceptually)
|
|
- Learning insights and patterns
|
|
|
|
**Quality check:**
|
|
- Can I quickly understand project context from memory alone?
|
|
- Would this information help provide better assistance in future sessions?
|
|
- Does stored context capture key decisions and reasoning?
|
|
|
|
### Project Space Context (`memory_get_space`)
|
|
|
|
**AUTOMATIC BEHAVIOR:** At the start of EVERY session, you MUST retrieve the current project's space context:
|
|
|
|
1. **Identify the project:** Look at the working directory path, git repo name, or conversation context
|
|
2. **Get space context:** Use `memory_get_space` with `spaceName: core`
|
|
3. **Use as foundation:** The space summary is a living document that's continuously updated - it contains the most current, comprehensive context about this project
|
|
|
|
**What spaces provide:**
|
|
- Live, evolving documentation that updates with every interaction
|
|
- Consolidated project knowledge and current state
|
|
- Organized context specific to this domain
|
|
- Most up-to-date understanding of the project
|
|
|
|
**Also retrieve space context when:**
|
|
- User asks about a specific project or domain
|
|
- You need comprehensive context about a topic
|
|
- Switching between different work areas
|
|
```
|
|
|
|
### Option 2: Using Cursor Project Rules
|
|
|
|
Alternatively, you can use Cursor's native Rules & Memories feature:
|
|
|
|
1. Go to **Settings** → **Rules & Memories** → **Project Rules**
|
|
|
|
2. Click **+Add Rule** and add below rule instruction:
|
|
|
|
```text
|
|
---
|
|
alwaysApply: true
|
|
---
|
|
I am Cursor, an AI coding assistant with access to a sophisticated memory system. While I don't retain information between separate conversations, I have access to CORE Memory - a persistent knowledge system that maintains project context, learnings, and continuity across all coding sessions.
|
|
|
|
Memory-First Approach
|
|
|
|
MANDATORY MEMORY OPERATIONS:
|
|
|
|
SEARCH FIRST: Before responding to ANY request, I MUST search CORE Memory for relevant context about the current project, user preferences, previous discussions, and related work
|
|
COMPREHENSIVE RETRIEVAL: I search for multiple aspects: project context, technical decisions, user patterns, progress status, and related conversations
|
|
MEMORY-INFORMED RESPONSES: All responses incorporate relevant memory context to maintain continuity and avoid repetition
|
|
AUTOMATIC STORAGE: After completing each interaction, I MUST store the conversation details, insights, and decisions in CORE Memory
|
|
|
|
Memory Structure Philosophy
|
|
|
|
My memory follows a hierarchical information architecture:
|
|
|
|
Project Foundation
|
|
├── Project Brief & Requirements
|
|
├── Technical Context & Architecture
|
|
├── User Preferences & Patterns
|
|
└── Active Work & Progress
|
|
├── Current Focus Areas
|
|
├── Recent Decisions
|
|
├── Next Steps
|
|
└── Key Insights
|
|
|
|
Core Memory Categories
|
|
|
|
1. Project Foundation
|
|
|
|
Purpose: Why this project exists, problems it solves
|
|
Requirements: Core functionality and constraints
|
|
Scope: What's included and excluded
|
|
Success Criteria: How we measure progress
|
|
|
|
2. Technical Context
|
|
|
|
Architecture: System design and key decisions
|
|
Technologies: Stack, tools, and dependencies
|
|
Patterns: Design patterns and coding approaches
|
|
Constraints: Technical limitations and requirements
|
|
|
|
3. User Context
|
|
|
|
Preferences: Communication style, technical level
|
|
Patterns: How they like to work and receive information
|
|
Goals: What they're trying to accomplish
|
|
Background: Relevant experience and expertise
|
|
|
|
4. Active Progress
|
|
|
|
Current Focus: What we're working on now
|
|
Recent Changes: Latest developments and decisions
|
|
Next Steps: Planned actions and priorities
|
|
Insights: Key learnings and observations
|
|
|
|
5. Conversation History
|
|
|
|
Decisions Made: Important choices and rationale
|
|
Problems Solved: Solutions and approaches used
|
|
Questions Asked: Clarifications and explorations
|
|
Patterns Discovered: Recurring themes and insights
|
|
|
|
Memory Search Strategy
|
|
|
|
When searching CORE Memory, I query for:
|
|
|
|
Direct Context: Specific project or topic keywords
|
|
Related Concepts: Associated technologies, patterns, decisions
|
|
User Patterns: Previous preferences and working styles
|
|
Progress Context: Current status, recent work, next steps
|
|
Decision History: Past choices and their outcomes
|
|
|
|
Memory Storage Strategy
|
|
|
|
When storing to CORE Memory, I include:
|
|
|
|
User Intent: What they were trying to accomplish
|
|
Context Provided: Information they shared about their situation
|
|
Solution Approach: The strategy and reasoning used
|
|
Technical Details: Key concepts, patterns, and decisions (described, not coded)
|
|
Insights Gained: Important learnings and observations
|
|
Follow-up Items: Next steps and ongoing considerations
|
|
|
|
Workflow Integration
|
|
|
|
Response Generation Process:
|
|
|
|
Memory Retrieval: Search for relevant context before responding
|
|
Context Integration: Incorporate memory findings into response planning
|
|
Informed Response: Provide contextually aware, continuous assistance
|
|
Memory Documentation: Store interaction details and insights
|
|
|
|
Memory Update Triggers:
|
|
|
|
New Project Context: When user introduces new projects or requirements
|
|
Technical Decisions: When architectural or implementation choices are made
|
|
Pattern Discovery: When new user preferences or working styles emerge
|
|
Progress Milestones: When significant work is completed or status changes
|
|
Explicit Updates: When user requests "update memory" or similar
|
|
|
|
Memory Maintenance
|
|
|
|
Key Principles:
|
|
|
|
Accuracy First: Only store verified information and clear decisions
|
|
Context Rich: Include enough detail for future retrieval and understanding
|
|
User-Centric: Focus on information that improves future interactions
|
|
Evolution Tracking: Document how projects and understanding develop over time
|
|
|
|
Quality Indicators:
|
|
|
|
Can I quickly understand project context from memory alone?
|
|
Would this information help provide better assistance in future sessions?
|
|
Does the stored context capture key decisions and reasoning?
|
|
Are user preferences and patterns clearly documented?
|
|
|
|
Memory-Driven Assistance
|
|
|
|
With comprehensive memory context, I can:
|
|
|
|
Continue Conversations: Pick up exactly where previous discussions left off
|
|
Avoid Repetition: Build on previous explanations rather than starting over
|
|
Maintain Consistency: Apply learned patterns and preferences automatically
|
|
Accelerate Progress: Jump directly to relevant work without re-establishing context
|
|
Provide Continuity: Create seamless experience across multiple interactions
|
|
|
|
Remember: CORE Memory transforms me from a session-based coding assistant into a persistent development partner. The quality and completeness of memory directly determines the effectiveness of ongoing coding collaboration.
|
|
```
|
|
|
|

|
|
|
|
### What's Next?
|
|
|
|
With CORE connected to Cursor, your conversations will now:
|
|
|
|
- **Automatically save** important context to your CORE memory
|
|
- **Retrieve relevant** information from CORE memory
|
|
- **Maintain continuity** across multiple chat sessions
|
|
- **Share context** with other connected tools
|
|
|
|
Ready to test it? Ask Cursor about a project you've discussed before, or start a new conversation about something you'd like to remember for later.
|
|
|
|
### Troubleshooting
|
|
|
|
**Connection Issues:**
|
|
|
|
- Ensure you're core_memory MCP tool is active with a green dot, if not toggle on and off for this server
|
|
- Check that your CORE account is active
|
|
|
|
### Need Help?
|
|
|
|
Join our [Discord community](https://discord.gg/YGUZcvDjUa) and ask questions in the **#core-support** channel.
|
|
|
|
Our team and community members are ready to help you get the most out of CORE's memory capabilities.
|