CIDR计算工具

一个支持IPv6的CIDR计算工具,用于IP地址与CIDR之间的转换以及计算新的网络位数和网络号。

  • by jlberlanga
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 jlberlanga/MCP-cidr

使用说明

tf-ip工具

##概述


CIDR计算器-iaddress<->CIDR,并根据CIDR或ipaddress计算新比特和净数。支持IPv6

##安装


  • 克隆仓库
git clone https://github.com/jlberlanga/MCP-cidr.git
  • 安装请求
pip install -r requeriments.txt

您可以在任何客户端中用作MCP/工具,例如:LMStudio或

JSON格式示例:


LMStudio

"mcpServers": {
  "tf-ip-tools": {
    "command": "python",
    "args": [
      "server.py"
    ]
  }
}

开放代码

"mcp":{
  "tf-ip-tools": {
    "type": "local",
    "enabled": true,
    "command": [
      "python",
      "server.py"
    ]
  }
}

克莱恩

"mcpServers": {
  "tf-ip-tools": {
   "command": "/MCP-cidr/venv/bin/python",
    "args": [
     "/MCP-cidr/server.py"
     ]
  }
}