@_odbo_/calmag-mcp-server
Version:
Model Context Protocol server for Webklex CalMag nutrient calculator
45 lines (44 loc) • 1.52 kB
JavaScript
/**
* CalMag Hello World Tool
* Simple test tool to verify MCP server functionality
*/
export const calmagHelloTool = {
name: "calmag_hello",
description: "Test tool that returns a hello world message from the CalMag MCP server",
inputSchema: {
type: "object",
properties: {
name: {
type: "string",
description: "Optional name to include in the greeting",
default: "World"
}
},
additionalProperties: false
}
};
export async function executeCalmagHello(args) {
const { name = "World" } = args;
return {
success: true,
data: {
message: `Hello ${name}! 🌱`,
info: "CalMag MCP Server is running successfully",
version: "1.0.0",
description: "This is a Model Context Protocol server for the Webklex CalMag nutrient calculator",
capabilities: [
"Nutrient calculations",
"Fertilizer comparisons",
"Expert mode calculations",
"Water analysis",
"Additive recommendations"
],
next_steps: [
"Use calmag_get_fertilizers to see available fertilizers",
"Use calmag_calculate_nutrients for basic nutrient calculations",
"All calculations use https://calmag.webklex.com/ directly",
"No configuration required - ready to use!"
]
}
};
}