MCP (Modelo de Contexto de Protocolo)
by MiguelAngelGutierrezMaya
This project is an implementation of the Protocol Context Model (MCP) following good development practices. It includes tools for weather consultation.
Last updated: N/A
What is MCP (Modelo de Contexto de Protocolo)?
This is an implementation of the Protocol Context Model (MCP) built with Node.js and TypeScript. It provides a server with tools for consulting the weather.
How to use MCP (Modelo de Contexto de Protocolo)?
To use this project, clone the repository, install dependencies with pnpm install
, and run the server in development mode with pnpm dev
. You can build the project with pnpm build
and start it in production mode with pnpm start
. Use the inspector with npx @modelcontextprotocol/inspector npx -y tsx src/main.ts
Key features of MCP (Modelo de Contexto de Protocolo)
Implemented with TypeScript for type safety
Uses ESLint and Prettier for code quality and consistency
Includes a modern ESLint configuration (Flat Config)
Uses Zod for schema validation
Includes interfaces for improved readability and documentation
Use cases of MCP (Modelo de Contexto de Protocolo)
Building a server application based on the MCP model
Demonstrating good development practices with Node.js and TypeScript
Implementing a weather consultation service
Learning about modern JavaScript/TypeScript tooling
Setting up a project with linting, formatting, and type checking
FAQ from MCP (Modelo de Contexto de Protocolo)
What is MCP?
What is MCP?
MCP stands for Modelo de Contexto de Protocolo (Protocol Context Model).
What is the purpose of this project?
What is the purpose of this project?
The purpose is to implement the MCP following good development practices.
What technologies are used?
What technologies are used?
Node.js, TypeScript, pnpm, ESLint, Prettier, and Zod are used.
How do I run the project?
How do I run the project?
Clone the repository, install dependencies with pnpm install
, and run pnpm dev
for development mode or pnpm start
for production mode.
How do I ensure code quality?
How do I ensure code quality?
The project is configured with ESLint and Prettier. Use pnpm lint
, pnpm lint:fix
, and pnpm format
to check and fix code quality issues.