Logpiper is an MCP server and client for streaming terminal command logs with proactive error notifications
🚀 Multi-Session Support: Run multiple logpiper instances simultaneously across different terminals
📊 Real-time Streaming: Only delivers new, unfetched logs via cursor-based streaming
📢 Proactive Notifications: Automatic alerts to Claude Code
Install npm package logpiper-mcp to access both components:
npm install -g logpiper-mcpThis provides:
- CLI tool:
logpipercommand for log collection - MCP server:
logpiper-mcpfor IDE integration - Claude Code agent: Install the monitoring agent with
logpiper --install-agent
To install the Claude Code monitoring agent:
logpiper --install-agentThis will interactively guide you through installing the logpiper-monitor agent to your Claude Code agents directory.
Add logpiper to your IDE configuration, e.g. ~/.claude/settings.json:
{
"mcpServers": {
"logpiper": {
"command": "logpiper-mcp"
}
}
}# Monitor test suites
logpiper npm test
logpiper npm run test:watch
logpiper npm run test:e2e
# Monitor build processes
logpiper npm run build
logpiper npm run build:prod# Monitor Docker Compose services
logpiper docker-compose up
logpiper docker-compose logs -f backend
# Monitor individual containers
logpiper docker logs -f container_name# Monitor Python applications
logpiper python app.py
logpiper uvicorn main:app --reload
# Monitor Node.js servers
logpiper node server.js
logpiper nodemon app.js| Tool | Description | Usage |
|---|---|---|
get_new_logs |
Get new logs since cursor position (streaming) | Real-time log monitoring |
list_sessions |
List all logging sessions with metadata | Session management |
search_logs |
Search through logs with query string | Error investigation |
get_logs_paginated |
Get logs with cursor-based pagination and automatic chunking | Large log file navigation |
cleanup_sessions |
Cleanup sessions: smart cleanup based on criteria or complete reset | Session management (mode: "smart" or "all") |
🔒 Token Limiting: MCP responses automatically limited to 25,000 tokens to prevent overwhelming Claude Code
- Fork the repository
- Create a feature branch
- Add your improvements
- Test with multiple command types
- Submit a pull request
MIT License - feel free to use and modify for your needs!