local-mcp

local-mcp

0

This project implements the Model Context Protocol (MCP) using best practices, featuring tools like Node.js and TypeScript. It focuses on maintaining code quality with modern linting and formatting configurations and provides capabilities to query weather data.

Overview

This project is an implementation of the Model Context Protocol (MCP) following best development practices.

Technologies and Tools

  • Node.js - Runtime environment
  • TypeScript - Statically typed programming language
  • pnpm - Package manager
  • ESLint - Code linter
  • Prettier - Code formatter
  • Zod - Schema validation library

Project Structure

  • src/main.ts - Main entry point implementing an MCP server with tools to query the weather
  • src/interfaces.ts - Definitions for improving readability and documentation

Code Quality Configuration

  • TypeScript: Includes strict mode and advanced type checks
  • ESLint: Modern Flat Config with recommended rules and Prettier integration
  • Prettier: Configured for single quotes, semicolons, and max line length

Available Commands

  • Start in development mode
  • Build the project
  • Start in production mode
  • Verify and fix code with ESLint
  • Format code with Prettier