.cursor — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited .cursor (MCP Server) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
<p align="center"> <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a> </p>
Weather MCP Tool là một ứng dụng NestJS cung cấp thông tin thời tiết thông qua Model Context Protocol (MCP). Ứng dụng sử dụng OpenWeatherMap API để lấy dữ liệu thời tiết thực tế cho các thành phố trên toàn thế giới.
# Clone repository
git clone <repository-url>
cd weather-mcp-nest
# Cài đặt dependencies
npm install# Clone repository
git clone <repository-url>
cd weather-mcp-nest
# Build và chạy với Docker Compose
docker-compose up --build OPENWEATHER_API_KEY=your_api_key_here# Development mode
npm run start:dev
# Production mode
npm run start:prod# Build Docker image
docker build -t weather-mcp .
# Chạy container
docker run -p 3000:3000 --env-file .env weather-mcp
# Hoặc sử dụng Docker Compose
docker-compose upSau khi khởi động server, tool sẽ có sẵn thông qua MCP protocol:
getWeatherMô tả: Lấy thông tin thời tiết cho một thành phố
Tham số:
city (string): Tên thành phố (VD: "Da Nang", "London", "New York")Ví dụ sử dụng:
{
"name": "getWeather",
"arguments": {
"city": "Da Nang"
}
}Kết quả:
Thời tiết ở Da Nang: mây cụm, nhiệt độ 28°C (cảm giác như 33°C), độ ẩm 82%, gió 3.49 m/s.src/
├── weather/
│ ├── weather.controller.ts # REST API controller
│ ├── weather.service.ts # Weather service logic
│ ├── weather.tool.ts # MCP tool implementation
│ └── weather.module.ts # Weather module
├── app.module.ts # Main application module
└── main.ts # Application entry pointLấy thông tin thời tiết qua REST API
Request Body:
{
"city": "Da Nang"
}Response:
{
"content": {
"type": "text",
"text": "Thời tiết ở Da Nang: mây cụm, nhiệt độ 28°C (cảm giác như 33°C), độ ẩm 82%, gió 3.49 m/s."
}
}Cấu hình MCP trong .cursor/mcp.json:
{
"mcpServers": {
"weather": {
"url": "http://localhost:3000/mcp",
"type": "http"
}
}
}# Unit tests
npm run test
# E2E tests
npm run test:e2e
# Test coverage
npm run test:covnpm run lint# Build image
docker build -t weather-mcp .
# Chạy container
docker run -p 3000:3000 --env-file .env weather-mcp
# Chạy với Docker Compose
docker-compose up --build# Xem logs
docker-compose logs -f
# Dừng container
docker-compose down
# Restart container
docker-compose restart# Chạy trong development mode
docker-compose -f docker-compose.dev.yml upMIT License - xem file LICENSE để biết thêm chi tiết.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.