agentleFS
skywinderskywinder/osm-edit-mcp/.cursor/rules/osm-mcp-project-structure.mdc

osm-edit-mcp / rules

Cursor rule4 starsChanged 3 months agoMITView on GitHub

  • Reads credentials

The file

We split this osm-mcp-project-structure.mdc into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Configuration: Create .env with install -m 600 .env.example .env and customize it

    line 54
  2. Very specific:

    Testing: Run test_comprehensive.py for validation

    line 55
  3. Very specific:

    Development: Use development API (OSM_USE_DEV_API=true) for safe testing

    line 56
  4. Distinctive:

    Documentation: Update README.md for any new features

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
osm-mcp-project-structure.mdc
---
description:
globs:
alwaysApply: true
---
# OSM Edit MCP Server - Project Structure Guide

## Core Project Files

### Main Server Implementation
- **[src/osm_edit_mcp/server.py](mdc:src/osm_edit_mcp/server.py)** - Primary MCP server with 31 tools for OSM operations
- **[main.py](mdc:main.py)** - Server entry point and startup script

### Configuration Files
- **[.env](mdc:.env)** - Environment configuration (never commit with real credentials)
- **[.env.example](mdc:.env.example)** - Configuration template with all available options
- **[pyproject.toml](mdc:pyproject.toml)** - Python package configuration and dependencies

### Testing Framework
- **[test_comprehensive.py](mdc:test_comprehensive.py)** - Complete test suite for all 31 MCP tools
- **[TESTING_CHECKLIST.md](mdc:TESTING_CHECKLIST.md)** - Systematic manual testing guide
- **[TEST_RESULTS_SUMMARY.md](mdc:TEST_RESULTS_SUMMARY.md)** - Analysis of test results and debugging guide

### Documentation
- **[README.md](mdc:README.md)** - Complete setup, configuration, and usage guide
- **[POLISH_SUMMARY.md](mdc:POLISH_SUMMARY.md)** - Summary of all enhancements made

## Architecture Overview

### Server Structure
The [server.py](mdc:src/osm_edit_mcp/server.py) contains:
- `OSMConfig` class with comprehensive configuration management
- 31 MCP tools organized in categories:
  - **Read Operations**: get_osm_node, get_osm_way, get_osm_relation, etc.
  - **Write Operations**: create_osm_node, update_osm_node, delete_osm_node, etc.
  - **Search Operations**: find_nearby_amenities, search_osm_elements, etc.
  - **Natural Language**: parse_natural_language_osm_request, create_place_from_description, etc.
  - **Utility Operations**: validate_coordinates, validate_osm_data, etc.

### Configuration System
Uses Pydantic BaseSettings for type-safe configuration with:
- Dev/prod API switching via `OSM_USE_DEV_API`
- Configurable logging levels
- Safety and rate limiting settings
- OAuth credentials management

### Testing Architecture
- **Automated Testing**: [test_comprehensive.py](mdc:test_comprehensive.py) runs all tools systematically
- **Manual Testing**: [TESTING_CHECKLIST.md](mdc:TESTING_CHECKLIST.md) provides step-by-step validation
- **Results Analysis**: Generated reports help identify and debug issues

## Development Workflow

1. **Configuration**: Create [.env](mdc:.env) with `install -m 600 .env.example .env` and customize it
2. **Testing**: Run [test_comprehensive.py](mdc:test_comprehensive.py) for validation
3. **Development**: Use development API (`OSM_USE_DEV_API=true`) for safe testing
4. **Documentation**: Update [README.md](mdc:README.md) for any new features

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.