返回顶部
m

my-test-skill计算器技能

使用 Calculator Server MCP 进行加减法运算。当用户需要进行加法或减法计算时使用此 skill。Server 地址:http://192.168.71.7:8000/mcp,支持 add(加法)和 subtract(减法)两个工具。

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
202
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

my-test-skill

MCP 计算器

计算器服务 🔢 v3.1.0 - 数学运算 MCP 服务。

配置

在技能管理后台设置环境变量:

  • - XINIUDATAMCPTOKEN - MCP 服务访问令牌

可用工具

工具功能参数
add加法:计算 a + ba, b (数字)
subtract
减法:计算 a - b | a, b (数字) |

使用(curl)

bash

1. 初始化会话,获取会话 ID


SESSION_ID=$(curl -s -D - -X POST http://192.168.71.7:8000/mcp \
-H Content-Type: application/json \
-H Accept: application/json, text/event-stream \
-H Authorization: Bearer $XINIUDATAMCPTOKEN \
-d {
jsonrpc: 2.0,
method: initialize,
params: {
protocolVersion: 2024-11-05,
capabilities: {},
clientInfo: {name: mcp-calculator, version: 1.0.0}
},
id: 1
} | grep -i mcp-session-id | awk {print $2} | tr -d \r)

2. 发送初始化通知

curl -s -X POST http://192.168.71.7:8000/mcp \ -H Content-Type: application/json \ -H Accept: application/json, text/event-stream \ -H Authorization: Bearer $XINIUDATAMCPTOKEN \ -H mcp-session-id: $SESSION_ID \ -d {jsonrpc:2.0,method:notifications/initialized}

3. 调用 add 工具

curl -s -X POST http://192.168.71.7:8000/mcp \ -H Content-Type: application/json \ -H Accept: application/json, text/event-stream \ -H Authorization: Bearer $XINIUDATAMCPTOKEN \ -H mcp-session-id: $SESSION_ID \ -d { jsonrpc: 2.0, method: tools/call, params: {name: add, arguments: {a: 123, b: 456}}, id: 2 }

或者调用 subtract 工具

curl -s -X POST http://192.168.71.7:8000/mcp \ -H Content-Type: application/json \ -H Accept: application/json, text/event-stream \ -H Authorization: Bearer $XINIUDATAMCPTOKEN \ -H mcp-session-id: $SESSION_ID \ -d { jsonrpc: 2.0, method: tools/call, params: {name: subtract, arguments: {a: 100, b: 30}}, id: 3 }

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 my-test-skill-4-xn-1776098583 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 my-test-skill-4-xn-1776098583 技能

通过命令行安装

skillhub install my-test-skill-4-xn-1776098583

下载

⬇ 下载 my-test-skill v1.0.0(免费)

文件大小: 1.66 KB | 发布时间: 2026-4-15 13:32

v1.0.0 最新 2026-4-15 13:32
- Initial release of my-test-skill, providing add and subtract operations using Calculator Server MCP.
- Supports environment variable authentication via XINIUDATA_MCP_TOKEN.
- Includes detailed setup and usage instructions for accessing the MCP server with curl.
- Tools available: `add` (a + b), `subtract` (a - b).
- Server endpoint configurable; documented usage examples included.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部