MCP Server Hello World

by dcSpark

260 downloads
Not rated
GitHub

Description

# 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". ###…

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

Author
dcSpark
Downloads
260
Categories
Other

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

Install dependencies with npm install, build the project with npm run build, then launch the inspector with npm run inspector. Test with npm test.

MCP Server Hello World

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.