展示HN:Teemux – 零配置日志复用器,内置MCP服务器
Show HN: Teemux – Zero-config log multiplexer with built-in MCP server

原始链接: https://teemux.com/

## Teemux:开发用的统一日志管理 Teemux 简化了多进程应用的日志查看,无需任何配置。只需在进程启动命令前加上 `teemux --name [process_name] --` (例如:`teemux --name api -- node api.js`)。Teemux 会自动启动一个服务器,允许其他进程连接并流式传输日志。 可以通过 `http://127.0.0.1:8336/` 的彩色浏览器界面或使用 `curl http://127.0.0.1:8336/` 以纯文本方式访问日志。功能包括使用通配符进行模式过滤以及自动领导者选举以实现高可用性。 值得注意的是,Teemux 通过 MCP 与 AI Agent 集成,提供持久的日志访问,*无需*重启服务——这是优于 `tail -f` 等工具的关键优势。“Teemux”这个名字结合了“tee”(输出分割)和“mux”(多路复用),反映了其核心功能。

## Teemux:AI 编码代理的共享日志 Teemux 是一款新的、零配置的 CLI 工具,旨在轻松地与 AI 编码代理共享开发环境日志。这款工具的创建者对现有方案的局限性感到沮丧,因此开发了 Teemux,它聚合日志并通过用户友好的 UI *和* MCP 服务器提供日志,供 AI 访问。 其关键特性是自组织架构:实例会自动加入并共享日志,无需中央聚合器,并且当主服务器宕机时会动态选举新的领导者。这使得日志共享无缝进行,不会中断正在运行的进程——相比于需要服务重启的 `tail -f` 等方法,这是一个显著的改进。 虽然一些评论员质疑其名称(“Teemux”——“tee”和“mux”的组合词),但创建者为之辩护,并且该工具本身为将 AI 集成到开发工作流程中提供了一个实用的解决方案。
相关文章

原文

Usage

# Wrap your processes
teemux --name api -- node api.js
teemux --name worker -- node worker.js
teemux --name webapp -- npm run dev
teemux -- redis-server

# View logs
open http://127.0.0.1:8336/
curl http://127.0.0.1:8336/

Features

Zero config

First process starts the server. Others connect automatically.

Multiple views

Browser for colors. Curl for plain text.

Pattern filtering

Include or exclude with wildcards.

Leader election

Automatic failover if leader exits.

MCP for AI Agents

// Add to your MCP config
{
  "mcpServers": {
    "teemux": {
      "command": "npx",
      "args": ["mcp-remote", "http://127.0.0.1:8336/mcp"]
    }
  }
}

FAQ

Why not just use tail -f?

That would require restarting your services to redirect their output. Fine for one-off scripts, but impractical when you have long-running processes and don't want to restart them every time an agent needs to read logs.

With teemux, a persistent MCP server gives multiple AI agents access to logs as needed—without interrupting your development flow.

Why "teemux"?

tee (Unix command that splits output) + mux (multiplexer) = teemux

联系我们 contact @ memedata.com