Skip to content

A minimal Model Context Protocol (MCP) server in TypeScript with hello tool, markdown resource, and prompt. Includes VS Code/devcontainer setup and documentation.

License

Notifications You must be signed in to change notification settings

tinabme/mcp-typescript-starter

 
 

Repository files navigation

MCP TypeScript Starter

A starter MCP server implementation using TypeScript, inspired by the Go version.

Setup

npm install

Running the Server

# Run in development mode (using ts-node)
npm run dev

# Or use the script
./script/ts-run

# Build and run the compiled version
npm run build
npm start

Environment Variables

  • MCP_GREETING: Customizes the greeting used by the hello_world tool (default: "Hello")

Features

Tools

  • hello: Says hello to someone (uses MCP_GREETING)

Resources

  • example://md: Serves the markdown file in src/resources/example.md

Prompts

  • greeting-prompt: A prompt that greets the user by name

License

MIT

About

A minimal Model Context Protocol (MCP) server in TypeScript with hello tool, markdown resource, and prompt. Includes VS Code/devcontainer setup and documentation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 72.6%
  • JavaScript 27.4%