Higress OPS MCP 服务器
模型上下文协议 (MCP) 服务器实现,可实现对Higress的全面配置和管理。此存储库还提供了基于LangGraph和LangChain MCP 适配器构建的 MCP 客户端,通过精心设计的代理流架构,方便与 Higress MCP 服务器进行交互。
演示
https://github.com/user-attachments/assets/bae66b77-a158-452e-9196-98060bac0df7
配置环境变量
将.env.example
文件复制到.env
并填写相应的值。
启动 MCP 客户端和 MCP 服务器
在 stdio 模式下,MCP 服务端进程由 MCP 客户端程序启动。运行以下命令启动 MCP 客户端和 MCP 服务端:
添加新工具
步骤 1:创建新的工具类或扩展现有的工具类
如果添加一个全新的工具类别,请在工具目录中创建一个新文件
或者,如果您的工具适合现有类别,则将其添加到现有类别中
步骤 2:如果您的工具需要与 Higress Console API 交互,请向 HigressClient 添加一个新方法
向 utils/higress_client.py 添加封装 API 调用的方法
使用现有的 HTTP 方法(get、put、post)进行实际 API 通信
步骤3:在服务器中注册你的工具类
将您的工具类添加到 server.py 中的 tool_classes 列表中
ToolsRegister 使用此列表来实例化和注册所有工具
ToolsRegister 将自动设置 logger 和 higress_client 属性
步骤 4:如果您的工具需要人工确认,请将其添加到
此列表中的工具在执行前需要人工确认
This server cannot be installed
模型上下文协议服务器,通过精心设计的代理流架构实现对 Higress 的全面配置和管理。
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI models to perform real-time internet and knowledge searches through Higress, enhancing model responses with up-to-date information from Google, Bing, Arxiv, and internal knowledge bases.Last updated -5Apache 2.0
- -securityFlicense-qualityA Model Context Protocol server that enables integration with the TESS API, allowing users to list and manage agents, execute agents with custom messages, and manage files through natural language interfaces.Last updated -
- -securityAlicense-qualityA Model Context Protocol server that allows language models to manage Hetzner Cloud resources through structured functions, including servers, volumes, firewalls, and SSH keys.Last updated -38MIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that provides a comprehensive interface to Alteryx Servers, enabling AI assistants to manage workflows, collections, users, schedules, credentials, and more.Last updated -438