Overview
what is @modelcontextprotocol/server-terminal?
@modelcontextprotocol/server-terminal is a terminal server implementation for the Model Context Protocol (MCP) that provides secure and controlled access to terminal commands and npm operations.
how to use @modelcontextprotocol/server-terminal?
To use the server-terminal, install it via npm and configure it in your MCP settings. You can then execute shell commands, manage npm operations, and control the working environment through TypeScript.
key features of @modelcontextprotocol/server-terminal?
- Execute shell commands with full control
- Built-in npm operations (install, run scripts)
- Timeout handling for commands
- Security through an allowed commands list
- Management of environment variables
- Control over the working directory
- Support for TypeScript
use cases of @modelcontextprotocol/server-terminal?
- Securely executing shell commands in a controlled environment.
- Managing npm packages and scripts within a project.
- Automating development workflows with TypeScript support.
FAQ from @modelcontextprotocol/server-terminal?
- Can I execute any shell command?
No, only commands listed in the allowed commands configuration can be executed for security reasons.
- How do I install the server-terminal?
You can install it using npm with the command:
npm install @modelcontextprotocol/server-terminal.
- Is there support for TypeScript?
Yes, the server-terminal supports TypeScript, allowing for type-safe command execution.