Created
March 2, 2025 19:39
-
-
Save bossjones/414a72363bc701c3497c27119676b528 to your computer and use it in GitHub Desktop.
cursor_rules_mcp_server.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Cursor Rules MCP Server. | |
This module contains a Model Context Protocol (MCP) server that helps users create | |
custom cursor rules for their repositories. The server analyzes repository structure | |
and provides guidance for creating and organizing cursor rules. | |
<thinking> | |
# Implementation Checklist | |
## Phase 1: Basic MCP Server Setup | |
- [ ] Implement the SqliteDatabase class for storing rules and repository data | |
- [ ] Set up server models using MCP protocol | |
- [ ] Implement server initialization and main entry point | |
- [ ] Add basic resource handlers (list_resources, read_resource) | |
- [ ] Define prompt handlers (list_prompts, get_prompt) | |
- [ ] Create basic tool handlers (list_tools, call_tool) | |
## Phase 2: Repository Analysis Features | |
- [ ] Implement repository structure analysis tool | |
- [ ] Parse directory structure | |
- [ ] Identify common patterns (frameworks, languages, etc.) | |
- [ ] Generate repository summary | |
- [ ] Create rule suggestion engine based on repo analysis | |
- [ ] Map repo features to rule types | |
- [ ] Prioritize rule suggestions | |
## Phase 3: Rule Generation Tools | |
- [ ] Implement rule template generation | |
- [ ] Create appropriate filter patterns | |
- [ ] Generate example usage scenarios | |
- [ ] Build metadata sections | |
- [ ] Add rule collection management | |
- [ ] Create, update, and delete rules | |
- [ ] Organize rules by category or purpose | |
- [ ] Validate rule syntax | |
## Phase 4: Integration Features | |
- [ ] Implement rule installation to .cursor/rules | |
- [ ] Add rule activation/deactivation functionality | |
- [ ] Create usage analytics for rule effectiveness | |
## Phase 5: Documentation & Resources | |
- [ ] Generate rule explanation resources | |
- [ ] Create repository-specific guidance resources | |
- [ ] Build tutorial prompts for rule creation | |
</thinking> | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment