lodgify-mcp / rules
Cursor rule4 starsChanged 16 months agoMITView on GitHub
- Reads credentials
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 4,263 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/architecture-patterns.mdcCursor rule
- .cursor/rules/coding-standards.mdcCursor rule
- .cursor/rules/cursor_rules.mdcCursor rule
- .cursor/rules/mcp-development.mdcCursor rule
- .cursor/rules/project-overview.mdcCursor rule
- .cursor/rules/self_improve.mdcCursor rule
- .cursor/rules/taskmaster/dev_workflow.mdcCursor rule
- .cursor/rules/taskmaster/taskmaster.mdcCursor rule
- .cursor/rules/testing-guidelines.mdcCursor rule
The file
Show its rules and text
We split this development-workflow.mdc into the rules it gives an agent
18 rules. About 0 are common, 11 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 92
Check docs/TOOL_CATALOG.md for existing functionality
- Distinctive: line 121
Ensure all tests pass
- Distinctive: line 122
Check code coverage meets requirements
- Distinctive: line 123
Verify documentation is updated
- Very specific: line 124
Run bun run check to ensure quality
- Very specific: line 151
API errors: Check LODGIFY_API_KEY in .env
- Very specific: line 152
Type errors: Run bun run typecheck
- Very specific: line 153
Lint errors: Run bun run lint:fix
- Very specific: line 158
New features: Update README.md and docs/TOOL_CATALOG.md
- Distinctive: line 159
API changes: Update CHANGELOG.md
- Distinctive: line 160
Examples: Add to examples/ directory
- Very specific: line 161
Architecture changes: Update docs/MODULAR_ARCHITECTURE.md
- Distinctive: line 166
Changelog: Follow Keep a Changelog format
- Distinctive: line 172
Module Size: Keep modules under 250 lines
- Distinctive: line 173
Lazy Loading: Only load what's needed
- Distinctive: line 179
Retry Logic: Use exponential backoff
- Distinctive: line 189
Read-only mode: Use for testing/demo
- Distinctive: line 194
Type safety: Use TypeScript strict mode
≈ “Common” is an estimate: at least 1 in 5 of the 7,111 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# Development Workflow ## Development Environment Setup ### Prerequisites - **Node.js**: 18+ or **Bun**: 1.0+ - **Git**: For version control - **Editor**: VS Code with TypeScript support recommended ### Initial Setup ```bash # Clone and setup git clone https://github.com/mikerobgit/lodgify-mcp cd lodgify-mcp bun install # Environment configuration cp .env.example .env # Edit .env and add your LODGIFY_API_KEY ``` ## Development Commands ### Core Development Commands ```bash # Development server (hot reload) bun dev # Build project bun run build # Run tests bun test # Watch tests bun test --watch # Code quality checks bun run check # Lint, format, typecheck, build, test ``` ### Code Quality Commands ```bash # Linting bun run lint # Check for issues bun run lint:fix # Fix auto-fixable issues bun run lint:src # Lint only source files # Formatting bun run format # Format all files bun run format:src # Format only source files # Type checking bun run typecheck # TypeScript type checking ``` ## Git Workflow ### Branch Strategy - **main**: Production-ready code - **develop**: Integration branch - **feature/***: New features - **fix/***: Bug fixes - **docs/***: Documentation updates ### Commit Standards Follow Conventional Commits: ```bash # Feature git commit -m "feat: add new property listing tool" # Bug fix git commit -m "fix: handle API rate limiting correctly" # Documentation git commit -m "docs: update README with new examples" # Breaking change git commit -m "feat!: change API response format" ``` ### Pre-commit Hooks Husky is configured to run: - Linting (with auto-fix) - Code formatting - Type checking (on push) ## Feature Development Process ### 1. Planning - Review existing tools in [src/mcp/tools/](mdc:src/mcp/tools/) - Check [docs/TOOL_CATALOG.md](mdc:docs/TOOL_CATALOG.md) for existing functionality - Plan tool category and implementation approach ### 2. Implementation ```bash # Create feature branch git checkout -b feature/new-tool # Implement the feature # - Add tool to appropriate category file # - Register tool in register-all.ts # - Add client method to orchestrator # - Write tests # - Update documentation ``` ### 3. Testing ```bash # Run all tests bun test # Run specific test file bun test tests/mcp/tools/new-tool.test.ts # Run with coverage bun test --coverage ``` ### 4. Code Review - Ensure all tests pass - Check code coverage meets requirements - Verify documentation is updated - Run `bun run check` to ensure quality ### 5. Merge - Create pull request - Ensure CI passes - Get code review approval - Merge to develop/main ## Debugging ### Local Development ```bash # Run with debug logging DEBUG_HTTP=1 bun dev # Run with specific log level LOG_LEVEL=debug bun dev ``` ### Testing MCP Server 1. **Stop current server**: Ctrl+C if running 2. **Restart locally**: `bun dev` or `bun run build && bun start` 3. **Restart MCP client**: Restart Claude/VS Code MCP session 4. **Test CLI**: `bin/lodgify-mcp.js` after changes ### Common Issues - **Hot reload not working**: Restart MCP client session - **API errors**: Check `LODGIFY_API_KEY` in `.env` - **Type errors**: Run `bun run typecheck` - **Lint errors**: Run `bun run lint:fix` ## Documentation Updates ### When to Update Documentation - **New features**: Update [README.md](mdc:README.md) and [docs/TOOL_CATALOG.md](mdc:docs/TOOL_CATALOG.md) - **API changes**: Update [CHANGELOG.md](mdc:CHANGELOG.md) - **Examples**: Add to [examples/](mdc:examples/) directory - **Architecture changes**: Update [docs/MODULAR_ARCHITECTURE.md](mdc:docs/MODULAR_ARCHITECTURE.md) ### Documentation Standards - **README**: User-facing documentation with examples - **Tool Catalog**: Complete API reference - **Changelog**: Follow [Keep a Changelog](https://keepachangelog.com/) format - **Examples**: Working code examples for each tool ## Performance Considerations ### Development Performance - **Module Size**: Keep modules under 250 lines - **Lazy Loading**: Only load what's needed - **Caching**: Cache frequently accessed data - **Bundle Size**: Monitor dist/ size ### Runtime Performance - **Rate Limiting**: Respect Lodgify API limits - **Retry Logic**: Use exponential backoff - **Error Handling**: Fail fast with clear errors - **Memory Management**: Proper resource cleanup ## Security Best Practices ### API Key Management - **Never commit**: `.env` files with real keys - **Use examples**: `.env.example` for documentation - **Rotate keys**: Regularly rotate API keys - **Read-only mode**: Use for testing/demo ### Input Validation - **Zod schemas**: Validate all inputs - **Sanitization**: Clean error messages - **Type safety**: Use TypeScript strict mode - **Error boundaries**: Prevent information leakage ## Release Process ### Version Management ```bash # Check current version npm version # Bump version (patch/minor/major) npm version patch npm version minor npm version major ``` ### Release Checklist - [ ] All tests pass - [ ] Documentation updated - [ ] Changelog updated - [ ] Version bumped - [ ] Build successful - [ ] Docker image built - [ ] NPM package published ### CI/CD Pipeline - **Push to main**: Triggers CI build and test - **Tag v***: Triggers release workflow - **Docker**: Auto-publishes to GitHub Container Registry - **NPM**: Auto-publishes to npm registry description: globs: alwaysApply: true ---
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

