Skip to main content
Glama

MCP Terminal

by sichang824
MIT License
17
  • Apple
  • Linux
base.py1.04 kB
""" Base terminal controller interface. All terminal controllers should implement this interface. """ from abc import ABC, abstractmethod from typing import Dict, Any, Optional class BaseTerminalController(ABC): """Base interface for terminal controllers.""" @abstractmethod async def execute_command( self, command: str, wait_for_output: bool = True, timeout: int = 10 ) -> Dict[str, Any]: """ Execute a command in the terminal. Args: command: The command to execute wait_for_output: Whether to wait for output timeout: Timeout in seconds Returns: A dictionary with the result of the command execution """ pass @abstractmethod async def get_terminal_type(self) -> str: """ Get the terminal type. Returns: The terminal type """ pass @abstractmethod async def cleanup(self) -> None: """ Clean up resources. """ pass

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/sichang824/mcp-terminal'

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