cdimascio
MCP Servercdimasciopublic

mcp ts

使用TypeScript和Node.js实现的基本模型上下文协议(MCP)服务器。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
TypeScript
Language
-
License

About This Server

使用TypeScript和Node.js实现的基本模型上下文协议(MCP)服务器。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

Simple MCP Server

A basic implementation of a Model Context Protocol (MCP) server using TypeScript and Node.js.

Features

  • Echo Tool: Echoes back any message you send
  • Add Numbers: Adds two numbers together
  • Current Time: Returns the current timestamp

Setup

  1. Install dependencies:

    npm install
    
  2. Build the project:

    npm run build
    
  3. Run the server:

    npm start
    

    Or for development:

    npm run dev
    

Usage

The server communicates via stdio and implements the MCP protocol. It can be used with any MCP-compatible client.

Available Tools

  1. echo

    • Description: Echo back the provided message
    • Parameters: message (string)
  2. add_numbers

    • Description: Add two numbers together
    • Parameters: a (number), b (number)
  3. get_current_time

    • Description: Get the current time
    • Parameters: none

Configuration

The server can be configured by modifying the SimpleMCPServer constructor in src/index.ts.

Architecture

  • src/index.ts: Main server implementation
  • src/types.ts: Type definitions
  • Uses the official MCP SDK for protocol handling
  • Communicates via stdio transport

Development

To extend this server:

  1. Add new tools to the ListToolsRequestSchema handler
  2. Implement the tool logic in the CallToolRequestSchema handler
  3. Add proper error handling and validation
  4. Update the tool schema as needed

Quick Start

1

Clone the repository

git clone https://github.com/cdimascio/mcp-ts
2

Install dependencies

cd mcp-ts
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownercdimascio
Repomcp-ts
LanguageTypeScript
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation