More screenshots

    Works with the AI Agents you already use

    AI Terminal Log Debugger

    by Arman Rai

    1

    Inspect saved terminal logs, retrieve recent output, and filter error lines using read-only MCP tools. Requires Node.js 20+ and an MCP-compatible client. Automatic log capture is not included.

    Free

    5.0 (2 reviews)
    AI Terminal Log Debugger

    AI Terminal Log Debugger

    Example session with this skill installed

    Check the logs for 'auth-service' and tell me why it failed to start.

    • Read your context and instructions
    • Compiled the ai terminal log

    I have inspected the logs for the auth-service project using the terminal debugger tools.

    Log Analysis: auth-service

    The get_errors tool identified a specific lifecycle failure related to network permissions.

    Log SourceResult / Error Detected
    get_errorsError: listen EADDRINUSE: address already in use :::8080
    get_latest_logsFound 3 trailing lines showing the process attempted to restart 5 times before exiting.
    StatusCritical Failure

    The service failed because port 8080 is already occupied by another process.

    Next steps

    1. Identify the process currently using port 8080 and terminate it.
    2. Alternatively, update the auth-service configuration to use a different port.
    3. Run the service again and verify that logs/auth-service.log no longer reports EADDRINUSE.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Debugging build failures and runtime crashes often requires manually hunting through obscure log files. This skill provides an MCP server interface to programmatically inspect, filter, and analyze centralized terminal logs.

    What it does

    • Isolate errors by scanning logs for specific failure keywords like EADDRINUSE, exception, or fatal.
    • Fetch latest output to retrieve the trailing N lines of any project log for immediate context.
    • Full log retrieval to read the complete terminal history for deep-dive analysis.
    • Filename validation to prevent path traversal and ensure safe access to log data.

    How it works

    1. Register the MCP server in your client configuration pointing to src/server.js.
    2. Ensure external processes or redirections write UTF-8 logs to the logs/ directory.
    3. Call get_errors to identify the specific failure line in a known project.
    4. Use get_latest_logs to see the stack trace or events surrounding the error.

    Frameworks & tools

    This skill is built with Node.js 20+ and uses the @modelcontextprotocol/sdk. It communicates via stdio transport.

    Why this beats prompting it yourself

    Writing prompts to find errors in raw text is slow and error-prone. This skill uses a structured MCP interface to programmatically slice log files, saving token context by only retrieving the most relevant lines.

    Use cases

    • Debugging server startup crashes like port conflicts or missing environment files.
    • Analyzing CI/CD or local build failures without manually opening large log files.
    • Monitoring long-running processes by checking the trailing 100 lines of output.

    Known limitations

    Does not capture logs automatically. Requires logs to be pre-written to the logs/ directory. Only matches specific hardcoded error keywords for the get_errors tool.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    5.0
    2 reviews
    5
    2
    4
    0
    3
    0
    2
    0
    1
    0

    Trust & safety

    Security scan

    Security scan passed 9 days ago

    • Free with an Agensi account

    Software
    Node.js 20+npmMCP-compatible client (stdio)

    Run npm install first, then register src/server.js in your MCP client. Create a logs/ directory at the package root and save projectName .log files there (automatic log capture is not included).

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access

    Read-only access to logs/*.log is needed so the MCP tools (get_terminal_logs, get_latest_logs, get_errors) can read, tail, and scan saved terminal logs for errors. No write access, command execution, or access outside logs/ is used by the server.

    Listed9 days ago

    What's inside

    Frequently Asked Questions

    This skill acts as a bridge between your AI agent and your local log files, allowing the AI to programmatically scan for keywords like 'fatal' or 'exception' and retrieve specific line ranges without you having to copy-paste massive files manually.

    The skill is an MCP (Model Context Protocol) server designed for any AI client that supports MCP, such as Claude Desktop or various IDE-based AI extensions, and requires Node.js 20+ to run.

    No, the skill does not automatically intercept your terminal output; you must ensure your processes are configured to write their logs as UTF-8 files into the designated 'logs/' directory for the server to read them.

    Your purchase includes the full source code for the MCP server (built with @modelcontextprotocol/sdk), a README for setup instructions, and the necessary configurations to register the server with your AI client.

    To protect your system, the skill includes filename validation to prevent path traversal, ensuring the AI agent can only access files explicitly located within your specified logs directory.

    New in Testing & Debugging

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.

    Free