mcp-typescript-starter

This project is a starter template for implementing an MCP server using TypeScript. Inspired by the Go version, it is designed for easy setup and execution. It allows running in development mode or building and running the compiled version, offering customizable greeting features.

GitHub Stars

4

User Rating

Not Rated

Favorites

0

Views

25

Forks

7

Issues

0

README
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