Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,33 @@
|
||||
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
||||
import { t as i18nT } from "i18next";
|
||||
import { z } from "zod/v3";
|
||||
import { createScopedLogger } from "~/utils/logger.server";
|
||||
|
||||
const mcpToolsLogger = createScopedLogger("mcp.tools");
|
||||
|
||||
export function registerMcpTools(server: McpServer) {
|
||||
// Public tools - no authentication required
|
||||
|
||||
server.registerTool(
|
||||
"healthcheck",
|
||||
{
|
||||
description: i18nT("mcp.tools.healthcheck.description"),
|
||||
inputSchema: z.object({}),
|
||||
},
|
||||
async () => {
|
||||
mcpToolsLogger.info("[MCP] healthcheck");
|
||||
return {
|
||||
content: [
|
||||
{
|
||||
type: "text",
|
||||
text: JSON.stringify({
|
||||
status: "ok",
|
||||
version: "1.0.0",
|
||||
timestamp: new Date().toISOString(),
|
||||
}),
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user