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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@mcpcn/mcp-go-off-work

v1.0.3

Published

一个方便的 MCP 服务器,用于处理下班后的例行程序。可用操作:关机、睡眠、休眠、锁定屏幕、重启、关闭显示器

Downloads

154

Readme

下班服务器

mcp-get-off-work 是一个模型上下文协议 (MCP) 服务器,旨在帮助您自动化计算机上的下班程序。它提供了一套工具来关闭、休眠、锁定您的计算机等,并支持 Windows、macOS 和 Linux。

功能

  • 跨平台: 支持 Windows、macOS 和 Linux,并提供特定平台的命令。
  • 灵活控制: 允许对某些操作进行延迟和强制选项。
  • 多种工具: 从系统电源管理到启动放松应用程序。

可用工具

该服务器公开了以下可由 MCP 兼容代理调用的工具:

1. shutdown_system

关闭或重新启动系统。

参数:

  • restart (布尔值, 可选): 如果为 true,系统将重新启动。如果为 false 或省略,系统将关闭。
  • delay (数字, 可选): 执行操作前的延迟秒数。默认为 0
  • force (布尔值, 可选): 如果为 true,则强制执行操作而不提示用户。默认为 false

2. sleep_system

将系统置于睡眠模式。

参数:

  • delay (数字, 可选): 睡眠前的延迟秒数。默认为 0

3. hibernate_system

将系统置于休眠模式。(注意:macOS 将此视为睡眠)。

参数:

  • delay (数字, 可选): 休眠前的延迟秒数。默认为 0

4. lock_screen

锁定计算机屏幕。

参数:

  • delay (数字, 可选): 锁定前的延迟秒数。默认为 0

5. turn_off_display

关闭显示器。

参数:

  • delay (数字, 可选): 关闭显示器前的延迟秒数。默认为 0

用法

这是一个 MCP 服务器,旨在由支持模型上下文协议的 AI 代理使用。代理可以列出可用的工具并使用指定的参数调用它们。

平台兼容性

| 工具 | Windows | macOS | Linux | | ----------------------- | ------- | ------- | ------- | | shutdown_system | ✔️ | ✔️ | ✔️ | | sleep_system | ✔️ | ✔️ | ✔️ | | hibernate_system | ✔️ | ⚠️ (睡眠) | ✔️ | | lock_screen | ✔️ | ✔️ | ✔️ | | turn_off_display | ✔️ | ✔️ | ✔️ |

注意:

  • 在 macOS 上,hibernate_system 的行为与 sleep_system 相同。
  • 在 Linux 上,lock_screenmute_notifications 的功能可能取决于所使用的特定桌面环境。