Configuration template with all options documented
### Configuration Class
The `OSMConfig` class in [config.py](mdc:mcp:src/osm_edit_mcp/config.py) uses Pydantic BaseSettings for type-safe configuration management.
## Core Configuration Sections
### API Configuration (Dev/Prod
MCP Development Patterns and Best Practices
## Model Context Protocol (MCP) Implementation
### Server Architecture
The MCPserver in [src/osm_edit_mcp/server.py](mdc:src/osm_edit_mcp/server.py) follows FastMCP patterns:
```python
from mcp.server.fastmcp import FastMCP
app = FastMCP
description:
globs:
alwaysApply: true
---
# OSM Edit MCPServer - Safety and Development Rules
## ⚠️ CRITICAL: Ask Before Irreversible Operations
**ALWAYS ask the user before performing these irreversible operations:**
### OpenStreetMap Operations
- Creating
GhostSwap Partners API integration conventions (auth, idempotency, polling, error handling). Apply when working on swap, exchange, quote, or crypto-conversion code.
Use when driving vibey projects, checking or answering human gates, starting or pausing background workers, inspecting queues or budgets, or connecting a frontier chat client (Claude Code, Codex, Claude Desktop, Cursor, VS Code, Gemini CLI) to the local vibey hub over MCP. Triggers on vibey mcp, vibey connect, vibey_projects, vibey_gates, vibey_answer_gate, vibey_status, or any request to steer a vibey delivery loop from chat.
discovery and search of Swagger/OpenAPI endpoints.
## Key Entry Points
- Main server: [index.ts](mdc:src/index.ts) - MCPserver implementation with tools for API discovery
- Configuration loader: [loader.ts](mdc:src/config/loader.ts) - Handles YAML config
217mo agoReviewMountCreate a free account to mount
Authorize(Roles = "...")]`
Use claim-based policies: `policy.RequireClaim("permission", "orders:write")`. See ADR-001.
---
## SQL Server / EF Core
### Parameterized Queries Only (OWASP-A03, CWE-89 — block)
Never build SQL by string