Token导航 LogoToken导航TokenDH.com
stuckbar (Bkataru) logo
开发工具未说明官方级别未说明来源级核验

stuckbar (Bkataru)

MCP Server

一个简单的CLI工具和MCP服务器,用于修复卡死的Windows任务栏,支持通过命令行或MCP调用重启explorer.exe。

工具数

3

提示词数

0

GitHub Stars

0

资源数

0
命令行工具RustClaudeClaude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

bkataru

提供方

bkataru

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

斯图克巴尔

![Crates.io](https://crates.io/crates/stuckbar) ![Documentation](https://docs.rs/stuckbar) ![CI](https://github.com/bkataru/stuckbar/actions/workflows/ci.yml) ![License: MIT](https://opensource.org/licenses/MIT)

一个简单的CLI工具和MCP服务器,用于解开恼人的Windows任务栏。

当Windows任务栏卡住时(特别是配置为自动隐藏时),此实用程序提供了一种快速重新启动的方法 explorer.exe 从命令行或通过MCP工具调用,将任务栏恢复正常。

🪟 仅限Windows:此工具专为Windows设计,不适用于macOS或Linux。

安装

使用货物(推荐)

# Basic installation (CLI only)
cargo install stuckbar

# With MCP server support (STDIO transport)
cargo install stuckbar --features mcp

# With full MCP support (STDIO + HTTP transports)
cargo install stuckbar --features mcp-full

来源

git clone https://github.com/bkataru/stuckbar.git
cd stuckbar
cargo install --path .

# Or with MCP features
cargo install --path . --features mcp-full

用法

CLI基本用法

# Restart explorer.exe (default action)
stuckbar

# Or explicitly use the restart command
stuckbar restart

# Just kill explorer.exe
stuckbar kill

# Just start explorer.exe
stuckbar start

# Show help
stuckbar --help

# Show version
stuckbar --version

命令

命令描述
restart关闭并重新启动explorer.exe(默认)
kill终止explorer.exe进程
start启动explorer.exe进程
serve启动MCP服务器(需要 mcp 特征)

MCP服务器(AI代理集成)

Stuckbar可以作为一个 模型上下文协议(MCP) 服务器,允许AI代理以编程方式控制Windows资源管理器操作。

特性

当作为MCP服务器运行时,stuckbar公开了三个工具:

工具说明
kill_explorer终止explorer.exe进程
start_explorer启动explorer.exe进程
restart_explorer重新启动explorer.exe(建议用于卡住的任务栏)

运行MCP服务器

STDIO传输(用于直接过程通信)

# Requires: cargo install stuckbar --features mcp
stuckbar serve --stdio

这是大多数MCP客户端(如Claude Desktop)的推荐传输方式。

HTTP传输(基于SSE,用于网络通信)

# Requires: cargo install stuckbar --features mcp-full
stuckbar serve --http

# With custom host and port
stuckbar serve --http --host 0.0.0.0 --port 3000

HTTP服务器使用服务器发送事件(SSE)并公开:

  • SSE端点: `http://:

/sse`

  • 消息端点: `http://:

/message`

配置示例

克劳德桌面版

添加到您的 claude_desktop_config.json:

窗户:

{
  "mcpServers": {
    "stuckbar": {
      "command": "stuckbar",
      "args": ["serve", "--stdio"]
    }
  }
}

或者使用完整路径:

{
  "mcpServers": {
    "stuckbar": {
      "command": "C:\\Users\\\\.cargo\\bin\\stuckbar.exe",
      "args": ["serve", "--stdio"]
    }
  }
}

其他MCP客户端

对于支持SSE传输的客户:

stuckbar serve --http --port 8080
# Connect to: http://localhost:8080/sse

功能标志

特性描述
(默认)基本CLI功能
mcp带STDIO传输的MCP服务器
mcp-http带SSE HTTP传输的MCP服务器(包括 mcp)
mcp-full所有MCP功能(别名 mcp-http)

从源头构建

# Clone the repository
git clone https://github.com/bkataru/stuckbar.git
cd stuckbar

# Build with default features
cargo build --release

# Build with MCP support
cargo build --release --features mcp-full

# Run tests
cargo test

# Run tests with all features
cargo test --all-features

运作原理

当Windows任务栏变得无响应或卡住时(通常在启用自动隐藏的情况下发生),典型的修复方法是重新启动Windows资源管理器。该工具通过以下方式自动化了该过程:

  1. :强行终止 explorer.exe 使用 taskkill /F /IM explorer.exe
  2. 等待:短暂暂停(500ms)以确保进程完全终止
  3. 开始:启动一个新的实例 explorer.exe

这将恢复任务栏、桌面图标和文件资源管理器功能。

平台支持

这个工具是 仅限Windows。在macOS或Linux上运行将显示错误消息:

stuckbar is a Windows-only tool.
Current platform 'linux' is not supported.
This tool restarts explorer.exe which only exists on Windows.

许可证

MIT许可证-请参阅 许可证 了解详情。

贡献

欢迎投稿!请随时提交拉取请求:)

目录标签

目录标签

命令行工具RustClaudeWindows工具本地部署任务栏修复CLI工具MCP服务器系统维护

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

3

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP