TypeScript MCP Demo Server

by gedankrayze

138 downloads
Not rated
GitHub

About

A basic Model Context Protocol (MCP) server implementation using the TypeScript SDK and Bun runtime. It demonstrates server initialization with stdio transport, tool registration, and TypeScript type safety, intended for developers learning to build MCP servers.

Details

Author
gedankrayze
Downloads
138
Categories
Other

- Implementation with TypeScript SDK and Bun runtime
- Stdio transport for server-client communication
- Two example tools: greet and add_numbers
- TypeScript strict mode for type safety
- Integration with Claude Desktop via MCP protocol
- MCP inspector support for debugging

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 TypeScript MCP Demo Server
    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

Clone the repository, install dependencies with bun install, then start the server using bun start or task start. For Claude Desktop integration, add the provided configuration to your Claude Desktop config. Optionally use task inspect-server for debugging via the MCP inspector.

Claude Desktop / Cursor

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

{
    "mcpServers": {
        "typescript mcp demo server": {
            "ts-demo-mcp": {
                "command": "bun",
                "args": [
                    "start"
                ]
            }
        }
    }
}

McpServers

{
    "ts-demo-mcp": {
        "command": "bun",
        "args": [
            "start"
        ]
    }
}

TypeScript MCP Demo Server

A basic Model Context Protocol (MCP) server implementation using TypeScript SDK and Bun runtime.

Overview

This project demonstrates how to build an MCP server with TypeScript, featuring:
- Server initialization with stdio transport
- Tool registration and handling
- TypeScript type safety
- Bun runtime for fast execution

Prerequisites

- Bun (latest version)
- Task (optional, for task runner)

Installation

```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.