logpiper-mcp
Logpiper is an MCP server and client for streaming terminal command logs with proactive error notifications.
README
logpiper
Logpiper is an MCP server and client for streaming terminal command logs with proactive error notifications
Features
š 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
Installation
Install npm package logpiper-mcp to access both components:
npm install -g logpiper-mcp
This provides:
- CLI tool:
logpipercommand for log collection - MCP server:
logpiper-mcpfor IDE integration - Claude Code agent: Install the monitoring agent with
logpiper --install-agent
Agent Installation
To install the Claude Code monitoring agent:
logpiper --install-agent
This will interactively guide you through installing the logpiper-monitor agent to your Claude Code agents directory.
MCP Server Configuration
Add logpiper to your IDE configuration, e.g. ~/.claude/settings.json:
{
"mcpServers": {
"logpiper": {
"command": "logpiper-mcp"
}
}
}
Usage
1. Start monitoring any command by prefixing it with logpiper:
Testing and CI/CD
# 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
Docker and Container Monitoring
# Monitor Docker Compose services
logpiper docker-compose up
logpiper docker-compose logs -f backend
# Monitor individual containers
logpiper docker logs -f container_name
Database and Backend Services
# Monitor Python applications
logpiper python app.py
logpiper uvicorn main:app --reload
# Monitor Node.js servers
logpiper node server.js
logpiper nodemon app.js
3. MCP Tools Available
| 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") |
Additional Features
š Token Limiting: MCP responses automatically limited to 25,000 tokens to prevent overwhelming Claude Code
Contributing
- Fork the repository
- Create a feature branch
- Add your improvements
- Test with multiple command types
- Submit a pull request
License
MIT License - feel free to use and modify for your needs!
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.