- Home
- Skills
- Testing & Debugging
- AI Terminal Log Debugger
More screenshots
Works with the AI Agents you already use
AI Terminal Log Debugger
by Arman Rai
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
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 Source | Result / Error Detected |
|---|---|
get_errors | Error: listen EADDRINUSE: address already in use :::8080 |
get_latest_logs | Found 3 trailing lines showing the process attempted to restart 5 times before exiting. |
| Status | Critical Failure |
The service failed because port 8080 is already occupied by another process.
Next steps
- Identify the process currently using port
8080and terminate it. - Alternatively, update the
auth-serviceconfiguration to use a different port. - Run the service again and verify that
logs/auth-service.logno longer reportsEADDRINUSE.
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, orfatal. - 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
- Register the MCP server in your client configuration pointing to
src/server.js. - Ensure external processes or redirections write UTF-8 logs to the
logs/directory. - Call
get_errorsto identify the specific failure line in a known project. - Use
get_latest_logsto 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
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
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.
What's inside
Frequently Asked Questions
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.