mcpField
🐢
🐢 Lazy Terminal

🐢 Lazy Terminal

Local
github.com/HeterohabilisDeveloper Tools0Updated 81w ago

About 🐢 Lazy Terminal

Lazy Terminal is a command-line assistant that routes language-model requests between direct answers and MCP tools. It keeps conversation context, supports multiple models through Coagent, and runs controlled Bash scripts.

Key features

  1. 01Routes requests to tools or direct answers
  2. 02Retains conversation context
  3. 03Supports multiple models via Coagent
  4. 04Processes structured JSON responses
  5. 05Runs controlled Bash scripts through MCP

Use cases

  1. 01Automate terminal tasks with Bash scripts
  2. 02Use MCP tools based on a natural-language request

MCP support

Connects language models to external tools through MCP and can run controlled Bash scripts using MCP tools.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

🐢 Lazy Terminal

Lazy Terminal is an intelligent command-line assistant that connects language models with external tools through MCP (Modular Component Protocol). It dynamically determines whether a query should be directly answered or passed to a registered tool, enabling seamless terminal automation and smart interaction (you are lazy; it isn't).


🔧 Features

  • Dynamic Tool Routing: Automatically chooses between direct response or tool invocation.
  • Contextual Memory: Maintains conversation context (default 50 interactions).
  • Multi-model Support: Easily integrate various language models via Coagent.
  • Robust JSON Handling: Extracts and processes structured model responses.
  • Secure Bash Execution: Runs safe, controlled bash scripts through MCP tools.

🚀 Quick Start

Installation
pip install -r requirements.txt
Configuration
  • Edit config/models.yaml to include your model credentials.
  • Edit config/mcp_servers.yaml to list your MCP servers.
Running

Launch the assistant with:

python main.py

Start interacting with Lazy Terminal directly from your console!


🛠 Example Usage

Start the bash runner server:

python test_servers/bash_runner.py

Sample interaction:

User input:

You: List all .txt files in ~/Documents and save output to files.txt

Assistant tool invocation:

{
  "tool_name": "run_bash_script",
  "parameters": {
    "commands": "ls ~/Documents/*.txt > files.txt"
  }
}

Lazy Terminal will then execute this safely and return the results.


🔑 Environment Variables

Set model API keys as environment variables, e.g.:

export DEEPSEEK_API_KEY="your-api-key"

Ensure they match your settings in models.yaml.


📌 Roadmap

  • Implement advanced memory compression.
  • Add interactive UI (terminal/web).
  • Enhance error handling and logging.
  • Extend toolset (e.g., file handling, browser automation).
  • Multi-tool calling

🤝 Credits

Enjoy building your intelligent terminal assistant!

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.