Skip to main content
Glama

ONOS MCP Server

by davidlin2k
packet.py584 B
from mcp.server.fastmcp import FastMCP from onos_mcp_server.api_client import make_onos_request async def get_packet_processors() -> str: """Gets packet processors. Returns array of all packet processors. """ try: processors = await make_onos_request("get", "/packet/processors") return str(processors) except Exception as e: return f"Error retrieving packet processors: {str(e)}" def register_tools(mcp_server: FastMCP): """Register all packet processing tools with the MCP server.""" mcp_server.tool()(get_packet_processors)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/davidlin2k/onos-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server