MCP (Modelo de Contexto de Protocolo)

by MiguelAngelGutierrezMaya

274 downloads
Not rated
GitHub

About

This project build a local mcp server to fetch weather

Details

Author
MiguelAngelGutierrezMaya
Downloads
274
Categories
Other

- TypeScript with strict mode and advanced type checking
- ESLint with flat config and Prettier formatting
- Zod schema validation library
- Weather query tools via MCP server
- Modern package management with pnpm
- Clear error handling and URL safety

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP (Modelo de Contexto de Protocolo)
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install dependencies with pnpm, then run pnpm dev for development, pnpm build to compile, and pnpm start for production. Use npx @modelcontextprotocol/inspector npx -y tsx src/main.ts to inspect the server.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp (modelo de contexto de protocolo)": {
            "local-mcp": {
                "command": "npx",
                "args": [
                    "@modelcontextprotocol/inspector",
                    "npx",
                    "-y",
                    "tsx",
                    "src/main.ts"
                ]
            }
        }
    }
}

McpServers

{
    "local-mcp": {
        "command": "npx",
        "args": [
            "@modelcontextprotocol/inspector",
            "npx",
            "-y",
            "tsx",
            "src/main.ts"
        ]
    }
}

MCP (Modelo de Contexto de Protocolo)

Este proyecto es una implementación del Modelo de Contexto de Protocolo (MCP) siguiendo buenas prácticas de desarrollo.

Tecnologías y herramientas

- Node.js - Entorno de ejecución
- TypeScript - Lenguaje de programación con tipado estático
- pnpm - Gestor de paquetes
- ESLint - Linter para identificar problemas en el código
- Prettier - Formateador de código
- Zod - Biblioteca de validación de esquemas

Configuración de calidad de código

El proyecto está configurado con las siguientes herramientas para asegurar la calidad del código:

TypeScript

El archivo tsconfig.json incluye configuraciones para:
- Modos estrictos habilitados
- Verificación de tipos avanzada
- Soporte para módulos ES

ESLint

La configuración de ESLint en eslint.config.mjs usa el nuevo formato de configuración plana (Flat Config) e incluye:
- Reglas recomendadas para JavaScript y TypeScript
- Plugin de integración con Prettier
- Reglas específicas para buenas prácticas:
- No usar variables sin usar
- Preferir const sobre let cuando es posible
- Siempre usar bloques en estructuras de control
- Usar comparación estricta (===)

Prettier

La configuración en .prettierrc define:
- Uso de comillas simples
- Punto y coma al final de las declaraciones
- Longitud de línea máxima
- Otras configuraciones para un formato consistente

Comandos disponibles

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.