npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@quicktvui/debug-mcp

v0.0.1

Published

MCP server adapter for QuickTVUI debug AI APIs backed by ESDebugServer.

Downloads

102

Readme

QuickTVUI Debug MCP

独立的 MCP Server,基于 ESDebugServer 已有的 /ai/*/ai/stream 暴露只读资源与工具。

能力

  • resources
    • quicktvui-debug://targets
    • quicktvui-debug://stream/status
    • quicktvui-debug://targets/{clientId}/context
    • quicktvui-debug://targets/{clientId}/events/recent
    • quicktvui-debug://targets/{clientId}/events/live
    • quicktvui-debug://targets/{clientId}/native-logs/recent
    • quicktvui-debug://targets/{clientId}/screenshot/latest
  • tools
    • list_targets
    • get_target_context
    • get_recent_events
    • get_recent_console_logs
    • get_recent_native_logs
    • get_latest_screenshot
    • get_live_events
    • get_stream_status

构建

npm run build:quicktvui-debug-mcp

测试

npm run test:quicktvui-debug-mcp

当前测试会起一个本地 mock ESDebugServer,覆盖:

  • /ai/* 只读接口映射
  • /ai/stream -> MCP resources/updated
  • tools / resources / resource templates 的最小握手

运行

如果你是通过 Trae 或其他 MCP client 的 command + args 配置接入:

  • 不需要手工执行下面的启动命令
  • MCP 进程会由 Trae 或 MCP client 自动拉起
  • 你只需要保证 ESDebugServer 本身已经启动,并且 --base-url 可访问

下面的命令主要用于命令行 smoke test 或排障:

npx -y @quicktvui/[email protected] --base-url http://127.0.0.1:38989

默认会连 ESDebugServer/ai/stream,并把实时事件转成 MCP resources/updated 通知。

如果 /ai/stream 中途断开,当前实现会在重连后按 sinceSeq 调用 /ai/targets/:clientId/events 做一次回填,尽量补上断线窗口内漏掉的统一事件。

quicktvui-debug://targets/{clientId}/events/live 的资源列表会同时参考:

  • 当前 /ai/targets
  • 本地 stream cache 里已经见过的 clientId

所以它可以覆盖“只在流里先出现、但还没稳定进入 /ai/targets”的目标;但 context / events/recent / native-logs/recent / screenshot/latest 仍然只对 /ai/targets 中已知 target 暴露。

如果只想保留静态只读工具和资源,不连 SSE:

npx -y @quicktvui/[email protected] --base-url http://127.0.0.1:38989 --no-stream

使用文档

  • 详细使用说明与验证步骤见 ./USAGE.md
  • 发布到 npm 与 Trae 接入说明见 ../../doc/QUICKTVUI_DEBUG_MCP_TRAE_RELEASE_GUIDE.MD