MCPServerL2
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCPServerL2 Can you sum 10 and 15?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🚀 Modular MCP Server in TypeScript (M5L2)
This project implements a clean, granular, and modular architecture for building Model Context Protocol (MCP) servers using TypeScript and schemas with Zod.
đź“‚ Project Structure
M5L2/
├── src/
│ ├── schemas/
│ │ ├── sumar.schema.ts <-- Esquema Zod e inferencia de tipos para 'sumar'
│ │ └── saludar.schema.ts <-- Esquema Zod e inferencia de tipos para 'saludar'
│ ├── tools/
│ │ ├── sumar.tool.ts <-- Tool aislada de suma
│ │ ├── saludar.tool.ts <-- Tool aislada de saludo
│ │ └── index.ts <-- Registro centralizador de Tools
│ ├── server.ts <-- Fábrica de creación y configuración del McpServer
│ └── index.ts <-- Punto de entrada (Bootstrapping y Transporte STDIO)
├── dist/ <-- Código transpilado a JavaScript (generado tras 'npm run build')
├── tsconfig.json <-- Configuración estricta de TypeScript
├── package.json <-- Dependencias y scripts
└── README.mdRelated MCP server: MCP Server TypeScript Template
📦 Installation
Install the project dependencies by running:
npm install🛠️ Available Scripts
Compilation (TypeScript to JavaScript in
/dist):npm run buildRunning the Server:
Development (direct TS):
npm run devProduction (compiled code):
npm start
đź’ˇ Note: When running over STDIO, the server stays actively waiting for JSON-RPC messages. To interact with it visually, use the Inspector.
Testing with MCP Inspector:
npm run inspector
đź§Ş How to test it with MCP Inspector?
The Inspector launches an interactive web interface that connects to the server over STDIO:
Compile the project (if you haven't already):
npm run buildStart the Inspector:
npm run inspectorOpen in your browser the URL shown in the terminal (e.g.
http://localhost:6274/?MCP_PROXY_AUTH_TOKEN=...) to interactively test thesumarandsaludartools.
Available Tools
2 toolsTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
Both tools have completely distinct purposes—one performs arithmetic, the other generates greetings. There is no possibility of confusion between them.
Both tool names are Spanish verbs in infinitive form ('sumar', 'saludar'), following a clear and consistent pattern.
With only two tools, the set feels minimal, but it may be appropriate for a simple demo or utility server. The count is borderline thin rather than excessive.
The server covers its apparent basic scope without dead ends: one math operation and one greeting function. Additional math operations could be considered a minor gap, but the surface is functionally usable.
Related MCP Connectors
A simple Typescript MCP server built using the official MCP Typescript SDK and smithery/cli. This…
A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…
Related MCP Servers
- AlicenseBqualityDmaintenanceA simple TypeScript MCP server that provides two tools: one for greeting users with a customizable name and another for adding two numbers together.29 npmMIT
- AlicenseNot gradedqualityDmaintenanceA demonstration MCP server built in TypeScript that shows how to implement stdio-based communication for integration with MCP clients. Serves as a template for building custom MCP servers with strong typing and maintainability.ISC
- AlicenseNot gradedqualityDmaintenanceA lightweight TypeScript-based MCP server that demonstrates how to build custom MCP tools by implementing a simple addition calculator. Serves as a starting point for building MCP-compatible tools.1,527 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables building and running an MCP server with automatically discovered tools, prompts, and resources over HTTP or STDIO, using TypeScript and Zod schemas.-