Enables configuration of environment variables for the MCP server through a .env file, allowing users to securely store and manage Higress API credentials and other settings.
Used via LangChain MCP Adapters to facilitate the client-side interaction with the Higress MCP Server, enabling structured communication between the agent and the server.
Provides the foundation for building the MCP client with a well-designed agent flow architecture that enables comprehensive configuration and management of Higress.
Higress OPS MCP Server
A Model Context Protocol (MCP) server implementation that enables comprehensive configuration and management of Higress. This repository also provides an MCP client built on top of LangGraph and LangChain MCP Adapters, facilitating interaction with the Higress MCP Server through a well-designed agent flow architecture.
Demo
https://github.com/user-attachments/assets/bae66b77-a158-452e-9196-98060bac0df7
Config Environment Variables
Copy the .env.example
file to .env
and fill in the corresponding values.
Start MCP Client and MCP Server
In stdio mode, the MCP server process is started by the MCP client program. Run the following command to start the MCP client and MCP server:
Add a new tool
Step 1: Create a new tool class or extend an existing one
- Create a new file in the tools directory if adding a completely new tool category
- Or add your tool to an existing class if it fits an existing category
Step 2: Add a new method to HigressClient if your tool needs to interact with the Higress Console API
- Add methods to utils/higress_client.py that encapsulate API calls
- Use the existing HTTP methods (get, put, post) for actual API communication
Step 3: Register your tool class in the server
- Add your tool class to the tool_classes list in server.py
- This list is used by ToolsRegister to instantiate and register all tools
- The ToolsRegister will automatically set logger and higress_client attributes
Step 4: Add your tool to SENSITIVE_TOOLS
if it requires human confirmation
- Tools in this list will require human confirmation before execution
This server cannot be installed
A Model Context Protocol server that enables comprehensive configuration and management of Higress through a well-designed agent flow architecture.
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 -15PythonApache 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 -TypeScript
- -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 -29PythonMIT License
- AsecurityAlicenseAqualityA 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 -438PythonMIT License