mcp-helper-tools 是一个基于 toolkit-mcp-server
工具包的模型上下文协议(MCP)服务器。它为大语言模型代理提供了一系列系统实用工具和功能,涵盖 IP 地理位置、网络诊断、系统监控、加密操作以及 QR 代码生成等方面。
mcp-helper-tools 是一个强大的模型上下文协议(MCP)服务器,为大语言模型代理提供了丰富的系统实用工具和功能。以下是快速开始使用该工具的步骤。
# 使用npm(推荐)
npm install @cyanheads/toolkit-mcp-server
# 或从源码安装
git clone git@github.com:cyanheads/toolkit-mcp-server.git
cd toolkit-mcp-server
npm install
npm run build
添加到您的 MCP 客户端设置中:
{
"mcpServers": {
"toolkit": {
"command": "node",
"args": ["node_modules/@cyanheads/toolkit-mcp-server/build/index.js"],
"env": {
"NODE_ENV": "production"
}
}
}
}
模型上下文协议(MCP)实现了以下组件之间的通信:
// 获取地理位置数据
const geo = await mcp.use('toolkit-mcp-server', 'geolocate', {
query: '8.8.8.8'
});
// 检查连接性
const conn = await mcp.use('toolkit-mcp-server', 'checkConnectivity', {
host: 'example.com',
port: 443,
timeout: 5000
});
// 获取系统信息
const systemInfo = await mcp.use('toolkit-mcp-server', 'getSystemInfo');
// 监控磁盘使用情况
const diskUsage = await mcp.use('toolkit-mcp-server', 'monitorDiskUsage', {
path: '/',
interval: 10000
});
// 验证文件签名
const isValid = await mcp.use('toolkit-mcp-server', 'verifyFileSignature', {
file: '/path/to/file',
publicKey: 'public-key-pem'
});
// 生成QR代码
const qrCode = await mcp.use('toolkit-mcp-server', 'generateQRCode', {
data: 'https://example.com',
size: '256x256'
});
贡献指南请参考 CONTRIBUTING.md