Skip to content

mmorhaf/mcp-typescript-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCP TypeScript Server

A Model Context Protocol (MCP) server built with TypeScript that demonstrates basic MCP functionality.

Features

  • Tools: Echo messages and perform calculations
  • Resources: Dynamic greeting generator
  • Prompts: Help prompt for server usage

Setup

  1. Install dependencies:

    npm install
  2. Run the server:

    npm start
  3. For development with auto-reload:

    npm run dev
  4. Build the project:

    npm run build

Testing

You can test this MCP server using the MCP Inspector:

npx @modelcontextprotocol/inspector npm run start

VS Code Integration

This project includes an .vscode/mcp.json configuration file that allows you to debug this MCP server in VS Code when the MCP extension is installed.

Server Capabilities

Tools

  • echo: Echoes back any message you send
  • add: Adds two numbers together

Resources

  • greeting://{name}: Generates a personalized greeting

Prompts

  • help: Provides information about using this server

License

ISC

About

A Model Context Protocol server built with TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published