Token导航 LogoToken导航TokenDH.com
Clixon MCP logo
运维云端stdio官方级别未说明来源级核验

Clixon MCP

MCP Server

Clixon MCP Server是一个通过RESTCONF协议获取和查询网络设备配置的服务,支持与AI编码代理(如OpenCode)集成,适用于网络设备配置管理和分析。

工具数

9

提示词数

0

GitHub Stars

1

资源数

0
设备管理Python本地部署

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

clicon

提供方

clicon

最后核验

2026/5/17 20:19

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

uv run server.py --restconf-url https://localhost:8443/restconf/

详细介绍

Clixon MCP Server

A Model Context Protocol server for fetching and querying network device configuration via RESTCONF. Connects to Clixon-based (or any RESTCONF-capable) devices and makes the configuration available to AI coding agents like OpenCode.

This project uses UV (https://github.com/astral-sh/uv) for package control.

Setup

uv sync

Run

uv run server.py --restconf-url https://localhost:8443/restconf/

CLI Arguments

ArgumentDefaultDescription
--restconf-urlhttps://localhost:8443/restconf/RESTCONF URL to fetch config from
--restconf-username_(empty)_HTTP basic auth username for RESTCONF (optional)
--restconf-password_(empty)_HTTP basic auth password for RESTCONF (optional)
--restconf-verify-sslFalseVerify SSL certificates when fetching RESTCONF config

Tools

ToolDescription
fetch_configFetch device configuration via RESTCONF (supports basic auth and TLS)
write_configWrite cached configuration back to the device via RESTCONF
get_configReturn the currently cached configuration
get_config_pathExtract a specific section by dot-separated path (e.g. ietf-interfaces:interfaces.interface)
get_config_urlReturn the RESTCONF URL used to fetch the configuration
set_config_urlSet the RESTCONF URL for fetching configuration
clear_config_cacheClear the cached configuration
list_toolsList available tools
helpReturn a help message describing the server and available tools

Resources

  • config://server-info — Server metadata (name, version, available tools)

Prompts

  • analyze_config — Fetch and analyze device configuration (interfaces, routing, etc.)

Connect to OpenCode

Add to your opencode.json (~/.opencode/opencode.json):

{
    "$schema": "https://opencode.ai/config.json",
    "mcp": {
      "clixon": {
        "type": "remote",
        "url": "http://localhost:8000/mcp",
        "enabled": true
      }
    }
}

Example Usage in OpenCode

Once connected, ask questions like:

  • Fetch the config and summarize it.
  • What interfaces are configured?
  • Show me the routing configuration
  • Are there any interfaces that are down?

The AI agent will call fetch_config to pull the RESTCONF data, cache it in memory, and then use get_config / get_config_path to answer follow-up questions about the device configuration.

目录标签

目录标签

设备管理Python本地部署网络配置RESTCONFAI集成

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

9

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP