Skip to main content
Glama
leejersey

Hexo Blog MCP Server

by leejersey

stop_preview

Stop the local preview server for a Hexo blog to free system resources or prepare for deployment.

Instructions

停止正在运行的 Hexo 本地预览服务器

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler implementation for the stop_preview tool which kills the preview process.
    server.tool(
        "stop_preview",
        "停止正在运行的 Hexo 本地预览服务器",
        {},
        async () => {
            if (previewProcess) {
                previewProcess.kill();
                previewProcess = null;
                return {
                    content: [{ type: "text" as const, text: "✅ 预览服务器已停止。" }],
                };
            }
            return {
                content: [{ type: "text" as const, text: "ℹ️ 当前没有正在运行的预览服务器。" }],
            };
        }
    );
  • Registration of the stop_preview tool within the McpServer.
    server.tool(
        "stop_preview",
        "停止正在运行的 Hexo 本地预览服务器",
        {},
        async () => {
            if (previewProcess) {
                previewProcess.kill();
                previewProcess = null;
                return {
                    content: [{ type: "text" as const, text: "✅ 预览服务器已停止。" }],
                };
            }
            return {
                content: [{ type: "text" as const, text: "ℹ️ 当前没有正在运行的预览服务器。" }],
            };
        }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/leejersey/hexo-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server