Cover image
Try Now
2024-12-02

镜像://github.com/non-dirty/mcp-server-pestart

3 years

Works with Finder

0

Github Watches

1

Github Forks

0

Github Stars

mcp-server-restart

Model Context Protocol (MCP) server for restarting Claude Desktop for Mac

Description

Using Model Context Protocol (MCP) for Claude Desktop tool installation is a bit cumbersome. The mcp-installer makes things easier by using MCP to allow you to ask Claude to install MCP tools.

Once they are installed, you still need to restart Claude Desktop to make the changes take effect... That is where mcp-server-restart comes in!

The mcp-server-restart package provides a MCP server for restarting Claude Desktop for Mac.

Usage

Ask Claude Desktop "restart Claude" and it will restart the application.

Features

Resources

The server provides a status resource:

  • claude://status - Returns the current status of Claude Desktop
    • Returns JSON with running status, PID, and timestamp
    • MIME type: application/json

Tools

The server implements one tool:

  • restart_claude - Restarts the Claude Desktop application
    • Safely terminates existing process if running
    • Launches new instance
    • Provides progress notifications during restart

Installation for Claude Desktop

Installation requires editing your Claude Desktop config file on MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Option 1: Install both the mcp-installer and the mcp-server-restart packages:

Add the following to your Claude Desktop config file:

{
  "mcpServers": {
    "mcp-installer": {
      "command": "npx",
      "args": [
        "@anaisbetts/mcp-installer"
      ]
    },
    "mcp-server-restart": {
      "command": "uvx",
      "args": [
        "mcp-server-restart"
      ]
    }
  }
}

Option 1: Install only the mcp-server-restart package:

Add the following to your Claude Desktop config file:

{
  "mcpServers": {
    "mcp-server-restart": {
      "command": "uvx",
      "args": [
        "mcp-server-restart"
      ]
    }
  }
}

Example prompts

Hey Claude, install the MCP server named mcp-server-fetch then restart Claude

Please restart Claude

Testing

Run the test suite:

pytest

License

MIT License - see LICENSE file for details

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • https://duotify.com
  • Professional code reviewer for a unique language, friendly and helpful.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Andris Teikmanis
  • Latvian GPT assistant for developing GPT applications

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Navid RezaeiSarchoghaei
  • Professional Flask/SQLAlchemy code guide. Follow: https://x.com/navid_re

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • https://cantaspinar.com
  • Summarizes videos and answers related questions.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

    Reviews

    3 (1)
    Avatar
    user_9U4EJO5I
    2025-04-16

    I recently started using the non-dirty_mcp-server-restart and it has been a game changer! Developed by MCP-Mirror, this tool allows seamless server restarts without any unwanted side effects. The ease of use and reliability are unmatched. Highly recommend checking it out at https://github.com/MCP-Mirror/non-dirty_mcp-server-restart. Kudos to MCP-Mirror for this excellent tool!