LB

lbelloq/basicopsmcpserver

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

0 stars 0 forks 质量 62 趋势 14MIT

一个MCP服务器,向AI代理展示一套基本的工具工具。

概览

一个MCP(模型上下文协议)服务器,向AI代理展示一组基本实用工具:随机值生成、数字算术运算、数字、日期时间和时间跨度的比较、字符串操作,以及JWT验证和检查。它通过stdio传输通信,构建为自包含的.NET应用程序,因此目标机器无需安装.NET运行时。 有一天我看到Opencode和Qwen3.8-27b至少要花5分钟才能确定JWT是否过期。 由于LLM作为文本生成器(简单来说),它们在需要计算的简单任务上可能会遇到困难。因此,这个MCP服务器为代理提供了基本工具,使它们能够以简单、正确且高效的方式完成这些任务,而不是依赖LLM的输出,浪费代币去处理可能出错的部分。 - .

概述(AI 翻译)

一个MCP(模型上下文协议)服务器,向AI代理展示一套基本实用工具:随机值生成、数字算术运算、数字、日期时间和时间跨度的比较、字符串操作、单位转换,以及JWT验证和检查。它通过stdio传输通信,构建为自包含的.NET应用程序,因此目标机器无需安装.NET运行时。

特色

工具 描述
get_random_number 生成一个介于指定最小值(含)和最大值(独占值)之间的随机数。默认值为0–100。
get_random_datetime 生成指定的from和to之间的随机日期时间。
get_random_boolean 生成一个随机布尔值(true 或 false。
get_random_string 生成一个随机字母数字字符串,长度为指定长度(默认16,最大2048)。
get_random_guid 生成随机版本4 GUID。
add 加两个数字。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Basic Tools MCP Server

An MCP (Model Context Protocol) server that exposes a set of basic utility tools to AI agents: random value generation, arithmetic operations on numbers, comparisons for numbers, datetimes, and timespans, string manipulation, unit conversions, plus JWT validation and inspection. It communicates over the stdio transport and is built as a self-contained .NET application, so no .NET runtime needs to be installed on the target machine.

Features

Tool Description
get_random_number Generates a random number between the specified minimum (inclusive) and maximum (exclusive). Defaults to 0–100.
get_random_datetime Generates a random datetime between the specified from and to values.
get_random_boolean Generates a random boolean value (true or false).
get_random_string Generates a random alphanumeric string of the specified length (default 16, maximum 2048).
get_random_guid Generates a random version 4 GUID.
add Adds two numbers.
subtract Subtracts the second number from the first.
multiply Multiplies two numbers.
divide Divides the first number by the second.
number_equal Compares two numbers and returns whether they are equal.
number_less_than Compares two numbers and returns whether the first is smaller than the second.
number_less_than_or_equal Compares two numbers and returns whether the first is smaller than, or equal to, the second.
number_greater_than Compares two numbers and returns whether the first is greater than the second.
number_greater_than_or_equal Compares two numbers and returns whether the first is greater than, or equal to, the second.
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →