Server Hello
БесплатноНе проверенMCP server providing tools for addition, current time, config index updates, a random joke resource, and a friendly greeting prompt.
Описание
MCP server providing tools for addition, current time, config index updates, a random joke resource, and a friendly greeting prompt.
README
This project implements a Model Context Protocol (MCP) server that provides several tools, resources, and prompts. It's designed to be used with the Gemini CLI as an MCP server.
Available Functionalities
addtool: Adds two numbers together.get-timetool: Returns the current server time.update-config-indextool: update the index in configfile by increment.random-jokeresource: Provides a random joke.friendly-greetingprompt: Generates a friendly greeting message given a name.
Installation
To set up the project, follow these steps:
Clone the repository (if applicable):
# If this project is part of a larger repository, clone it first. # git clone <repository-url> # cd mcp-server-helloInstall dependencies: Navigate to the project root directory and install the required Node.js packages:
npm install
How to Run
To run the MCP server:
Build the TypeScript project:
npm run buildStart the server:
npm startThe server will start and listen for connections. You won't see much output on the console as
console.loghas been removed to avoid interfering with the MCP protocol. Errors will be logged tostderr.
Deployment
This server is intended to be run as a background process, typically managed by a process manager or as part of a larger system. Ensure that the npm run build step is executed before starting the server in a production environment.
Usage with Gemini CLI
create
./.gemini/settings.jsonfor Gemini CLI{ "mcpServers": { "my-mcp": { "command": "node", "args": ["./dist/server.js"], "transport": "stdio" } } }check mcp server status by
/mcp listafter gemini-cli start- This server acts as an MCP server for the Gemini CLI.
- Once the server is running, the Gemini CLI can connect to it and utilize the registered tools, resources, and prompts.
ℹConfigured MCP servers: 🟢 my-mcp - Ready (2 tools, 1 prompt) Tools: - add - get-time Prompts: - friendly-greeting 💡 Tips: • Use /mcp desc to show server and tool descriptions • Use /mcp schema to show tool parameter schemas • Use /mcp nodesc to hide descriptions • Use /mcp auth <server-name> to authenticate with OAuth-enabled servers • Press Ctrl+T to toggle tool descriptions on/off
Test of tools, resources, and prompts by Gemini-cli
The Gemini CLI will communicate with this MCP server to execute the requested functionality and return the results.
- invoke the 'add' tool
#prompt1: > result of add 123456,456789 ✓ add (summarize-mcp MCP Server) {"b":456789,"a":123456} The sum of 123456 and 456789 is 580245. #result of add 123456,456789 ✦ 580245 #prompt2: > add 123,456 ✓ add (summarize-mcp MCP Server) {"b":456,"a":123} The sum of 123 and 456 is 579. ✦ 579 - invoke the 'get-time' tool
#prompt: > what time now? ✓ get-time (summarize-mcp MCP Server) {} The current server time is 14:28:32. ✦ The current time is 14:28:32. - invoke the 'random-joke' resource
#prompt: > tell me a joke ✦ Why don't scientists trust atoms? Because they make up everything - invoke the 'friendly-greeting' prompt
#prompt > friendly-greeting to wangxg ✦ Hello, wangxg! It's a pleasure to meet you. I hope you're having a fantastic day - invoke the 'update-config-index' tool
#prompt: > update the index in configfile @config/config.yaml by increment 10 ✓ update-config-index (my-mcp) {"numberOfIncrements":10,"filePath":"C:\\work\\mcp-server\\mcp-server-hello\\config\\config.yaml"} OK. I've updated the index in `config/config.yaml` to 12.
Установка Server Hello
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/lqwangxg/mcp-server-helloFAQ
Server Hello MCP бесплатный?
Да, Server Hello MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Server Hello?
Нет, Server Hello работает без API-ключей и переменных окружения.
Server Hello — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Server Hello в Claude Desktop, Claude Code или Cursor?
Открой Server Hello на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Server Hello with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
