Skip to main content
Glama

digital-mgmt-mcp

Un servidor de Model Context Protocol (MCP) para el equipo de Akij Resource Digital Management, construido con TypeScript y el SDK oficial de MCP. Utiliza el transporte Streamable HTTP de modo que puede ejecutarse como una función serverless de Vercel (y también localmente mediante stdio).

Herramientas

Herramienta

Descripción

get_time

Hora UTC actual / marca de tiempo ISO / ms epoch

echo

Devuelve un mensaje

calculate

Evaluación aritmética segura (+ - * / % ( ))

digital_kpi_summary

Resumen de KPI de Digital Management para el año fiscal 2026 (cifras reales de DWH + datos de marketing de muestra), con filtro opcional por SBU

Related MCP server: Custom MCP Server

Estructura del proyecto

api/mcp.ts        Vercel entry — Express app + Streamable HTTP transport (deployed function)
src/tools.ts      Tool definitions (shared)
src/server.ts     Local HTTP dev server (npm run dev)
src/stdio.ts      Local stdio runner (npm run stdio)
vercel.json       Vercel build/function config

Desarrollo local

npm install
npm run dev        # HTTP server on http://localhost:3000/mcp
# or
npm run stdio      # stdio transport (for local MCP clients)

Despliegue en Vercel

  1. Instala la CLI de Vercel: npm i -g vercel

  2. Ejecuta vercel (vincula el proyecto) y luego vercel --prod

  3. Tu endpoint de MCP será https://<project>.vercel.app/api/mcp

Subir a GitHub

git init
git add .
git commit -m "init: digital management MCP server"
git branch -M main
gh repo create digital-mgmt-mcp --public --source=. --push

Conectar con el MCP

Añádelo como servidor MCP remoto en tu cliente (p. ej. opencode.json):

{
  "mcp": {
    "digital-mgmt-mcp": {
      "type": "remote",
      "url": "https://<project>.vercel.app/api/mcp",
      "enabled": true
    }
  }
}

Añadir una herramienta

Registra nuevas herramientas en src/tools.ts con un esquema de zod para argumentos tipados:

server.tool(
  "my_tool",
  "What this tool does.",
  { input: z.string().describe("Description of the input") },
  async ({ input }) => ({
    content: [{ type: "text", text: `You said: ${input}` }],
  })
);

Los secretos (claves de API, credenciales de base de datos) deben ir en las variables de entorno de Vercel; nunca los hagas commit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A serverless MCP server deployed on Vercel that provides basic utility tools including echo, time retrieval, arithmetic operations, and mock weather information. Includes an interactive client application for testing and demonstration purposes.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Next.js-based MCP server that provides basic utility tools including echo, current time retrieval, and safe mathematical calculations through HTTP and SSE transports.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A self-contained, dependency-free MCP server that provides utility tools for time, date, mathematical calculations, and shell command execution. It supports remote connectivity through SSE and is designed for easy deployment via Docker.
      GPL 3.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Next.js-based MCP server using mcp-handler for Vercel deployment, supporting SSE transport and Redis integration.
      1
      MIT