MCP Server Hello World

by dcSpark

260 downloads Not rated yet MIT

About

# MCP Server Hello World A Model Context Protocol server example with hello world methods. ## Installation ```bash npm install ``` ## Usage ```bash npm run build npm run inspector ``` ## Testing ```bash npm test ``` ## Methods ### hello_world Returns "hello world". ### hello_world_with_input Returns "hello world" with…

Details

License
MIT

Explore

- Basic hello world method returning a static string.
- Method accepting an optional input string.
- Method requiring a configuration string as input.
- Simple Node.js project structure.

npm install

Returns "hello configuration" with the provided config.

Input:
- config (string, required): The configuration to append to "hello configuration".
```

A Model Context Protocol server example with hello world methods.

Installation

npm install

Usage

npm run build
npm run inspector

Testing

npm test

Methods

hello_world

Returns "hello world".

hello_world_with_input

Returns "hello world" with the provided input.

Input:
- message (string, optional): The input to append to "hello world".

hello_world_with_config

Returns "hello configuration" with the provided config.

Input:
- config (string, required): The configuration to append to "hello configuration".
```

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.