We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ofryma/custom-mcp-library'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
command.py•527 B
"""Generic command execution tool"""
from typing import Dict, Any
def register_command_tool(mcp, kali_client):
"""Register the command execution tool with the MCP server"""
@mcp.tool()
def execute_command(command: str) -> Dict[str, Any]:
"""
Execute an arbitrary command on the Kali server.
Args:
command: The command to execute
Returns:
Command execution results
"""
return kali_client.execute_command(command)