TWSNMP FK

TWSNMP for Kiosk

View on GitHub

TWSNMP FK MCP Server Specification

This document outlines the specifications for the TWSNMP FK MCP (Model Context Protocol) Server, based on the source code in backend/mcp.go, backend/mcp_tools.go, and backend/mcp_prompts.go.

1. Overview

The MCP server provides an interface for AI agents to interact with the TWSNMP FK monitoring system. It allows agents to retrieve monitoring data, perform actions, and access system information through a set of defined tools and prompts.

2. Transport and Endpoints

The server starts based on the configuration datastore.MapConf.MCPTransport. It supports two transport mechanisms:

The server listens on the address specified in datastore.MapConf.MCPEndpoint.

TLS Security

TLS is automatically enabled if a server certificate (datastore.MCPCert) and private key (datastore.MCPKey) are provided. It uses TLS 1.3 with a restricted set of secure cipher suites.

3. Authentication

Access to the MCP server is controlled by two mechanisms, both of which must be satisfied if configured:

4. Tools (Functions)

The server exposes the following tools for agents.


get_node_list


get_network_list


get_polling_list


get_polling_log


get_polling_log_data


do_ping


get_mib_tree


snmpwalk


snmpset


add_node


update_node


get_ip_address_list


get_resource_monitor_list


search_event_log


search_syslog


get_syslog_summary


search_snmp_trap_log


get_server_certificate_list


add_event_log


get_ip_address_info


get_mac_address_info