study-01-mcp-server-typescript

XiaoXiaoXian/study-01-mcp-server-typescript

3.2

If you are the rightful owner of study-01-mcp-server-typescript and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This project is a simple MCP server implemented in TypeScript using the @modelcontextprotocol/sdk library.

Hello World MCP Server

This project is a simple MCP server implemented in TypeScript using the @modelcontextprotocol/sdk library.

Features

  • Provides a "Hello World" tool.
  • Uses standard I/O transport for communication.

Setup

  1. Install dependencies:

    npm install
    
  2. Build the project:

    npm run build
    
  3. Run the server:

    node build/index.js
    

    Alternatively, run the server directly from the TypeScript source:

    npx ts-node src/index.ts
    

    Or

    node  --require ts-node/register src/index.ts
    

    Or run the server with trace warnings:

    node --trace-warnings --require ts-node/register src/index.ts
    

    Or

    npx tsx src/index.ts
    

## Development
- Source files are located in the `src` directory.
- Build output is located in the `build` directory.

## License
This project is licensed under the ISC License.